hi.

I've set up an automated reply to all messages received for the
'domain.com' domain (which are moved to my account as the
'domain.com' domain doesn't function yet). It replies them with:


   %SUBJECT="Re: %OSUBJ"Hi

   I'm sorry, but this e-mail address (%OTOADDR) doesn't exist. Your
   message follows.

   --8<--------------------------------------------------------------------
   %HEADERS

   %TEXT
   --8<--------------------------------------------------------------------


As you may see, the automated reply informes about what e-mail address
was the message sent to. Unfortunately, some people send messages
using multiple e-mail addresses in the 'To:' field, which causes the
reply to contain the wrong e-mail address in the 'address (%OTOADDR)
doesn't exist' part.

What I need to do is to extract the e-mail addresses (or the first at
list) in the 'domain.com' domain and output them into the message. Is
it possible? Could someone hint me at how it should be done?

Example:

  The 'To:' field may contain one or more e-mail addresses. The
  problem arises when there are more then one.

  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED];
  [EMAIL PROTECTED]

  I need to extract the '@domain.com' addresses and output them,
  ignoring the two other e-mail addresses. It would be enough to
  extract the first one, but both would be even better.

Thanks in advance.

-- 
m.tatarynowicz
yourc s.a.

what has four legs and an arm? a happy pit bull. (B. Calder)


-- 
______________________________________________________
Archives   : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to