Compare commits

..

No commits in common. 'a1386ad08c475b735c30243ca418316df509dd0b' and '81f003243b7534766766beb9bca309efc31081c0' have entirely different histories.

  1. 3
      .config/mutt/muttrc
  2. 3
      .local/bin/statusbar/sb-mailbox

3
.config/mutt/muttrc

@ -1,6 +1,7 @@
# vim: filetype=neomuttrc
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"
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 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

3
.local/bin/statusbar/sb-mailbox

@ -16,8 +16,7 @@ do
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
[ -n "$(echo "$acc" | sed -n '/@etu/p')" ] && box=""
[ -n "$(echo "$acc" | sed -n '/@mailo/p')" ] && box=""
[ -n "$(echo "$acc" | sed -n '/@posteo/p')" ] && box=""
[ -n "$(echo "$acc" | sed -n '/@posteo/p')" ] && box=""
unread="$unread/$box$new"
fi
done

Loading…
Cancel
Save