Compare commits

...

2 Commits

Author SHA1 Message Date
David JULIEN a1386ad08c [mutt] cleanup: no need to source posteo file 2021-12-13 20:51:07 +01:00
David JULIEN 116987ba42 [statusbar] add mailo slot to sb-mailbox 2021-12-13 20:29:27 +01:00
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,6 @@
# vim: filetype=neomuttrc # vim: filetype=neomuttrc
source /home/swytch/.config/mutt/neomutt.muttrc source /home/swytch/.config/mutt/neomutt.muttrc
source /home/swytch/.config/mutt/accounts/1-david.julien@posteo.net.muttrc
macro index,pager i1 '<sync-mailbox><enter-command>source /home/swytch/.config/mutt/accounts/1-david.julien@posteo.net.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@posteo.net" macro index,pager i1 '<sync-mailbox><enter-command>source /home/swytch/.config/mutt/accounts/1-david.julien@posteo.net.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@posteo.net"
source /home/swytch/.config/mutt/accounts/2-david.julien@ens-lyon.fr.muttrc
macro index,pager i2 '<sync-mailbox><enter-command>source /home/swytch/.config/mutt/accounts/2-david.julien@ens-lyon.fr.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@ens-lyon.fr" macro index,pager i2 '<sync-mailbox><enter-command>source /home/swytch/.config/mutt/accounts/2-david.julien@ens-lyon.fr.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@ens-lyon.fr"
macro index,pager i3 '<sync-mailbox><enter-command>source /home/swytch/.config/mutt/accounts/3-david.julien@mailo.com.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@mailto.com" macro index,pager i3 '<sync-mailbox><enter-command>source /home/swytch/.config/mutt/accounts/3-david.julien@mailo.com.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@mailto.com"
source /home/swytch/.config/mutt/accounts/2-david.julien@ens-lyon.fr.muttrc

View File

@ -16,7 +16,8 @@ do
new="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/$acc/[Ii][Nn][Bb][Oo][Xx]/new/* -type f | wc -l 2>/dev/null)" new="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/$acc/[Ii][Nn][Bb][Oo][Xx]/new/* -type f | wc -l 2>/dev/null)"
if [ $new -gt 0 ]; then if [ $new -gt 0 ]; then
[ -n "$(echo "$acc" | sed -n '/@etu/p')" ] && box="" [ -n "$(echo "$acc" | sed -n '/@etu/p')" ] && box=""
[ -n "$(echo "$acc" | sed -n '/@posteo/p')" ] && box="" [ -n "$(echo "$acc" | sed -n '/@mailo/p')" ] && box=""
[ -n "$(echo "$acc" | sed -n '/@posteo/p')" ] && box=""
unread="$unread/$box$new" unread="$unread/$box$new"
fi fi
done done