i meant, procmail. it only FEELs like prickmail.

anybody got some pointers here?

On Mon, Oct 02, 2000 at 03:28:10PM -0500, will trillich wrote:
> (fetchmailed? i decree it to be a verb today.)
> 
> i've got some old addresses
>       [EMAIL PROTECTED]
>       [EMAIL PROTECTED]
>       [EMAIL PROTECTED]
> and i use fetchmail to yank email from those into my active
>       [EMAIL PROTECTED]
> account.
> 
> 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--
> 
> 
> :0 hc
> * [EMAIL PROTECTED]/(pinncomp|speedex)
> {
>       OLD=$MATCH
> 
>       # track who got reminded
>       :0 hwc:old_addrs.lock
>       | egrep '^Date:|^From:' >> to_$OLD
> 
>       # remind about new address
>       :0 c
>       * ! ^X-Loop: [EMAIL PROTECTED]
>       * ^TO_ \/[a-zA-Z0-9]+@(pinncomp|speedex)
>       | (formail -r -I"Precedence: junk" -A"X-Loop: [EMAIL PROTECTED]" ; \
>               echo "You sent email to an old email address '$MATCH';" ; \
>               echo "It's been forwarded to the new address '[EMAIL 
> PROTECTED]'." ; \
>               echo "Please use '[EMAIL PROTECTED]' in the future. Thanks." ) 
> | $SENDMAIL -t
> }
> 
> one isp adds a X-RCPT-TO header, but the other doesn't...
> 
> suggestions solicited.

Reply via email to