Add MMS sending capacilities #1
4 changed files with 45 additions and 2 deletions
18
Makefile
Normal file
18
Makefile
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
install:
|
||||||
|
mkdir -p ${HOME}/.local/bin
|
||||||
|
mkdir -p ${HOME}/.config/systemd/user
|
||||||
|
install -m 700 ./mms2mail ${HOME}/.local/bin/
|
||||||
|
install -m 755 ./mms2mail.service ${HOME}/.config/systemd/user/
|
||||||
|
systemctl --user daemon-reload
|
||||||
|
|
||||||
|
configure:
|
||||||
|
systemctl --user enable mms2mail
|
||||||
|
|
||||||
|
start:
|
||||||
|
systemctl --user start mms2mail
|
||||||
|
|
||||||
|
deb-deps:
|
||||||
|
sudo apt install python3-pydbus python3-aiosmtpd
|
||||||
|
|
||||||
|
pypy-deps:
|
||||||
|
pip install --user -r requirements.txt
|
25
README.md
25
README.md
|
@ -20,6 +20,29 @@ By default:
|
||||||
- python3-pydbus
|
- python3-pydbus
|
||||||
|
|
||||||
### setup
|
### setup
|
||||||
|
|
||||||
|
Install the dependency and mms2mail (on debian based distribution):
|
||||||
|
```
|
||||||
|
make deb-deps install
|
||||||
|
```
|
||||||
|
For other distribution:
|
||||||
|
```
|
||||||
|
make pypy-deps install
|
||||||
|
```
|
||||||
|
|
||||||
|
To enable the daemon mode in systemd user :
|
||||||
|
```
|
||||||
|
make configure start
|
||||||
|
```
|
||||||
|
|
||||||
|
Depending on your distribution, you might have to add your account to the ```mail``` group to be able to lock and use the system mbox.
|
||||||
|
On Debian based distribution :
|
||||||
|
```
|
||||||
|
sudo addgroup $(whoami) mail
|
||||||
|
```
|
||||||
|
|
||||||
|
#### manual install
|
||||||
|
|
||||||
Install the dependency and mms2mail (on debian based distribution):
|
Install the dependency and mms2mail (on debian based distribution):
|
||||||
```
|
```
|
||||||
sudo apt-get install python3
|
sudo apt-get install python3
|
||||||
|
@ -89,4 +112,4 @@ set smtp_url = "smtp://localhost:2525"
|
||||||
set ssl_starttls = no
|
set ssl_starttls = no
|
||||||
set ssl_force_tls = no
|
set ssl_force_tls = no
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -3,7 +3,7 @@ Description=Multimedia Messaging Service to Mail converter Daemon
|
||||||
After=mmsd.service
|
After=mmsd.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=python3 %h/.local/bin/mms2mail -d
|
ExecStart=python3 %h/.local/bin/mms2mail
|
||||||
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=10s
|
RestartSec=10s
|
||||||
|
|
2
requirements.txt
Normal file
2
requirements.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
pydbus
|
||||||
|
aiosmtpd
|
Loading…
Reference in a new issue