- Wie update ich meine Mails local
- ================================
- Ein Skript das Mail holt inkl um Outlook rumschaufeln und notmuch updatet.
- [schenk:~/bin] master(+4/-214)* ± cat sync-mail-eckelmann
- #!/bin/sh
- false; while [ $? -ne 0 ]; do mbsync -a; done
- notmuch new
- Manuell kann ich das in neomutt mit G auslösen, die Datei "macros" source ich in "~/.muttrc"
- [schenk:~/.mutt] master(+4/-214)* ± cat macros
- #macro index 1 "<change-folder> = ../<enter>"
- macro index G "!sync-mail-eckelmann^M" "Fetch mail through mbsync and update notmuch"
- Und dann noch über user systemd timer automatisch
- [schenk:~/.config/systemd/user] $ cat mailsync-eckelmann.timer
- [Unit]
- Description=Sync eckelmann mail to ~/Mail/eckelmann
- [Timer]
- OnActiveSec=15sec
- OnUnitInactiveSec=5min
- Persistent=true
- [Install]
- WantedBy=timers.target
- [schenk:~/.config/systemd/user] $ cat mailsync-eckelmann.service
- [Unit]
- Description=Sync eckelmann mail to ~/Mail/eckelmann
- [Service]
- Type=oneshot
- ExecStart=/home/schenk/bin/sync-mail-eckelmann
- Und noch anschalten
- systemctl --user enable mailsync-eckelmann.timer
neomutt mbsync und notmuch updaten
Posted by Anonymous on Tue 21st Jul 2020 15:10
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.