I want to create an anonymous email profile, so when anyone sends to
this address, when retrieved it will only have a Subject header, and
nothing else will be relayed in "Show All Headers." Is this possible in
conjunction with formail?
Almost.
This is what I have now..
:0Wh:msgid.lock
* !^FROM_DAEMON
* !^X-Loop: xxx(_at_)x(_dot_)com
| formail -D 8192 msgid.cache
The above deletes duplicates. Hence I don't understand the below
comment "if the name was not in the cache". The below will be
executed only if the "formail" got executed (and the mail wasn't a
duplicate).
:0 ehc # if the name was not in the cache
| (formail -k -X Subject: \
-A"X-Loop: xxx(_at_)x(_dot_)com" ; \
) | $SENDMAIL -oi -t
You've deleted all headers but the subject (formail -kXSubject:), so
"sendmail -oi -t" will not know where to send the message.
$SENDMAIL -oi destination_user(_at_)destination(_dot_)domain
might work better. This will give the message a couple of headers,
though: an "Apparently-To: destination_user..." and possibly either a
"From: " or "Sender: " -- and certainly "Return-Path: " (of whoever is
running procmail).
The original sender won't appear in the new message, though.
hth,
--
Neither I nor my employer will accept any liability for any problems
or consequential loss caused by relying on this information. Sorry.
Collin Park Not a statement of my employer.
19111 Pruneridge Ave - MS 47UA Voice: +1-408-447-5570 (T-447-5570)
Cupertino, CA 95014-0714 USA Fax: +1-408-447-7902
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail