wsgetmail - get mail from cloud webservices
Run:
wsgetmail [options] --config=wsgetmail.json
where wsgetmail.json looks like:
wsgetmail.json
{ "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" }
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.
For full setup and configuration instructions, see App::wsgetmail.
perldoc App::wsgetmail
Path of the primary wsgetmail JSON configuration file to read. This argument is required. The configuration file is documented in the next section.
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"}'
Log additional information about each mail API request and any problems delivering mail.
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.
action_on_fetched
Show this help documentation.
Best Practical Solutions, LLC <modules@bestpractical.com>
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
To install App::wsgetmail, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::wsgetmail
CPAN shell
perl -MCPAN -e shell install App::wsgetmail
For more information on module installation, please visit the detailed CPAN module installation guide.