Go to file
Alex 209317ba21 [feat] Use more mmsd dbus API
- Mark MMS as read on conversion
- Allow deleting MMS after conversion
2021-05-05 16:25:46 +02:00
.gitignore Initial commit 2021-04-30 15:15:32 +00:00
COPYING [feat] Add license 2021-05-02 08:40:30 +02:00
LICENSE [feat] Add license 2021-05-02 08:40:30 +02:00
README.md [feat] Use more mmsd dbus API 2021-05-05 16:25:46 +02:00
mms2mail [feat] Use more mmsd dbus API 2021-05-05 16:25:46 +02:00
mms2mail.ini [fix] Watch the mmsd folder instead of a test folder 2021-05-02 08:40:30 +02:00
mms2mail.service [feat] DBus 2021-05-04 13:10:28 +02:00



Convert MMSd MMS file to mbox.



  • python3
  • python3-watchdog (pip install watchdog)
  • python-messaging (pip install python-messaging)
  • marrow.mailer (pip install marrow.mailer)


Install the dependency and mms2mail:

pip install --user watchdog # or sudo apt install python3-watchdog
pip install --user marrow-mailer
pip install --user python-messaging

mkdir -p ~/.local/bin
cp mms2mail ~/.local/bin

To enable the daemon mode in systemd user :

mkdir -p ~/.config/systemd/user
cp mms2mail.service ~/.config/systemd/user/
systemctl --user daemon-reload 
systemctl --user enable mms2mail
systemctl --user start mms2mail


An optional configuration file can be put in the home folder : $HOME/.mms/modemmanager/mms2mail.ini. The default value are :

mailbox = /var/mail/$USER  ; the mailbox where mms are appended
user = $USER               ; the user account specified as recipient
domain = $HOSTNAME         ; the domain part appended to phone number and user
attach_mms = false         ; whether to attach the full mms binary file


mms2mail [-h] [-d [{dbus,filesystem}] | -f FILES [FILES ...]] [--delete] [--force-read]

optional arguments:
  -h, --help            show this help message and exit
  -d [{dbus,filesystem}], --daemon [{dbus,filesystem}]
                        Use dbus signal from mmsd by default but can also watch mmsd storage folder (useful for mmsd < 1.0)
  -f FILES [FILES ...], --file FILES [FILES ...]
                        Parse specified mms files and quit
  --delete              Ask mmsd to delete the converted MMS
  --force-read          Force conversion even if MMS is marked as read