Mail Trigger
Requirements
- Python (3.7+)
- pip
- python-dev
Installation
On Ubuntu / Mint, install Mail Trigger with the following commands:
apt update
apt install python3-dev python3-pip python3-setuptools
pip 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:
pip install -U pywin32
pip install -U PyInstaller
pip install -Ur requirements.txt
pyinstaller --clean --name mailtrigger -F trigger.py
Updating
pip install mailtrigger --upgrade
Running
mailtrigger --auther-config auther.json --mailer-config mailer.json --scheduler-config scheduler.json --trigger-config trigger.json
Settings
Mail Trigger parameters can be set in the directory config.
An example of configuration in auther.json:
{
"group": {
"default": [
"name@example.com"
],
"ldap/name": "true"
},
"message": {
"subject": "[trigger]"
},
"provider": {
"ldap": {
"base": "base",
"host": "localhost",
"pass": "pass",
"port": 389,
"user": "user"
}
}
}
An example of configuration in mailer.json:
{
"pop3": {
"host": "pop.example.com",
"pass": "pass",
"port": 995,
"ssl": true,
"timeout": 10,
"user": "user"
},
"smtp": {
"host": "smtp.example.com",
"pass": "pass",
"port": 465,
"ssl": true,
"timeout": 10,
"user": "user"
}
}
An example of configuration in scheduler.json:
{
"interval": 30
}
An example of configuration in trigger.json:
{
"gerrit": {
"server": [
{
"host": "localhost",
"pass": "pass",
"port": 8080,
"user": "user"
}
]
},
"jenkins": {
"server": [
{
"host": "localhost",
"pass": "pass",
"port": 8081,
"user": "user"
}
]
},
"printer": {
"file": "output.xlsx",
}
}
Usage
Subject
[trigger]: Write your description here
Note: [trigger] is the reserved word in subject
Recipient
The recipient is mail receiver as Mail Trigger.
Content
Gerrit Trigger
@gerrit abandon <host> <changenumber>
@gerrit help
@gerrit list
@gerrit query <host> <changenumber>
@gerrit rebase <host> <changenumber>
@gerrit restart <host>
@gerrit restore <host> <changenumber>
@gerrit review <host> <changenumber>
@gerrit reviewer <host> <changenumber> [add|remove] <reviewer>
@gerrit start <host>
@gerrit stop <host>
@gerrit submit <host> <changenumber>
@gerrit version <host>
Jenkins Trigger
TBD
Trigger Help
@help
License Apache
Project License can be found here.
Metadata
Release files for mailtrigger 4.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mailtrigger-4.0.0.tar.gz | 15.5 kB | Without provenance | Details for mailtrigger-4.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mailtrigger-4.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for mailtrigger-4.0.0-py2.py3-none-any.whl |
Total release size: 35.9 kB
Release files / mailtrigger-4.0.0.tar.gz
| Download URL | mailtrigger-4.0.0.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
648f03ec6d347fb29d6ecf9b26ff6fe894c6fb919e89cdae9b23f87eb058c8c2
|
|
BLAKE2b-256 checksum How to use checksums |
fcd483b261753b3e6167c53b6b672c8c83e6d524ec9d796ffe74477127866c50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8
|
Release files / mailtrigger-4.0.0-py2.py3-none-any.whl
| Download URL | mailtrigger-4.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 20.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8053ab615f0cf354152cd96a6596e9dbca39034a393797467fd36d1aeca800bb
|
|
BLAKE2b-256 checksum How to use checksums |
713f0630e84fc7df12f9eb1d5c2528b4430518cd68ea040f92d46bdf3dcbe625
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8
|
Security for mailtrigger 4.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.