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

Re: arbitrary header info in index_format?



        Hi all :)

En ce beau mercredi 10 septembre, à 04 heures 21, David T-G a raconté :

(Sorry, I'm french, and I didn't told mutt that you speak english yet..)

David> Mike --
David> 
David> ...and then Mike Arrison said...
David> % 
David> % On Tue, Sep 09, 2003 at 07:20:13PM +0200, Hugues wrote:
David> % >      ________________
David> % >      rewrite_subject 1
David> % >      subject_tag     [SPAM] _HITS_ Pts;
David> % That looks pretty good, but I would prefer it in a separate header.
David> 
David> Agreed :-)

I totally agree, because :

  1. I do not really like SA changing my headers
  2. It is not a *real* solution, neither a clean one

BUT.. 

this workarounds helps me. 
However... :

David> % What if I got the header to look like:
David> % 
David> % X-MyScore: 2.6
David> 
David> If you can do that, then use X-Label: instead.

..exactly,   I   totally   forgot   the   existence   of   this   only
mutt-index-printable header with the "%Y" string in the index format string.

So, with procmail, I can rewrite my headers in order to obtain such an
"X-Label:" based on the  "X-Spam-*" fields from SpamAssassin, and then
make mutt displaying it for me. 

But  i retain  the possibility  from SA  to alter  the Subject  with a
"[SPAM]" key string, that is really quickly readable ;)

David> % mail, it parses up all the headers, I'm really just wondering if the
David> % none standard headers end up in a usable variable.
David> 
David> Basically no, but X-Label: is a standard non-standard header ;-)

Totally agree ! :o)
It would be very great if we could do such things with _any_ header...

   ;)



Good,   now  I   have  to   rewrite   my  ~/.spamassassin/users_prefs,
~/.procmailrc and ~/.muttrc files ;) Gosh.. I only I had more time.. ;)

-- 
                                Hugues
    _______________________________________________________________
    GnuPG NEW!fINGERpRINT 5c9148c69895d231632e 6f23c03bdfd21533658c
    ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

Attachment: pgpu9UGOiRfm0.pgp
Description: PGP signature