pastebin - collaborative debugging tool
eckelmann.kpaste.net RSS


neomutt mbsync und notmuch updaten
Posted by Anonymous on Tue 21st Jul 2020 15:10
raw | new post

  1. Wie update ich meine Mails local
  2. ================================
  3.  
  4. Ein Skript das Mail holt inkl um Outlook rumschaufeln und notmuch updatet.
  5.  
  6.         [schenk:~/bin] master(+4/-214)* ± cat sync-mail-eckelmann
  7.         #!/bin/sh
  8.         false; while [ $? -ne 0 ]; do mbsync -a; done
  9.         notmuch new
  10.  
  11. Manuell kann ich das in neomutt mit G auslösen, die Datei "macros" source ich in "~/.muttrc"
  12.  
  13.         [schenk:~/.mutt] master(+4/-214)* ± cat macros
  14.         #macro index 1 "<change-folder> = ../<enter>"
  15.         macro index G "!sync-mail-eckelmann^M" "Fetch mail through mbsync and update notmuch"
  16.  
  17. Und dann noch über user systemd timer automatisch
  18.  
  19.         [schenk:~/.config/systemd/user] $ cat mailsync-eckelmann.timer
  20.         [Unit]
  21.         Description=Sync eckelmann mail to ~/Mail/eckelmann
  22.  
  23.         [Timer]
  24.         OnActiveSec=15sec
  25.         OnUnitInactiveSec=5min
  26.         Persistent=true
  27.  
  28.         [Install]
  29.         WantedBy=timers.target
  30.  
  31.  
  32.         [schenk:~/.config/systemd/user] $ cat mailsync-eckelmann.service
  33.         [Unit]
  34.         Description=Sync eckelmann mail to ~/Mail/eckelmann
  35.        
  36.         [Service]
  37.         Type=oneshot
  38.         ExecStart=/home/schenk/bin/sync-mail-eckelmann
  39.  
  40.  
  41. Und noch anschalten
  42.         systemctl --user enable mailsync-eckelmann.timer

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.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at