procmail
[Top] [All Lists]

Re: recipe help

2003-11-04 08:22:18

Black magic is fine my me.  ;^)  It works great.  Thanks.

Christopher

OK.  Someone creates a .vacation file to tack "(Out of the Office)" to
the end of a subject line.  The subject line is already most of the 80
characters.  So sendmail "helpfully" breaks the subject line into two
lines at a word break, and that word break is in the middle of the (Out
of the Office).  Just like what my mailer did to the body of this
message.

So "Out
of the Office" does not match the rule "Out of the Office", so it is not
filed correctly.


      David Tamkin helped me to solve this problem in the past:

 1  :0 H
 2  {
 3        :0
 4        SUBJECT=| formail -XSubject:
 5
 6        :0
 7        *$ ^$\SUBJECT
 8      * ^Subject:.*Out of the Office
 9        /where/is/officer
10  }


      It works.  How? I don't know - for me it's black-magic.
      Maybe David will explain us why line number #8 works if we
      do not check the match against the variable "SUBJECT"?

Bye,
 Udi


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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