dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit b0bccfa087a07dfafb6c654309136f13ddd1298b
parent c8c76cd47ed4927330167593a11b86608934c19e
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Tue, 13 Mar 2018 11:03:14 -0400

Add adamsgaard to mail status scripts

Diffstat:
Mlinks/bin/mailstatus.sh | 9++++++---
Mmisc_code/bitbar-plugins/mail.5s.sh | 9++++++---
2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/links/bin/mailstatus.sh b/links/bin/mailstatus.sh @@ -13,8 +13,8 @@ debug=false offlineimap=/usr/local/bin/offlineimap accounts="" -if [[ $mailboxes == *"riseup"* ]]; then - accounts="${accounts}r" +if [[ $mailboxes == *"adamsgaard"* ]]; then + accounts="${accounts}a" fi if [[ $mailboxes == *"princeton"* ]]; then accounts="${accounts}p" @@ -26,11 +26,14 @@ if [[ $mailboxes == *"gmail"* ]]; then accounts="${accounts}g" fi if [[ $mailboxes == *"geomail"* ]]; then - accounts="${accounts}a" + accounts="${accounts}e" fi if [[ $mailboxes == *"ucsd"* ]]; then accounts="${accounts}u" fi +if [[ $mailboxes == *"riseup"* ]]; then + accounts="${accounts}r" +fi if [ "$numbernewmails" -gt 0 ]; then echo "#[fg=red]M: ${numbernewmails} (${accounts})" diff --git a/misc_code/bitbar-plugins/mail.5s.sh b/misc_code/bitbar-plugins/mail.5s.sh @@ -9,8 +9,8 @@ debug=false offlineimap=/usr/local/bin/offlineimap accounts="" -if [[ $mailboxes == *"riseup"* ]]; then - accounts="${accounts}r" +if [[ $mailboxes == *"adamsgaard"* ]]; then + accounts="${accounts}a" fi if [[ $mailboxes == *"princeton"* ]]; then accounts="${accounts}p" @@ -22,11 +22,14 @@ if [[ $mailboxes == *"gmail"* ]]; then accounts="${accounts}g" fi if [[ $mailboxes == *"geomail"* ]]; then - accounts="${accounts}a" + accounts="${accounts}e" fi if [[ $mailboxes == *"ucsd"* ]]; then accounts="${accounts}u" fi +if [[ $mailboxes == *"riseup"* ]]; then + accounts="${accounts}r" +fi if [ "$numbernewmails" -gt 0 ]; then mailcolor="#cb4b16"