Mailtraq - the Complete Email Server
   

Enstar for Mailtraq email server sales & support
Making world-class Internet technology affordable  

Search for:

Advanced search

MsgGetRcpts()

Returns a comma separated list of the message recipients specified in the routing fields of the current message – directly analogous to the forward path of the SMTP envelope. The message recipients are not necessarily the same as those specified in To: or Cc: headers. Local recipients may not have the domain part of their e-mail address specified.

list := MsgGetRcpts()

list
A comma separated list of the message recipients.

Send message to 'suspect junk' mailbox if To: and Cc: headers don't match message forward path

rcpt_list := MsgGetRcpts();
rcpt_match := "FALSE";
For(rcpt_list, "rcpt",
  If(WildcardMatch(Header("To") ++ " ", "*" ++ rcpt ++ "*"),
    rcpt_match := "TRUE",
    If(WildcardMatch(Header("Cc") + " ", "*" ++ rcpt ++ "*"),
      rcpt_match := "TRUE"
    )
  )
);
If(Not(rcpt_match), MsgSetRcpts(AddressOf("junk")))
Mailtraq Highlights...
 SMTP Server     Mailtraq SMTP email server video IMAP Server     Mailtraq IMAP email Server video
 POP3 Server     Mailtraq POP3 email server video Proxy Server     Mailtraq proxy email server video
 Webmail Server     Mailtraq webmail email server video Mailing-list Server     Mailing list email server video
 Groupware Services     Mailtraq groupware email services video Spam and Virus control     Spam and virus control email server video

 

   Copyright © 2003 - 2011 Enstar Ltd, Enstar LLC & Fastraq Ltd. All rights reserved. Privacy policy.
   Mailtraq® is a registered trademark of Fastraq Limited.