Merge branch 'master' of github.com:LukeSmithxyz/mutt-wizard

This commit is contained in:
Luke Smith 2020-04-18 10:47:45 -04:00
commit 86ffbe9b90
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252
2 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,7 @@ fi
# Check account for new mail. Notify if there is new content.
syncandnotify() {
acc="$(echo "$account" | sed "s/.*\///")"
mbsync "$acc"
mbsync $opts "$acc"
new=$(find "$HOME/.local/share/mail/$acc/INBOX/new/" "$HOME/.local/share/mail/$acc/Inbox/new/" "$HOME/.local/share/mail/$acc/inbox/new/" -type f -newer "$HOME/.config/mutt/.mailsynclastrun" 2> /dev/null)
newcount=$(echo "$new" | sed '/^\s*$/d' | wc -l)
if [ "$newcount" -gt "0" ]; then
@ -48,6 +48,9 @@ syncandnotify() {
if [ "$#" -eq "0" ]; then
accounts="$(awk '/^Channel/ {print $2}' "$HOME/.mbsyncrc")"
else
for arg in "$@"; do
[ "${arg%${arg#?}}" = '-' ] && opts="${opts:+${opts} }${arg}" && shift 1
done
accounts=$*
fi

View File

@ -167,6 +167,7 @@ kipras.org,mail.kipras.org,993,mail.kipras.org,587
krutt.org,mail.autistici.org,993,smtp.autistici.org,465
kth.se,webmail.kth.se,993,smtp.kth.se,587
lavabit.com,lavabit.com,993,lavabit.com,587
librem.one,imap.librem.one,993,smtp.librem.one,465
linuxmail.org,imap.mail.com,993,smtp.mail.com,587
live.com,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
live.de,imap-mail.outlook.com,993,smtp-mail.outlook.com,587

1 ADDRESS IMAP imap port SMTP smtp port
167 krutt.org mail.autistici.org 993 smtp.autistici.org 465
168 kth.se webmail.kth.se 993 smtp.kth.se 587
169 lavabit.com lavabit.com 993 lavabit.com 587
170 librem.one imap.librem.one 993 smtp.librem.one 465
171 linuxmail.org imap.mail.com 993 smtp.mail.com 587
172 live.com imap-mail.outlook.com 993 smtp-mail.outlook.com 587
173 live.de imap-mail.outlook.com 993 smtp-mail.outlook.com 587