Remote service trigger with mail
Project description
Mail Trigger
Requirements
- Python (3.7+)
- pip
- python-dev
Installation
On Ubuntu / Mint, install Mail Trigger with the following commands:
sudo apt update
sudo apt install python3-dev python3-pip python3-setuptools
sudo pip3 install mailtrigger
On OS X, install Mail Trigger via Homebrew (or via Linuxbrew on Linux):
TBD
On Windows, install Mail Trigger with the following commands:
TBD
Updating
pip3 install mailtrigger --upgrade
Settings
Several Mail Trigger parameters can be set in the file config.json.
An example of config.json:
{
"debug": false,
"pop3": {
"host": "pop.example.com",
"pass": "pass",
"port": 995,
"ssl": true,
"user": "user"
},
"smtp": {
"host": "smtp.example.com",
"pass": "pass",
"port": 465,
"ssl": true,
"user": "user"
}
}
Usage
Title
[trigger]: Write your description here
Note: [trigger]
is the reserved word in title
Recipient
The recipient is mail receiver as Mail Trigger.
Content
Gerrit Trigger
@gerrit help
@gerrit list
@gerrit restart <host>
@gerrit start <host>
@gerrit stop <host>
@gerrit verify <host>
@gerrit <host>:<port> review
[--project <PROJECT> | -p <PROJECT>]
[--branch <BRANCH> | -b <BRANCH>]
[--message <MESSAGE> | -m <MESSAGE>]
[--notify <NOTIFYHANDLING> | -n <NOTIFYHANDLING>]
[--submit | -s]
[--abandon | --restore]
[--rebase]
[--move <BRANCH>]
[--publish]
[--json | -j]
[--delete]
[--verified <N>] [--code-review <N>]
[--label Label-Name=<N>]
[--tag TAG]
{COMMIT | CHANGEID,PATCHSET}
Jenkins Trigger
@jenkins help
@jenkins list
@jenkins <host>:<port> build JOB [--parameter <PARAMETER> | -p <PARAMETER>]
@jenkins <host>:<port> list
@jenkins <host>:<port> query JOB
@jenkins <host>:<port> rebuild JOB
@jenkins <host>:<port> stop JOB
@jenkins <host>:<port> verify JOB
Jira Trigger
@jira help
Trigger Help
@help
License Apache
Project License can be found here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mailtrigger-0.0.2.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for mailtrigger-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24427411c52c056a84ccd170bba4ebadf17ba54f0c1147b98af90ffaff5eca99 |
|
MD5 | 60c201960160c68e13b4bfa4e7338231 |
|
BLAKE2b-256 | 8ddf85e96c5f63df3941166c8a476bf380611efc4bd8f1f440aa3b8cd3ef5eba |