<<< Date Index >>>     <<< Thread Index >>>

%t as To or Newsgroup?



Hi,

is it possible to redefine the meaning of the %t $index_format specifier
so that the "To:" content is printed is available as usual, but if not,
to print the content of the "Newsgroup:" header line?

The reason is this.  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.  AFAICS, there's no way to define to print the "Newsgroup:"
content at all.  Subsuming this under the %t specifier seems most
convenient in this case.  It looks like it should be possible to do
that in mutt_parse_rfc822_line, shouldn't it?


Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat