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

mutt, spamcop, and vi: header weeding



Hi all,

I forward spam to spamcop by pressing "F" from the pager.  My editor is vi.
It almost does what I want:


   set my_spamcop='foobar'
   macro pager F "<display-toggle-weed><forward-message>$my_spamcop\n"
   send-hook . 'set signature="~/.sig"'
   send-hook $my_spamcop 'unset signature ; set mime_forward ; \
      set editor=/bin/true; push y'
   fcc-hook  $my_spamcop /dev/null


The problem is that my headers are left "unweeded" after sending the spam.
I tried to solve the problem by adding <display-toggle-weed> at the end of
the macro:


   macro pager F \
   "<display-toggle-weed><forward-message>$my_spam\n<display-toggle-weed>"


but this sends the forwarded spam WITHOUT the full headers!  I guess this is
because the email hasn't been shipped out yet, so when I issue the 2nd
<display-toggle-weed>, it simply re-enables weeding.


So how do I turn the header weeding back on?


Thanks,
Pete


-- 
How VBA rounds a number depends on the number's internal representation.
You cannot always predict how it will round when the rounding digit is 5.
If you want a rounding function that rounds according to predictable rules,
you should write your own.
              -- MSDN, on Microsoft VBA's "stochastic" rounding function

Peter Jay Salzman, email: p@xxxxxxxxx web: http://www.dirac.org/p    
PGP Fingerprint: B9F1 6CF3 47C4 7CD8 D33E  70A9 A3B9 1945 67EA 951D