Refer config: template/config.yaml
docker run -d --rm \
-v /path/to/config.yaml:/formair/conf/config.yaml \
k8scat/formair:latest
pip
python3 -m pip install --user formair
git
git clone git@github.com:k8scat/ForMaiR.git
cd ForMaiR
python3 setup.py install
Refer config: template/config.yaml
formair # load config from ./config.yaml
formair /path/to/config.yaml # load config from /path/to/config.yaml
Emails which meet follow rules will be auto forwarded to to_addrs
.
from_addr[1]
in from_addrs
subject
meet subject_pattern
plain_content
or html_content
meet content_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: ''
Support forwarding new emails in the specified range.
last_email_index
from the index_file (default 0 if not exists)email_count
from pop3_server.stat
for index in range(last_email_index+1, email_count+1):
pass