procmail
[Top] [All Lists]

Re: Chaning subject on forwarded message

1996-01-19 20:38:10
"Timothy J. Luoma" <luomat(_at_)cedman(_dot_)remote(_dot_)Princeton(_dot_)EDU> 
writes:
:0
*^Subject: *
{
      :0fhw
      | formail -I "Subject: [FWD] $SUBJECT"

      :0 c
      ! 476tjl(_at_)ptsmail(_dot_)ptsem(_dot_)edu
              
      :0fhwc
      | formail -I "Subject: $SUBJECT"

      
}

It seems to be working great.  Is there anything I am missing that might
sneak up on me later?  Anyone want to offer any alternatives?  I'm still
really new at this, so I'm sure there might be better ways of doing things
than how I get them done. 

I think I would prefer:


:0c
{
        :0fhw
        *^Subject: \/
        |formail -I "Subject: [FWD] $MATCH"

        :0
        ! 476tjl(_at_)ptsmail(_dot_)ptsem(_dot_)edu
}


That covers you even if you mung the subject earlier in the procmailrc
(but after the SUBJECT=...), and it still handles delivery to the default
by falling off the end, thus allowing you to do more changes to the
default copy by simply adding to the end.


Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>