summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--isync/.config/systemd/user/mbsync.service8
-rw-r--r--isync/.config/systemd/user/mbsync.timer10
-rw-r--r--spacemacs/.emacs.d/private/aminb/packages.el3
3 files changed, 20 insertions, 1 deletions
diff --git a/isync/.config/systemd/user/mbsync.service b/isync/.config/systemd/user/mbsync.service
new file mode 100644
index 0000000..7fc2821
--- /dev/null
+++ b/isync/.config/systemd/user/mbsync.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Mailbox synchronization service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/mbsync -Va
+StandardOutput=syslog
+StandardError=syslog
diff --git a/isync/.config/systemd/user/mbsync.timer b/isync/.config/systemd/user/mbsync.timer
new file mode 100644
index 0000000..7c3c751
--- /dev/null
+++ b/isync/.config/systemd/user/mbsync.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Mailbox synchronization timer
+
+[Timer]
+OnCalendar=*:0/5
+Persistent=true
+Unit=mbsync.service
+
+[Install]
+WantedBy=timers.target
diff --git a/spacemacs/.emacs.d/private/aminb/packages.el b/spacemacs/.emacs.d/private/aminb/packages.el
index 36c9400..fb336a3 100644
--- a/spacemacs/.emacs.d/private/aminb/packages.el
+++ b/spacemacs/.emacs.d/private/aminb/packages.el
@@ -141,7 +141,7 @@ erc-modified-channels-alist. Should be executed on window change."
:config
(progn
(setq mu4e-maildir "~/mail"
- mu4e-get-mail-command "mbsync -aq" ;; or fetchmail, or ...
+ mu4e-get-mail-command "mbsync -a" ;; or fetchmail, or ...
mu4e-update-interval 300 ;; update every 5 minutes
mu4e-view-show-addresses t
mu4e-headers-include-related t
@@ -159,6 +159,7 @@ erc-modified-channels-alist. Should be executed on window change."
mu4e-drafts-folder "/amin/Drafts"
mu4e-trash-folder "/amin/Trash"
user-mail-address "amin@aminb.org"
+ mu4e-context-policy 'pick-first
mu4e-contexts
(list (make-mu4e-context
:name "amin"