diff options
-rw-r--r-- | .config/mutt/defaults.muttrc | 1 | ||||
-rwxr-xr-x | .local/bin/fetch_mail.sh | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/.config/mutt/defaults.muttrc b/.config/mutt/defaults.muttrc index d1fee1a..9d8e4b2 100644 --- a/.config/mutt/defaults.muttrc +++ b/.config/mutt/defaults.muttrc @@ -14,6 +14,7 @@ set smtp_authenticators = 'gssapi:login' set query_command = "abook -C $XDG_CONFIG_HOME/abook/abookrc --datafile $XDG_DATA_HOME/abook/addressbook --mutt-query '%s'" set rfc2047_parameters = yes set sleep_time = 0 # Pause 0 seconds for informational messages +set smart_wrap = yes set markers = no # Disables the `+` displayed at line wraps set mark_old = no # Unread mail stay unread until read set mime_forward = yes # attachments are forwarded with mail diff --git a/.local/bin/fetch_mail.sh b/.local/bin/fetch_mail.sh new file mode 100755 index 0000000..d030641 --- /dev/null +++ b/.local/bin/fetch_mail.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +export DISPLAY=unix:0.0 +export GNUPGHOME=/home/jozan/.local/share/gnupg +export PASSWORD_STORE_DIR=/home/jozan/.local/share/pass + +killall mbsync >/dev/null 2>&1 +notify-send -u low -t 1750 'mbsync' ' fetching mail...' +mbsync -a -c /usr/home/jozan/.config/mbsync/mbsyncrc || notify-send -u low -t 1750 'mbsync' ' failed to fetch mail' + |