wiki:Documentation/ARexxAPI/MAILIMPORT

Version 3 (modified by AmigaPhil, 10 months ago) (diff)

--

Languages:


ARexx API

    MAILIMPORT

    NAME

    MailImport -- Import messages from a file on disk into the current folder. (V1.3.2)

    TEMPLATE

    FILENAME/A,QUIET/S,WAIT/S

    FUNCTION

    Imports messages from a file on disk into the current folder. The file is assumed to be in MBOX format.

    INPUTS

    FILENAME/A - file to import messages from
    QUIET/S - don't open the transfer window and import all mails silently
    WAIT/S - open the transfer window to enable user interaction, i.e. message preselection (V2.0)

    RETURNS

    RC is set to 10 if the filename cannot be opened.

    NOTES

    The command returns immediately if the WAIT switch is used.

    EXAMPLE

    /* Selectively import messages to the Incoming folder */

    SETFOLDER Incoming
    MAILIMPORT 'ram:spool' WAIT

    BUGS

    SEE ALSO

    NEWMAILFILE ?