auto Forward eMails with custom Rules
Project description
ForMaiR - auto Forward eMails with custom Rules
Installation
Install using pip
$ python3 -m pip install --user formair
Install using git
$ git clone git@github.com:k8scat/ForMaiR.git
$ cd ForMaiR
$ python3 setup.py install
Usage
Refer config: template/config.yaml
$ formair # load config from ./config.yaml
$ formair /path/to/config.yaml # load config from /path/to/config.yaml
Custom rules
Emails which meet follow rules will be auto forwarded to to_addrs
.
- Email
from_addr[1]
infrom_addrs
- Email
subject
meetsubject_pattern
- Email
plain_content
orhtml_content
meetcontent_pattern
rules:
-
to_addrs:
- 't1@example.com'
- 't2@example.com'
from_addrs:
- 'f1@example.com'
- 'f2@example.com'
subject_pattern: ''
content_pattern: ''
-
to_addrs:
- 't1@example.com'
- 't2@example.com'
from_addrs:
- 'f1@example.com'
- 'f2@example.com'
subject_pattern: ''
content_pattern: ''
Only forwarding the new emails
Support forwarding new emails in the specified range.
- Get
last_email_index
from the index_file (default 0 if not exists) - Get
email_count
frompop3_server.stat
for index in range(last_email_index+1, email_count+1):
pass
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
formair-1.2.0-py3.6.egg
(15.0 kB
view hashes)