procmail
[Top] [All Lists]

RE: complex auto-reply question

1999-09-08 07:34:10
From: David W. Tamkin [mailto:dattier(_at_)Mcs(_dot_)Net]

Dallman Ross wrote,

| If someone writes to both her and me, they receive two
| acknowledgments from her and none from me.

OK, it seems you're depending on the visible headers to
determine which messages are for you and which are for
her.  You really need to know who was the envelope
recipient of each piece.

That was the key, yes.  Thank you for clarifying coalescing my
thinking process with this simple restatement.  That
is exactly what is happening.


How is her .forward set up?  Just with your address?  Ouch,
double ouch.  I hope not.  Do forwards of her mail come
to you with an  extra Received: header by which they can
be distinguished from mail sent directly to you?

Well, it's "ouch," I'm afraid.  I had a simple dot-forward
file put in her directory sending mail to me.  I have looked
for "To: (her)" to do whatever.  Of course, that still happens
if it's to both her and me.  You made me realize, though,
that there's also

Received: from munged.munged.munged (unknown [mungedIP])
        by munged (Postfix) with SMTP id 6962C9835
        for <munged(_at_)ccc-e(_dot_)net>; Wed,  8 Sep 1999 09:06:20 +0200 
(MEST)

If her .forward invokes a setuid root procmail binary -d you,

I'm not sure what the -d is.  I don't think procmail is running
setuid root on this system.  How does one tell?  When I put a
.procmailrc in my home dir, it did not automatically invoke.
I had to set my .forward to point to the procmail executable.
I deduced from that that it's not setuid root.  My memory
is hazy on having read the readme for the makefile a couple
of years ago on another system, but I seem to recall that setuid
root would result in procmail's invoking whenever a .procmailrc
exists in a user's home dir.


you can add
the -a something option to the procmail command line in your
.forward, and then your rcfiles can tell who the envelope
recipient is:

  ARG=$1

  :0
  * ARG ?? something
  { RECIPIENT=me }
  :0E
  * ARG ?? ^^^^
  { RECIPIENT=her }
  :0E
  { RECIPIENT=interloper }

Here we come to my separate question that era answered part
of about what the carets mean.  I take it they mean scoring?
That is probably why I took a few days to get back to and
answer this -- because my "eyes rolled up into my brain"
again.  :-)

I had not known about the -a flag in the .forward.  Will
have to read the man pages again.  Sounds promising.

Okay, I skimmed the man page.  I tried this in my .forward:
"|IFS=' ';/usr/bin/procmail -a weird -tf- || exit 75 #dross"

The only difference from what I had previously is the
-a flag and the argument "wierd".  I sent myself a
message, but the word "weird" did not show up anywhere
in the headers.  I sent from the local system, if that
makes any difference.  This is under procmail v3.11pre7.

Regards,
DR

--
Dallman Ross
U.S. Voicemail/FAX: +1 (415) 680-2388
Residence Telephone: +49 (0) 6122 / 98 04 46
Cellular Telephone: +49 (0) 177 / 515 34 69
<dman(_at_)netcom(_dot_)com> ? <dman(_at_)nomotek(_dot_)com> ? 
<dman(_at_)oxon(_dot_)de>

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