diff options
Diffstat (limited to '')
-rw-r--r-- | .config/mbsync/mbsyncrc | 16 | ||||
-rw-r--r-- | .config/msmtp/config | 7 | ||||
-rwxr-xr-x | .local/bin/status/sb-mailbox | 25 |
3 files changed, 6 insertions, 42 deletions
diff --git a/.config/mbsync/mbsyncrc b/.config/mbsync/mbsyncrc index 6e0c860..6139856 100644 --- a/.config/mbsync/mbsyncrc +++ b/.config/mbsync/mbsyncrc @@ -8,22 +8,6 @@ PassCmd "pass show mutt/main" SSLType None # CertificateFile /etc/ssl/cert.pem -MaildirStore main-local -SubFolders Verbatim -Path /var/mail/jozan/main/ -Inbox /var/mail/jozan/main/INBOX - -Channel main -Far :main-remote: -Near :main-local: -Patterns * -Create Both -Expunge Both -SyncState * -MaxMessages 0 -ExpireUnread no -# End profile - IMAPStore gmail_br-remote Host imap.gmail.com Port 993 diff --git a/.config/msmtp/config b/.config/msmtp/config index 85c76f9..535b027 100644 --- a/.config/msmtp/config +++ b/.config/msmtp/config @@ -4,13 +4,6 @@ tls on tls_trust_file /etc/ssl/cert.pem logfile /home/jozan/.config/msmtp/msmtp.log -account main - host 127.0.0.1 - port 1025 - from rrbo@proton.me - user rrbo@proton.me - passwordeval "pass show mutt/main" - account gmail_br host smtp.gmail.com port 587 diff --git a/.local/bin/status/sb-mailbox b/.local/bin/status/sb-mailbox index 0dfcbd6..f7a3786 100755 --- a/.local/bin/status/sb-mailbox +++ b/.local/bin/status/sb-mailbox @@ -13,10 +13,9 @@ case $BLOCK_BUTTON in 6) "$TERMINAL" -e "$EDITOR" "$0" ;; esac -mb_a="$(ls "${MAIL:-/var/mail/jozan}"/main/INBOX/new/ | wc -l 2>/dev/null)" -mb_b="$(ls "${MAIL:-/var/mail/jozan}"/gmail_br/INBOX/new/ | wc -l 2>/dev/null)" -mb_c="$(ls "${MAIL:-/var/mail/jozan}"/gmail_oon/INBOX/new/ | wc -l 2>/dev/null)" -mb_d="$(ls "${MAIL:-/var/mail/jozan}"/gmail_tos/INBOX/new/ | wc -l 2>/dev/null)" +mb_a="$(ls "${MAIL:-/var/mail/jozan}"/gmail_br/INBOX/new/ | wc -l 2>/dev/null)" +mb_b="$(ls "${MAIL:-/var/mail/jozan}"/gmail_oon/INBOX/new/ | wc -l 2>/dev/null)" +mb_c="$(ls "${MAIL:-/var/mail/jozan}"/gmail_tos/INBOX/new/ | wc -l 2>/dev/null)" sync=0 if pidof mbsync >/dev/null 2>&1; then @@ -30,7 +29,7 @@ case "$sync" in esac if [ "$mb_a" -gt 0 ]; then - echo -n "main:" $mb_a + echo -n "br:" $mb_a fi if [ "$mb_a" -gt 0 ] && [ "$mb_b" -gt 0 ]; then @@ -38,7 +37,7 @@ if [ "$mb_a" -gt 0 ] && [ "$mb_b" -gt 0 ]; then fi if [ "$mb_b" -gt 0 ]; then - echo -n "br:" $mb_b + echo -n "oon:" $mb_b fi if [ "$mb_b" -gt 0 ] && [ "$mb_c" -gt 0 ]; then @@ -48,17 +47,5 @@ elif [ "$mb_a" -gt 0 ] && [ "$mb_c" -gt 0 ]; then fi if [ "$mb_c" -gt 0 ]; then - echo -n "oon:" $mb_c -fi - -if [ "$mb_c" -gt 0 ] && [ "$mb_d" -gt 0 ]; then - echo -n " - " -elif [ "$mb_b" -gt 0 ] && [ "$mb_d" -gt 0 ]; then - echo -n " - " -elif [ "$mb_a" -gt 0 ] && [ "$mb_d" -gt 0 ]; then - echo -n " - " -fi - -if [ "$mb_d" -gt 0 ]; then - echo -n "tos:" $mb_d + echo -n "tos:" $mb_c fi |