procmail
[Top] [All Lists]

Re: mail to exmh gets misplaced with procmail

1995-11-01 13:30:14

In the exmh-users mailing list,
iskender(_at_)csla(_dot_)csl(_dot_)sri(_dot_)com (Iskender Agi) said:
|>
|> I just made some posts to a couple of mail groups, and got a barrage of
|> "user unknown" or "host unknown" replies.  So, I thought I would use
|> the following lines in my .procmailrc recommended in the procmail man
|> page to handle bounced mail.
|> 
|> :0 w:
|> * ^FROM_MAILER
|> | rcvstore +PostMaster
|> 
|> This morning, I find that all the mail for the exmh group also ended up
|> in my PostMaster folder.  I have another line in my .procmailrc to handle
|> the mail from this group.  This line is located below the line to sort
|> the bounced mail above.
|> 
|> :1
|> ^TO.*(exmh-users|exmh-announce).*
|> | rcvstore +Exmh
|> 

My guess is that it's the following line (which accompanies all mail sent
on the exmh-users mailing list):

  Sender: exmh-mail-errors(_at_)parc(_dot_)xerox(_dot_)com

If you look at the expansion of procmail's FROM_MAILER, you'll notice
that it looks for the text "Mail" (case insensitive) in the sender
address.  For procmail 3.11pre4, the expansion is:

  (^(((Resent-)?(From|Sender)|X-Envelope-From):|\
  >?From )([^>]*[^((_dot_)%(_at_)a-z0-9])?(\
  Post(ma(st(er)?|n)|office)|(send)?Mail(er)?|daemon|mmdf|n?uucp|\
  r(esponse|oot)|(bbs\\.)?smtp|serv(ices?|er)|A(dmin(istrator)?|MMGR)\
  )(([^).!:a-z0-9][-_a-z0-9]*)?[%@>        ][^<)]*(\\(.*\\).*)?)?$([^>]|$))

Of course, this is *really hideous* so my answer is only an educated guess.

If I'm correct, you could avoid it by modifying your test to:

  :0 w:
  * ^FROM_MAILER
  * !^Sender: exmh-mail-errors
  | rcvstore +PostMaster

Of course, this is not 100% satisfactory as the FROM_MAILER shouldn't
produce false hits.

I've cc'd the procmail mailing list on this reply;  I think it's a more
relevant place for discussion of this problem.

Olly

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