[Mutt] #3203: Print Newsgroup header
#3203: Print Newsgroup header
---------------------------------+------------------------------------------
Reporter: vinschen@xxxxxxxxxx | Owner: mutt-dev
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: mutt | Version:
Keywords: Newsgroup %G %t |
---------------------------------+------------------------------------------
Consider you use tin as newsreader. The default behaviour of tin
is to store posted messages in the "posted" mailbox file in the
user's mail folder. If you use the same folder to store outgoing
mail (set record=) you might want to set the $index_format for this
folder to something along the lines of
folder-hook posted "set index_format='%Z %D %-18.18t (%?M?#%2M&%3l?)
%s'"
That's what I do, at least. However, if you look into that file in
mutt, all the newsgroup postings supposedly have no recipient
because the %t from the $index_format prints nothing. There's
just no "To" field.
I created the attached patch to define a new field specifier %G
which allows to print the Newsgroup header. It also adds the
ability to conditionalize %t output. So what you can do now is
to specify
%?t?%24.24t&%24.24G?
to get either the "To:" field, if it's available, or the
"Newsgroup:" field if not.
The patch is preliminary, but it works nicely. I'm using it
locally for three weks now. It's missing comments and documentation
so far. Apart from adding the documentation I guess it would also
be a good idea to add newsgroup munging if the field width is
smaller than the length of the newsgroup name. For instance,
assuming the field width is 18 chars, then
Ng de.alt.rec.digitalfotografie
becomes
Ng de.alt.rec.digi
It should better be tweaked into
Ng d.a.r.digitalfot
However, before I put more time into this little project, I'd like
to know if that has any chance of inclusion into mutt at all. If
so, I'd be quite happy to implement the missing stuff as outlined
above.
Thanks,
Corinna
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3203>
Mutt <http://www.mutt.org/>
The Mutt mail user agent