pricmail recipe to detect fetchmailed addrs?
(fetchmailed? i decree it to be a verb today.)
i've got some old addresses
and i use fetchmail to yank email from those into my active
i'd like to phase out the older accounts...
what kind of procmail recipe do i need to figure out
the actual destination address of an email, so i can
gently inform senders that i've got a new address?
this doesn't quite get it--
# track who got reminded
| egrep '^Date:|^From:' >> to_$OLD
# remind about new address
* ! ^X-Loop: email@example.com
* ^TO_ \/[a-zA-Z0-9]+@(pinncomp|speedex)
| (formail -r -I"Precedence: junk" -A"X-Loop: firstname.lastname@example.org" ; \
echo "You sent email to an old email address '$MATCH';" ; \
echo "It's been forwarded to the new address 'email@example.com'." ; \
echo "Please use 'firstname.lastname@example.org' in the future. Thanks." ) | $SENDMAIL -t
one isp adds a X-RCPT-TO header, but the other doesn't...