Mailtraq - the Complete Email Server

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

Search for:

Advanced search


Returns the number of lines in the current message body. Use this function to identify the range of valid line indices. For example, a value of '5' indicates that the message lines from '0' to '4' are valid.

lines := MsgGetLineCount()

The number of lines in the message body.

Rejects list messages over 200 lines long and composes a rejection notice to the author

If(MsgGetLineCount() > 200,
    your_id := Header("Message-ID"),
    your_date := Header("Date"),
    your_reply := If(Header("Reply-To") = "", 
    PostMessage("postmaster", your_reply,
        SetHeader("Subject", "Failed Message : list policy max 200 lines" ),
        MsgAddLine("The message you forwarded to this mailing list exceeded"),
        MsgAddLine("the maximum permissible of 200 lines."),
        MsgAddLine("Message-ID: " ++ your_id),
        MsgAddLine("Date: " ++ your_date)
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.