Koozali.org: home of the SME Server

Parsing E-Mail Headers (Fetchmailrc)

Tino

Parsing E-Mail Headers (Fetchmailrc)
« on: May 24, 2004, 06:05:34 PM »
:oops: Greetings to Everyone....

I need to find a way to strip additional header information off incomming e-mail from my ISP.

As a standard feature, they add a 7 character prefix to the recipient name.

Setting up aliases did not work, to try and bypass / deliver the e-mail to the correct receipient.

e.g:

Actual recipient name = johndoe@mydomain.com
incomming mail (ISP) = dmname-johndoe@mydomain.com

I need to strip the first 7 characters ("dmname-") from the header.