wiki:Documentation/ARexxAPI/MAILEXPORT

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

--

Languages:


ARexx API

    MAILEXPORT

    NAME

    MailExport -- Export the selected messages to a file. (V2.0)

    TEMPLATE

    FILENAME/A,ALL/S,APPEND/S,QUIET/S

    FUNCTION

    Exports the selected messages to a file, in a format ready to be used by any mail application which supports the MBOX format.

    INPUTS

    FILENAME/A - filename to use
    ALL/S - export the whole folder
    APPEND/S - append the data to an (already existing) file
    QUIET/S - don't open the transfer window and export all mails silently

    RETURNS

    RC is set to 10 if no message is selected or if the output file can't be written to.

    NOTES

    EXAMPLE

    /* Export all the contents of the current folder */

    MAILEXPORT 'ram:spool' ALL

    BUGS

    SEE ALSO