Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Extracting 'To' mail header from a mailbot


Message #1 by "Mark Carruth" <mcarruth@t...> on Sat, 1 Mar 2003 12:18:10 -0000
Check out

http://www.ietf.org/rfc/rfc0822.txt

This will tell you the format.

Christopher Hill
----------------------------------------
Subject: Extracting 'To' mail header from a mailbot
From: "Mark Carruth" <mcarruth@t...>
Date: Sat, 1 Mar 2003 12:18:10 -0000
X-Message-Number: 1

Recently I've been trying to write a mailbot for a piece of software,
which essentially takes an email (that is piped to it by the mail
program, in this case Exim) and turning this into a ticket.

The problem I am having, surprisingly, is establishing, from the message
headers, who the message has actually been sent to. The reason for this
is that different mail programs (whether this be Outlook express,
another windows mail client or some Webmail program) seem to send the
'To' header in different formats, making it somewhat heard to get a
definite to address.

Any suggestions appreciated.

Many Thanks,

--------------------
Mark Carruth 




  Return to Index