Compare commits

...

2 Commits

Author SHA1 Message Date
David JULIEN a1386ad08c [mutt] cleanup: no need to source posteo file 5 months ago
David JULIEN 116987ba42 [statusbar] add mailo slot to sb-mailbox 5 months ago
  1. 3
      .config/mutt/muttrc
  2. 3
      .local/bin/statusbar/sb-mailbox

3
.config/mutt/muttrc

@ -1,7 +1,6 @@
# 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,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)"
if [ $new -gt 0 ]; then
[ -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"
fi
done

Loading…
Cancel
Save