Juergen Fiedler wrote:

> Mail to three email addresses is delivered to the same email account at
> our ISP. To send the mail to the appropriate recipient, fetchmail pipes
> everything through procmail. The recipes for procmail look like that:
> 
> >-------SNIP-------<
> $DEFAULT=juergen
> 
> :0
> * ^TOsarah
> ! sarah
> 
> :0
> * ^TOrebecca
> ! rebecca
> 
> :0
> * ^TOjuergen
> ! juergen
> >-------SNIP-------<
> 
> Now if I we get email with 
>       To: [EMAIL PROTECTED], [EMAIL PROTECTED]
> in the header, we normally get two of them: one for Sarah, one for me. But
> with these recipes, both mails land in Sarah's mail box. One step would be
> to change the ':0' to ':0 c' - then both of us would get both mails. But
> that would cause a whole new set of problems.
> There must be a better way, right? I would really appreciate it if you
> could help me (again).

If present, filter upon X-Envelope-To: or Delivered-To: headers. 
Otherwise, check whether the last Received: header contains the
username, e.g.

Received: from ferret.lmh.ox.ac.uk ([EMAIL PROTECTED] [163.1.138.204])
        by server.sensei.co.uk (8.8.5/8.8.2) with SMTP id EAA23934
        for <[EMAIL PROTECTED]>; Fri, 26 Mar 1999 04:29:43 GMT
             ^^^^^^^^^^^^^^^^^^

and if it does, use that.

Otherwise there isn't much you can do; the recipient address was
discarded when the message was delivered to your POP3/IMAP mailbox.

> P.S.: When I read my own mails in the list, the author field (in the mail
> list of pine) reads 'To: [EMAIL PROTECTED]' instead of 'Juergen
> Fiedler' Does anyone have any idea what's going on?

Yes. Unsurprisingly, most of the mail which is sent to this list has
[EMAIL PROTECTED] as one of the recipient addresses (either
To: or CC:). Majordomo doesn't change the To: header when it
distributes a message to the list's subscribers.

-- 
Glynn Clements <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to