This should probably be ported to Docker instead of using systemd, but a new update from XING made this project obsolete.
The XING API would have made more sense but is being discontinued: https://dev.xing.com/docs/resources
Run this service for an email adress and all forwarded messages from XING (and other services later) are being decoded and send back automatically.
Use this with a backup-address! No guarantees that a mistake won't delete everything!
Additional structures for other handlers are prepared, this program will grow with it's requirements.
Feel free to add functionalities or post issues!
Download this by "git clone"-ing this repository. Follow the instructions below to start it.
Turn off save_mode
to enable auto-deletion of processed mails. Edit t_restart
to change check intervals.
This Code will never return, so be prepared to kill it manually should the need arise.
Warning: Mail-Providers differ in their behaviour. This program deals with two behaviours:
Easy to use, fast, mobile, always available.
- Needs manual interaction.
- Can cut off original messages. This behaviour is not universal but was observed with Gmail.
- Not always detected for handlers, detection currently depends on the searching behaviour of the host-adress & will only work in Gmail.
Automatic, full & silent forwarding without human intervention. Easy to detect & filter.
Cumbersome to setup, follow official Gmail Guide.
Use pipenv install [--python python3.7]
in cloned folder to generate environment ( execute export PIPENV_TIMEOUT=500
in bash before restarting if you get a timeout on weaker systems)
Test with pipenv run which python
, this should point to a custom virtualenv (e.g. /home/pi/.local/share/virtualenvs/ReMailer-A3UyrjCG/bin), copy that path
If wanted start manually with /prev/path/to/python main.py
, this should use the previously stated python version
- Start with previous chapter
- Edit ReMailer.service to reflect your working directory ("~" in this example) and your custom python version from before.
- Copy ReMailer.service
sudo cp ~/ReMailer/ReMailer.service /etc/systemd/system
(callsudo systemctl daemon-reload
to reload the service file if you need multiple tries) - Start Service manually to test everthing is working:
sudo systemctl start Remailer
- Check status:
systemctl status ReMailer.service
- Enable automatic execution:
sudo systemctl enable ReMailer