The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

wsgetmail - get mail from cloud webservices

SYNOPSIS

Run:

    wsgetmail [options] --config=wsgetmail.json

where wsgetmail.json looks like:

    {
    "client_id": "abcd1234-xxxx-xxxx-xxxx-1234abcdef99",
    "tenant_id": "abcd1234-xxxx-xxxx-xxxx-123abcde1234",
    "secret": "abcde1fghij2klmno3pqrst4uvwxy5~0",
    "global_access": 1,
    "username": "rt-comment@example.com",
    "folder": "Inbox",
    "command": "/opt/rt5/bin/rt-mailgate",
    "command_args": "--url=http://rt.example.com/ --queue=General --action=comment",
    "command_timeout": 30,
    "action_on_fetched": "mark_as_read"
    }

DESCRIPTION

wsgetmail retrieves mail from a folder available through a web services API and delivers it to another system. Currently, it only knows how to retrieve mail from the Microsoft Graph API, and deliver it by running another command on the local system.

CONFIGURATION

For full setup and configuration instructions, see App::wsgetmail.

    perldoc App::wsgetmail

ARGUMENTS

--config, --configuration, -c

Path of the primary wsgetmail JSON configuration file to read. This argument is required. The configuration file is documented in the next section.

--options

A string with a JSON object in the same format as the configuration file. Configuration in this object will override the configuration file. You can use this to extend a base configuration. For example, given the configuration in the synopsis above, you can process a second folder the same way by running:

    wsgetmail --config=wsgetmail.json --options='{"folder": "Other Folder"}'
--verbose, --debug, -v

Log additional information about each mail API request and any problems delivering mail.

--dry-run

Read mail and deliver it to the configured command, but don't run the configured action_on_fetched like deleting messages or marking them as read.

--help, -h

Show this help documentation.

AUTHOR

Best Practical Solutions, LLC <modules@bestpractical.com>

LICENSE AND COPYRIGHT

This software is Copyright (c) 2015-2020 by Best Practical Solutions, LLC.

This is free software, licensed under:

The GNU General Public License, Version 2, June 1991