From bb4a92e4c29cfb8250ae0852bbbb9162c94efb66 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 23 Sep 2022 18:05:52 +0200 Subject: good config --- .config/mbsync/mbsyncrc | 111 +++++++++++++-------- .config/msmtp/config | 29 ++++-- .../mutt/accounts/1-bousset.rudy@gmail.com.muttrc | 42 -------- .config/mutt/accounts/1-main.muttrc | 43 ++++++++ .config/mutt/accounts/2-gmail_br.muttrc | 43 ++++++++ .../accounts/2-olsen.oyvind.nor@gmail.com.muttrc | 42 -------- .config/mutt/accounts/3-gmail_oon.muttrc | 43 ++++++++ .../accounts/3-towerofsilence777@gmail.com.muttrc | 41 -------- .config/mutt/accounts/4-gmail_tos.muttrc | 42 ++++++++ .../mutt/accounts/5-rbousset@secuserve.com.muttrc | 45 --------- .config/mutt/accounts/5-ss_perso.muttrc | 46 +++++++++ .../accounts/6-exploitation@secuserve.com.muttrc | 68 ------------- .config/mutt/accounts/6-ss_exploit.muttrc | 69 +++++++++++++ .config/mutt/accounts/7-ss_support.muttrc | 83 +++++++++++++++ .../mutt/accounts/7-support@secuserve.com.muttrc | 82 --------------- .config/mutt/muttrc | 28 +++--- .config/x11/xinitrc | 3 +- .local/bin/fetch_mail.sh | 14 +-- .local/bin/status/sb-mailbox | 17 +++- 19 files changed, 494 insertions(+), 397 deletions(-) delete mode 100644 .config/mutt/accounts/1-bousset.rudy@gmail.com.muttrc create mode 100644 .config/mutt/accounts/1-main.muttrc create mode 100644 .config/mutt/accounts/2-gmail_br.muttrc delete mode 100644 .config/mutt/accounts/2-olsen.oyvind.nor@gmail.com.muttrc create mode 100644 .config/mutt/accounts/3-gmail_oon.muttrc delete mode 100644 .config/mutt/accounts/3-towerofsilence777@gmail.com.muttrc create mode 100644 .config/mutt/accounts/4-gmail_tos.muttrc delete mode 100644 .config/mutt/accounts/5-rbousset@secuserve.com.muttrc create mode 100644 .config/mutt/accounts/5-ss_perso.muttrc delete mode 100644 .config/mutt/accounts/6-exploitation@secuserve.com.muttrc create mode 100644 .config/mutt/accounts/6-ss_exploit.muttrc create mode 100644 .config/mutt/accounts/7-ss_support.muttrc delete mode 100644 .config/mutt/accounts/7-support@secuserve.com.muttrc diff --git a/.config/mbsync/mbsyncrc b/.config/mbsync/mbsyncrc index eeb6cb2..4d1fd28 100644 --- a/.config/mbsync/mbsyncrc +++ b/.config/mbsync/mbsyncrc @@ -1,5 +1,30 @@ # vim filetype=conf -IMAPStore bousset.rudy@gmail.com-remote +IMAPStore main-remote +Host 127.0.0.1 +Port 1143 +User rrbo@proton.me +PassCmd "pass show mutt/rrbo@proton.me" +# AuthMechs LOGIN +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 User bousset.rudy@gmail.com @@ -8,15 +33,15 @@ AuthMechs LOGIN SSLType IMAPS CertificateFile /etc/ssl/cert.pem -MaildirStore bousset.rudy@gmail.com-local +MaildirStore gmail_br-local SubFolders Verbatim -Path /var/mail/jozan/bousset.rudy@gmail.com/ -Inbox /var/mail/jozan/bousset.rudy@gmail.com/INBOX +Path /var/mail/jozan/gmail_br/ +Inbox /var/mail/jozan/gmail_br/INBOX -Channel bousset.rudy@gmail.com +Channel gmail_br Expunge Both -Far :bousset.rudy@gmail.com-remote: -Near :bousset.rudy@gmail.com-local: +Far :gmail_br-remote: +Near :gmail_br-local: Patterns * Create Both SyncState * @@ -24,7 +49,7 @@ MaxMessages 0 ExpireUnread no # End profile -IMAPStore olsen.oyvind.nor@gmail.com-remote +IMAPStore gmail_oon-remote Host imap.gmail.com Port 993 User olsen.oyvind.nor@gmail.com @@ -33,15 +58,15 @@ AuthMechs LOGIN SSLType IMAPS CertificateFile /etc/ssl/cert.pem -MaildirStore olsen.oyvind.nor@gmail.com-local +MaildirStore gmail_oon-local SubFolders Verbatim -Path /var/mail/jozan/olsen.oyvind.nor@gmail.com/ -Inbox /var/mail/jozan/olsen.oyvind.nor@gmail.com/INBOX +Path /var/mail/jozan/gmail_oon/ +Inbox /var/mail/jozan/gmail_oon/INBOX -Channel olsen.oyvind.nor@gmail.com +Channel gmail_oon Expunge Both -Far :olsen.oyvind.nor@gmail.com-remote: -Near :olsen.oyvind.nor@gmail.com-local: +Far :gmail_oon-remote: +Near :gmail_oon-local: Patterns * Create Both SyncState * @@ -49,7 +74,7 @@ MaxMessages 0 ExpireUnread no # End profile -# IMAPStore towerofsilence777@gmail.com-remote +# IMAPStore gmail_tos-remote # Host imap.gmail.com # Port 993 # User towerofsilence777@gmail.com @@ -58,15 +83,15 @@ ExpireUnread no # SSLType IMAPS # CertificateFile /etc/ssl/cert.pem # -# MaildirStore towerofsilence777@gmail.com-local +# MaildirStore gmail_tos-local # SubFolders Verbatim -# Path /var/mail/jozan/towerofsilence777@gmail.com/ -# Inbox /var/mail/jozan/towerofsilence777@gmail.com/INBOX +# Path /var/mail/jozan/gmail_tos/ +# Inbox /var/mail/jozan/gmail_tos/INBOX # -# Channel towerofsilence777@gmail.com +# Channel gmail_tos # Expunge Both -# Far :towerofsilence777@gmail.com-remote: -# Near :towerofsilence777@gmail.com-local: +# Far :gmail_tos-remote: +# Near :gmail_tos-local: # Patterns * # Create Both # SyncState * @@ -74,7 +99,7 @@ ExpireUnread no # ExpireUnread no # # End profile -IMAPStore rbousset@secuserve.com-remote +IMAPStore ss_perso-remote Host next.optimails.com Port 993 User rbousset@secuserve.com @@ -83,15 +108,15 @@ AuthMechs LOGIN SSLType IMAPS CertificateFile /etc/ssl/cert.pem -MaildirStore rbousset@secuserve.com-local +MaildirStore ss_perso-local SubFolders Verbatim -Path /var/mail/jozan/rbousset@secuserve.com/ -Inbox /var/mail/jozan/rbousset@secuserve.com/INBOX +Path /var/mail/jozan/ss_perso/ +Inbox /var/mail/jozan/ss_perso/INBOX -Channel rbousset@secuserve.com +Channel ss_perso Expunge Both -Far :rbousset@secuserve.com-remote: -Near :rbousset@secuserve.com-local: +Far :ss_perso-remote: +Near :ss_perso-local: Patterns * Create Both SyncState * @@ -99,7 +124,7 @@ MaxMessages 0 ExpireUnread no # End profile -IMAPStore exploitation@secuserve.com-remote +IMAPStore ss_exploit-remote Host next.optimails.com Port 993 User exploitation@secuserve.com @@ -108,15 +133,15 @@ AuthMechs LOGIN SSLType IMAPS CertificateFile /etc/ssl/cert.pem -MaildirStore exploitation@secuserve.com-local +MaildirStore ss_exploit-local SubFolders Verbatim -Path /var/mail/jozan/exploitation@secuserve.com/ -Inbox /var/mail/jozan/exploitation@secuserve.com/INBOX +Path /var/mail/jozan/ss_exploit/ +Inbox /var/mail/jozan/ss_exploit/INBOX -Channel exploitation@secuserve.com +Channel ss_exploit Expunge Both -Far :exploitation@secuserve.com-remote: -Near :exploitation@secuserve.com-local: +Far :ss_exploit-remote: +Near :ss_exploit-local: Patterns * Create Both SyncState * @@ -124,7 +149,7 @@ MaxMessages 0 ExpireUnread no # End profile -IMAPStore support@secuserve.com-remote +IMAPStore ss_support-remote Host next.optimails.com Port 993 User support@secuserve.com @@ -133,18 +158,18 @@ AuthMechs LOGIN SSLType IMAPS CertificateFile /etc/ssl/cert.pem -MaildirStore support@secuserve.com-local +MaildirStore ss_support-local SubFolders Verbatim -Path /var/mail/jozan/support@secuserve.com/ -Inbox /var/mail/jozan/support@secuserve.com/INBOX +Path /var/mail/jozan/ss_support/ +Inbox /var/mail/jozan/ss_support/INBOX -Channel support@secuserve.com +Channel ss_support Expunge Both -Far :support@secuserve.com-remote: -Near :support@secuserve.com-local: +Far :ss_support-remote: +Near :ss_support-local: Patterns * Create Both SyncState * MaxMessages 0 ExpireUnread no -# End profile \ No newline at end of file +# End profile diff --git a/.config/msmtp/config b/.config/msmtp/config index 5d08b59..2317ef5 100644 --- a/.config/msmtp/config +++ b/.config/msmtp/config @@ -4,42 +4,49 @@ tls on tls_trust_file /etc/ssl/cert.pem logfile /home/jozan/.config/msmtp/msmtp.log -account bousset.rudy@gmail.com +account main + host 127.0.0.1 + port 1025 + from rrbo@proton.me + user rrbo@proton.me + passwordeval "pass show mutt/rrbo@proton.me" + +account gmail_br host smtp.gmail.com port 587 from Rudy Bousset user bousset.rudy@gmail.com passwordeval "pass show mutt/bousset.rudy@gmail.com" -account olsen.oyvind.nor@gmail.com +account gmail_oon host smtp.gmail.com port 587 from Joe user olsen.oyvind.nor@gmail.com passwordeval "pass show mutt/olsen.oyvind.nor@gmail.com" -account towerofsilence777@gmail.com - host smtp.gmail.com - port 587 - from Tower Of Silence - user towerofsilence777@gmail.com - passwordeval "pass show mutt/towerofsilence777@gmail.com" +# account gmail_tos +# host smtp.gmail.com +# port 587 +# from Tower Of Silence +# user towerofsilence777@gmail.com +# passwordeval "pass show mutt/towerofsilence777@gmail.com" -account rbousset@secuserve.com +account ss_perso host next.optimails.com port 587 from rbousset@secuserve.com user rbousset@secuserve.com passwordeval "pass show mutt/rbousset@secuserve.com" -account exploitation@secuserve.com +account ss_exploit host next.optimails.com port 587 from Team Exploitation SecuServe user exploitation@secuserve.com passwordeval "pass show mutt/exploitation@secuserve.com" -account support@secuserve.com +account ss_support host next.optimails.com port 587 from support@secuserve.com diff --git a/.config/mutt/accounts/1-bousset.rudy@gmail.com.muttrc b/.config/mutt/accounts/1-bousset.rudy@gmail.com.muttrc deleted file mode 100644 index c5e86dc..0000000 --- a/.config/mutt/accounts/1-bousset.rudy@gmail.com.muttrc +++ /dev/null @@ -1,42 +0,0 @@ -# vim: filetype=neomuttrc -# muttrc file for account bousset.rudy@gmail.com -set realname = "Rudy Bousset" -set from = "bousset.rudy@gmail.com" -set sendmail = "msmtp -a bousset.rudy@gmail.com" -alias me Rudy Bousset -set folder = "$MAIL/bousset.rudy@gmail.com" -set header_cache = $XDG_RUNTIME_DIR/mutt/bousset.rudy@gmail.com/headers -set message_cachedir = $XDG_RUNTIME_DIR/mutt/bousset.rudy@gmail.com/bodies -set mbox_type = Maildir - -bind index,pager gg noop -bind index,pager g noop -bind index,pager M noop -bind index,pager C noop -bind index gg first-entry -bind pager gg top -bind pager G bottom -macro index o "killall mbsync >/dev/null 2>&1; mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc bousset.rudy@gmail.com" "run mbsync to sync bousset.rudy@gmail.com" -unmailboxes * - -mailboxes "=INBOX" "=[Gmail]/Sent Mail" "=[Gmail]/Drafts" "=[Gmail]/Spam" "=[Gmail]/Trash" "=Keep" - -macro index,pager gi "=INBOX" "go to inbox" -macro index,pager Mi ";=INBOX" "move mail to inbox" -macro index,pager Ci ";=INBOX" "copy mail to inbox" -set spoolfile = "+INBOX" -macro index,pager gs "=[Gmail]/Sent Mail" "go to sent" -macro index,pager Ms ";=[Gmail]/Sent Mail" "move mail to sent" -macro index,pager Cs ";=[Gmail]/Sent Mail" "copy mail to sent" -set record = "+[Gmail]/Sent Mail" -macro index,pager gd "=[Gmail]/Drafts" "go to drafts" -macro index,pager Md ";=[Gmail]/Drafts" "move mail to drafts" -macro index,pager Cd ";=[Gmail]/Drafts" "copy mail to drafts" -set postponed = "+[Gmail]/Drafts" -macro index,pager gS "=[Gmail]/Spam" "go to spam" -macro index,pager MS ";=[Gmail]/Spam" "move mail to spam" -macro index,pager CS ";=[Gmail]/Spam" "copy mail to spam" -macro index,pager gt "=[Gmail]/Trash" "go to trash" -macro index,pager Mt ";=[Gmail]/Trash" "move mail to trash" -macro index,pager Ct ";=[Gmail]/Trash" "copy mail to trash" -set trash = "+[Gmail]/Trash" diff --git a/.config/mutt/accounts/1-main.muttrc b/.config/mutt/accounts/1-main.muttrc new file mode 100644 index 0000000..a62092a --- /dev/null +++ b/.config/mutt/accounts/1-main.muttrc @@ -0,0 +1,43 @@ +# vim: filetype=neomuttrc +# muttrc file for account bousset.rudy@gmail.com +set realname = "Rudy Bousset" +set from = "rrbo@proton.me" +set sendmail = "msmtp --tls-certcheck=off -a main" +alias me Rudy Bousset +set folder = "$MAIL/main" +set header_cache = $XDG_RUNTIME_DIR/mutt/main/headers +set message_cachedir = $XDG_RUNTIME_DIR/mutt/main/bodies +set mbox_type = Maildir +set crypt_autosign = no + +bind index,pager gg noop +bind index,pager g noop +bind index,pager M noop +bind index,pager C noop +bind index gg first-entry +bind pager gg top +bind pager G bottom +macro index o "killall mbsync >/dev/null 2>&1; mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc main" "run mbsync to sync rrbo@proton.me" +unmailboxes * + +mailboxes "=INBOX" "=Sent" "=Drafts" "=Spam" "=Trash" "=Archive" "=All Mail" "=Folders/Keep" "=Folders/Work" + +macro index,pager gi "=INBOX" "go to inbox" +macro index,pager Mi ";=INBOX" "move mail to inbox" +macro index,pager Ci ";=INBOX" "copy mail to inbox" +set spoolfile = "+INBOX" +macro index,pager gs "=Sent" "go to sent" +macro index,pager Ms ";=Sent" "move mail to sent" +macro index,pager Cs ";=Sent" "copy mail to sent" +set record = "+Sent" +macro index,pager gd "=Drafts" "go to drafts" +macro index,pager Md ";=Drafts" "move mail to drafts" +macro index,pager Cd ";=Drafts" "copy mail to drafts" +set postponed = "+Drafts" +macro index,pager gS "=Spam" "go to spam" +macro index,pager MS ";=Spam" "move mail to spam" +macro index,pager CS ";=Spam" "copy mail to spam" +macro index,pager gt "=Trash" "go to trash" +macro index,pager Mt ";=Trash" "move mail to trash" +macro index,pager Ct ";=Trash" "copy mail to trash" +set trash = "+Trash" diff --git a/.config/mutt/accounts/2-gmail_br.muttrc b/.config/mutt/accounts/2-gmail_br.muttrc new file mode 100644 index 0000000..4c3b748 --- /dev/null +++ b/.config/mutt/accounts/2-gmail_br.muttrc @@ -0,0 +1,43 @@ +# vim: filetype=neomuttrc +# muttrc file for account bousset.rudy@gmail.com +set realname = "Rudy Bousset" +set from = "bousset.rudy@gmail.com" +set sendmail = "msmtp -a gmail_br" +alias me Rudy Bousset +set folder = "$MAIL/gmail_br" +set header_cache = $XDG_RUNTIME_DIR/mutt/gmail_br/headers +set message_cachedir = $XDG_RUNTIME_DIR/mutt/gmail_br/bodies +set mbox_type = Maildir +set crypt_autosign = yes + +bind index,pager gg noop +bind index,pager g noop +bind index,pager M noop +bind index,pager C noop +bind index gg first-entry +bind pager gg top +bind pager G bottom +macro index o "killall mbsync >/dev/null 2>&1; mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc gmail_br" "run mbsync to sync bousset.rudy@gmail.com" +unmailboxes * + +mailboxes "=INBOX" "=[Gmail]/Sent Mail" "=[Gmail]/Drafts" "=[Gmail]/Spam" "=[Gmail]/Trash" "=Keep" + +macro index,pager gi "=INBOX" "go to inbox" +macro index,pager Mi ";=INBOX" "move mail to inbox" +macro index,pager Ci ";=INBOX" "copy mail to inbox" +set spoolfile = "+INBOX" +macro index,pager gs "=[Gmail]/Sent Mail" "go to sent" +macro index,pager Ms ";=[Gmail]/Sent Mail" "move mail to sent" +macro index,pager Cs ";=[Gmail]/Sent Mail" "copy mail to sent" +set record = "+[Gmail]/Sent Mail" +macro index,pager gd "=[Gmail]/Drafts" "go to drafts" +macro index,pager Md ";=[Gmail]/Drafts" "move mail to drafts" +macro index,pager Cd ";=[Gmail]/Drafts" "copy mail to drafts" +set postponed = "+[Gmail]/Drafts" +macro index,pager gS "=[Gmail]/Spam" "go to spam" +macro index,pager MS ";=[Gmail]/Spam" "move mail to spam" +macro index,pager CS ";=[Gmail]/Spam" "copy mail to spam" +macro index,pager gt "=[Gmail]/Trash" "go to trash" +macro index,pager Mt ";=[Gmail]/Trash" "move mail to trash" +macro index,pager Ct ";=[Gmail]/Trash" "copy mail to trash" +set trash = "+[Gmail]/Trash" diff --git a/.config/mutt/accounts/2-olsen.oyvind.nor@gmail.com.muttrc b/.config/mutt/accounts/2-olsen.oyvind.nor@gmail.com.muttrc deleted file mode 100644 index f403325..0000000 --- a/.config/mutt/accounts/2-olsen.oyvind.nor@gmail.com.muttrc +++ /dev/null @@ -1,42 +0,0 @@ -# vim: filetype=neomuttrc -# muttrc file for account olsen.oyvind.nor@gmail.com -set realname = "Joe" -set from = "olsen.oyvind.nor@gmail.com" -set sendmail = "msmtp -a olsen.oyvind.nor@gmail.com" -alias me Joe -set folder = "$MAIL/olsen.oyvind.nor@gmail.com" -set header_cache = $XDG_RUNTIME_DIR/mutt/olsen.oyvind.nor@gmail.com/headers -set message_cachedir = $XDG_RUNTIME_DIR/mutt/olsen.oyvind.nor@gmail.com/bodies -set mbox_type = Maildir - -bind index,pager gg noop -bind index,pager g noop -bind index,pager M noop -bind index,pager C noop -bind index gg first-entry -bind pager gg top -bind pager G bottom -macro index o "killall mbsync >/dev/null 2>&1; mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc olsen.oyvind.nor@gmail.com" "run mbsync to sync olsen.oyvind.nor@gmail.com" -unmailboxes * - -mailboxes "=INBOX" "=[Gmail]/Sent Mail" "=[Gmail]/Drafts" "=[Gmail]/Spam" "=[Gmail]/Trash" "=Keep" - -macro index,pager gi "=INBOX" "go to inbox" -macro index,pager Mi ";=INBOX" "move mail to inbox" -macro index,pager Ci ";=INBOX" "copy mail to inbox" -set spoolfile = "+INBOX" -macro index,pager gs "=[Gmail]/Sent Mail" "go to sent" -macro index,pager Ms ";=[Gmail]/Sent Mail" "move mail to sent" -macro index,pager Cs ";=[Gmail]/Sent Mail" "copy mail to sent" -set record = "+[Gmail]/Sent Mail" -macro index,pager gd "=[Gmail]/Drafts" "go to drafts" -macro index,pager Md ";=[Gmail]/Drafts" "move mail to drafts" -macro index,pager Cd ";=[Gmail]/Drafts" "copy mail to drafts" -set postponed = "+[Gmail]/Drafts" -macro index,pager gS "=[Gmail]/Spam" "go to spam" -macro index,pager MS ";=[Gmail]/Spam" "move mail to spam" -macro index,pager CS ";=[Gmail]/Spam" "copy mail to spam" -macro index,pager gt "=[Gmail]/Trash" "go to trash" -macro index,pager Mt ";=[Gmail]/Trash" "move mail to trash" -macro index,pager Ct ";=[Gmail]/Trash" "copy mail to trash" -set trash = "+[Gmail]/Trash" diff --git a/.config/mutt/accounts/3-gmail_oon.muttrc b/.config/mutt/accounts/3-gmail_oon.muttrc new file mode 100644 index 0000000..c857da5 --- /dev/null +++ b/.config/mutt/accounts/3-gmail_oon.muttrc @@ -0,0 +1,43 @@ +# vim: filetype=neomuttrc +# muttrc file for account olsen.oyvind.nor@gmail.com +set realname = "Joe" +set from = "olsen.oyvind.nor@gmail.com" +set sendmail = "msmtp -a gmail_oon" +alias me Joe +set folder = "$MAIL/gmail_oon" +set header_cache = $XDG_RUNTIME_DIR/mutt/gmail_oon/headers +set message_cachedir = $XDG_RUNTIME_DIR/mutt/gmail_oon/bodies +set mbox_type = Maildir +set crypt_autosign = yes + +bind index,pager gg noop +bind index,pager g noop +bind index,pager M noop +bind index,pager C noop +bind index gg first-entry +bind pager gg top +bind pager G bottom +macro index o "killall mbsync >/dev/null 2>&1; mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc gmail_oon" "run mbsync to sync olsen.oyvind.nor@gmail.com" +unmailboxes * + +mailboxes "=INBOX" "=[Gmail]/Sent Mail" "=[Gmail]/Drafts" "=[Gmail]/Spam" "=[Gmail]/Trash" "=Keep" + +macro index,pager gi "=INBOX" "go to inbox" +macro index,pager Mi ";=INBOX" "move mail to inbox" +macro index,pager Ci ";=INBOX" "copy mail to inbox" +set spoolfile = "+INBOX" +macro index,pager gs "=[Gmail]/Sent Mail" "go to sent" +macro index,pager Ms ";=[Gmail]/Sent Mail" "move mail to sent" +macro index,pager Cs ";=[Gmail]/Sent Mail" "copy mail to sent" +set record = "+[Gmail]/Sent Mail" +macro index,pager gd "=[Gmail]/Drafts" "go to drafts" +macro index,pager Md ";=[Gmail]/Drafts" "move mail to drafts" +macro index,pager Cd ";=[Gmail]/Drafts" "copy mail to drafts" +set postponed = "+[Gmail]/Drafts" +macro index,pager gS "=[Gmail]/Spam" "go to spam" +macro index,pager MS ";=[Gmail]/Spam" "move mail to spam" +macro index,pager CS ";=[Gmail]/Spam" "copy mail to spam" +macro index,pager gt "=[Gmail]/Trash" "go to trash" +macro index,pager Mt ";=[Gmail]/Trash" "move mail to trash" +macro index,pager Ct ";=[Gmail]/Trash" "copy mail to trash" +set trash = "+[Gmail]/Trash" diff --git a/.config/mutt/accounts/3-towerofsilence777@gmail.com.muttrc b/.config/mutt/accounts/3-towerofsilence777@gmail.com.muttrc deleted file mode 100644 index 848da7f..0000000 --- a/.config/mutt/accounts/3-towerofsilence777@gmail.com.muttrc +++ /dev/null @@ -1,41 +0,0 @@ -# vim: filetype=neomuttrc -# muttrc file for account towerofsilence777@gmail.com -set realname = "Tower Of Silence" -set from = "towerofsilence777@gmail.com" -set sendmail = "msmtp -a towerofsilence777@gmail.com" -alias me Tower Of Silence -set folder = "$MAIL/towerofsilence777@gmail.com" -set header_cache = $XDG_RUNTIME_DIR/mutt/towerofsilence777@gmail.com/headers -set message_cachedir = $XDG_RUNTIME_DIR/mutt/towerofsilence777@gmail.com/bodies -set mbox_type = Maildir - -bind index,pager gg noop -bind index,pager g noop -bind index,pager M noop -bind index,pager C noop -bind index gg first-entry -bind pager gg top -bind pager G bottom -macro index o "killall mbsync >/dev/null 2>&1; mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc towerofsilence777@gmail.com" "run mbsync to sync towerofsilence777@gmail.com" -unmailboxes * - -mailboxes "=INBOX" "=[Gmail].Messages envoy&AOk-s" "=[Gmail].Brouillons" "=[Gmail].Spam" "=[Gmail].Corbeille" "=[Gmail].Important" "=[Gmail].Suivis" -macro index,pager gi "=INBOX" "go to inbox" -macro index,pager Mi ";=INBOX" "move mail to inbox" -macro index,pager Ci ";=INBOX" "copy mail to inbox" -set spoolfile = "+INBOX" -set postponed = "+[Gmail].Brouillons" -macro index,pager gd "=[Gmail].Brouillons" "go to drafts" -macro index,pager Md ";=[Gmail].Brouillons" "move mail to drafts" -macro index,pager Cd ";=[Gmail].Brouillons" "copy mail to drafts" -set record = "+[Gmail].Messages envoy&AOk-s" -macro index,pager gs "=[Gmail].Messages envoy&AOk-s" "go to sent" -macro index,pager Ms ";=[Gmail].Messages envoy&AOk-s" "move mail to sent" -macro index,pager Cs ";=[Gmail].Messages envoy&AOk-s" "copy mail to sent" -macro index,pager gS "=[Gmail].Spam" "go to spam" -macro index,pager MS ";=[Gmail].Spam" "move mail to spam" -macro index,pager CS ";=[Gmail].Spam" "copy mail to spam" -macro index,pager gt "=[Gmail].Corbeille" "go to trash" -macro index,pager Mt ";=[Gmail].Corbeille" "move mail to trash" -macro index,pager Ct ";=[Gmail].Corbeille" "copy mail to trash" -set trash = "+[Gmail].Corbeille" diff --git a/.config/mutt/accounts/4-gmail_tos.muttrc b/.config/mutt/accounts/4-gmail_tos.muttrc new file mode 100644 index 0000000..abd7a53 --- /dev/null +++ b/.config/mutt/accounts/4-gmail_tos.muttrc @@ -0,0 +1,42 @@ +# vim: filetype=neomuttrc +# muttrc file for account towerofsilence777@gmail.com +set realname = "Tower Of Silence" +set from = "towerofsilence777@gmail.com" +set sendmail = "msmtp -a gmail_tos" +alias me Tower Of Silence +set folder = "$MAIL/gmail_tos" +set header_cache = $XDG_RUNTIME_DIR/mutt/gmail_tos/headers +set message_cachedir = $XDG_RUNTIME_DIR/mutt/gmail_tos/bodies +set mbox_type = Maildir +set crypt_autosign = yes + +bind index,pager gg noop +bind index,pager g noop +bind index,pager M noop +bind index,pager C noop +bind index gg first-entry +bind pager gg top +bind pager G bottom +macro index o "killall mbsync >/dev/null 2>&1; mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc gmail_tos" "run mbsync to sync towerofsilence777@gmail.com" +unmailboxes * + +mailboxes "=INBOX" "=[Gmail].Messages envoy&AOk-s" "=[Gmail].Brouillons" "=[Gmail].Spam" "=[Gmail].Corbeille" "=[Gmail].Important" "=[Gmail].Suivis" +macro index,pager gi "=INBOX" "go to inbox" +macro index,pager Mi ";=INBOX" "move mail to inbox" +macro index,pager Ci ";=INBOX" "copy mail to inbox" +set spoolfile = "+INBOX" +set postponed = "+[Gmail].Brouillons" +macro index,pager gd "=[Gmail].Brouillons" "go to drafts" +macro index,pager Md ";=[Gmail].Brouillons" "move mail to drafts" +macro index,pager Cd ";=[Gmail].Brouillons" "copy mail to drafts" +set record = "+[Gmail].Messages envoy&AOk-s" +macro index,pager gs "=[Gmail].Messages envoy&AOk-s" "go to sent" +macro index,pager Ms ";=[Gmail].Messages envoy&AOk-s" "move mail to sent" +macro index,pager Cs ";=[Gmail].Messages envoy&AOk-s" "copy mail to sent" +macro index,pager gS "=[Gmail].Spam" "go to spam" +macro index,pager MS ";=[Gmail].Spam" "move mail to spam" +macro index,pager CS ";=[Gmail].Spam" "copy mail to spam" +macro index,pager gt "=[Gmail].Corbeille" "go to trash" +macro index,pager Mt ";=[Gmail].Corbeille" "move mail to trash" +macro index,pager Ct ";=[Gmail].Corbeille" "copy mail to trash" +set trash = "+[Gmail].Corbeille" diff --git a/.config/mutt/accounts/5-rbousset@secuserve.com.muttrc b/.config/mutt/accounts/5-rbousset@secuserve.com.muttrc deleted file mode 100644 index b0979f6..0000000 --- a/.config/mutt/accounts/5-rbousset@secuserve.com.muttrc +++ /dev/null @@ -1,45 +0,0 @@ -# vim: filetype=neomuttrc -# muttrc file for account rbousset@secuserve.com -set realname = "Rudy Bousset" -set from = "rbousset@secuserve.com" -set sendmail = "msmtp -a rbousset@secuserve.com" -alias me Rudy Bousset -set folder = "$MAIL/rbousset@secuserve.com" -set header_cache = $XDG_RUNTIME_DIR/mutt/rbousset@secuserve.com/headers -set message_cachedir = $XDG_RUNTIME_DIR/mutt/rbousset@secuserve.com/bodies -set mbox_type = Maildir - -bind index,pager gg noop -bind index,pager g noop -bind index,pager M noop -bind index,pager C noop -bind index gg first-entry -bind pager gg top -bind pager G bottom -macro index o "killall mbsync >/dev/null 2>&1; mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc rbousset@secuserve.com" "run mbsync to sync rbousset@secuserve.com" -unmailboxes * - -mailboxes "=INBOX" "=Sent" "=Drafts" "=Junk" "=Trash" "=Keep" "=NEWS" "=Calendrier" "=T&AOI-ches" "=Notes" "=Reports" "=Reports/OTRS" "=Reports/Trello" "=Reports/Teams" "=Reports/Unimus" "=Reports/vzdump" - -macro index,pager gi "=INBOX" "go to inbox" -macro index,pager Mi ";=INBOX" "move mail to inbox" -macro index,pager Ci ";=INBOX" "copy mail to inbox" -set spoolfile = "+INBOX" -macro index,pager gs "=Sent" "go to sent" -macro index,pager Ms ";=Sent" "move mail to sent" -macro index,pager Cs ";=Sent" "copy mail to sent" -set record = "+Sent" -macro index,pager gd "=Drafts" "go to drafts" -macro index,pager Md ";=Drafts" "move mail to drafts" -macro index,pager Cd ";=Drafts" "copy mail to drafts" -set postponed = "+Drafts" -macro index,pager gS "=Junk" "go to junk" -macro index,pager MS ";=Junk" "move mail to junk" -macro index,pager CS ";=Junk" "copy mail to junk" -macro index,pager gt "=Trash" "go to trash" -macro index,pager Mt ";=Trash" "move mail to trash" -macro index,pager Ct ";=Trash" "copy mail to trash" -set trash = "+Trash" -macro index,pager gn "=NEWS" "go to news" -macro index,pager Mn ";=NEWS" "move mail to news" -macro index,pager Cn ";=NEWS" "copy mail to news" diff --git a/.config/mutt/accounts/5-ss_perso.muttrc b/.config/mutt/accounts/5-ss_perso.muttrc new file mode 100644 index 0000000..fb71415 --- /dev/null +++ b/.config/mutt/accounts/5-ss_perso.muttrc @@ -0,0 +1,46 @@ +# vim: filetype=neomuttrc +# muttrc file for account rbousset@secuserve.com +set realname = "Rudy Bousset" +set from = "rbousset@secuserve.com" +set sendmail = "msmtp -a ss_perso" +alias me Rudy Bousset +set folder = "$MAIL/ss_perso" +set header_cache = $XDG_RUNTIME_DIR/mutt/ss_perso/headers +set message_cachedir = $XDG_RUNTIME_DIR/mutt/ss_perso/bodies +set mbox_type = Maildir +set crypt_autosign = yes + +bind index,pager gg noop +bind index,pager g noop +bind index,pager M noop +bind index,pager C noop +bind index gg first-entry +bind pager gg top +bind pager G bottom +macro index o "killall mbsync >/dev/null 2>&1; mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc ss_perso" "run mbsync to sync rbousset@secuserve.com" +unmailboxes * + +mailboxes "=INBOX" "=Sent" "=Drafts" "=Junk" "=Trash" "=Keep" "=NEWS" "=Calendrier" "=T&AOI-ches" "=Notes" "=Reports" "=Reports/OTRS" "=Reports/Trello" "=Reports/Teams" "=Reports/Unimus" "=Reports/vzdump" + +macro index,pager gi "=INBOX" "go to inbox" +macro index,pager Mi ";=INBOX" "move mail to inbox" +macro index,pager Ci ";=INBOX" "copy mail to inbox" +set spoolfile = "+INBOX" +macro index,pager gs "=Sent" "go to sent" +macro index,pager Ms ";=Sent" "move mail to sent" +macro index,pager Cs ";=Sent" "copy mail to sent" +set record = "+Sent" +macro index,pager gd "=Drafts" "go to drafts" +macro index,pager Md ";=Drafts" "move mail to drafts" +macro index,pager Cd ";=Drafts" "copy mail to drafts" +set postponed = "+Drafts" +macro index,pager gS "=Junk" "go to junk" +macro index,pager MS ";=Junk" "move mail to junk" +macro index,pager CS ";=Junk" "copy mail to junk" +macro index,pager gt "=Trash" "go to trash" +macro index,pager Mt ";=Trash" "move mail to trash" +macro index,pager Ct ";=Trash" "copy mail to trash" +set trash = "+Trash" +macro index,pager gn "=NEWS" "go to news" +macro index,pager Mn ";=NEWS" "move mail to news" +macro index,pager Cn ";=NEWS" "copy mail to news" diff --git a/.config/mutt/accounts/6-exploitation@secuserve.com.muttrc b/.config/mutt/accounts/6-exploitation@secuserve.com.muttrc deleted file mode 100644 index 56b88f4..0000000 --- a/.config/mutt/accounts/6-exploitation@secuserve.com.muttrc +++ /dev/null @@ -1,68 +0,0 @@ -# vim: filetype=neomuttrc -# muttrc file for account support@secuserve.com -set realname = "Team Exploitation SecuServe" -set from = "exploitation@secuserve.com" -set sendmail = "msmtp -a exploitation@secuserve.com" -alias me Team Exploitation SecuServe -set folder = "$MAIL/exploitation@secuserve.com" -set header_cache = $XDG_RUNTIME_DIR/mutt/exploitation@secuserve.com/headers -set message_cachedir = $XDG_RUNTIME_DIR/mutt/exploitation@secuserve.com/bodies -set mbox_type = Maildir - -bind index,pager gg noop -bind index,pager g noop -bind index,pager M noop -bind index,pager C noop -bind index gg first-entry -bind pager gg top -bind pager G bottom -macro index o "killall mbsync >/dev/null 2>&1; mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc exploitation@secuserve.com" "run mbsync to sync exploitation@secuserve.com" -unmailboxes * - -mailboxes "=INBOX" "=INBOX/- Secuserve" "=INBOX/Altospam" "=INBOX/BAT" "=INBOX/DEBUG" "=INBOX/Erreurs (boite recept)" \ - "=INBOX/Erreurs (boite recept)/Erreur SI local" "=INBOX/Erreurs (boite recept)/Erreur diverses" "=INBOX/Erreurs (boite recept)/Erreur transport" "=INBOX/Notification" "=INBOX/Postfix SMTP server errors" "=INBOX/Spamtiometre" \ - "=INBOX/TSRC sync" "=INBOX/Trait&AOk-" "=INBOX/replication" \ - "=Sent" "=Drafts" "=SPAM" "=SPAM/SPAMS_NONTRAITES" "=SPAM/SPAMS_TRAITES" "=SPAM/SPAM_TRAP" \ - "=Trash" "=Trash/DOC-SUPPORT" "=Trash/Deleted Messages" "=Trash/Depassement de quota" "=Trash/ESET Antispam" \ - "=Trash/GIP-RENATER" "=Trash/MIGRATION-CLIENT" "=Trash/MIGRATION-CLIENT/Cahors" "=Trash/Messages journaliers" "=Trash/Messages journaliers/configs" "=Trash/Messages journaliers/quarantaine" "=Trash/Messages journaliers/rapport quarantaine journalier" "=Trash/PUB" \ - "=Trash/Rapport-Astreintes" "=Trash/Reseaux" "=Trash/Stalker" "=Trash/Technique" "=Trash/procedures" \ - "=&AMk-l&AOk-ments envoy&AOk-s" "=Brouillons" "=Calendrier" "=Calendrier/Astreintes" "=Calendrier/Conges" \ - "=&AMk-l&AOk-ments supprim&AOk-s" "=Alert FireWall" \ - "=Alert-Monitoring" "=Archive" "=Archives" "=Archives/2009" "=Archives/2010" "=Archives/2011" \ - "=Archives/2012" "=Archives/2013" "=Archives/2014" "=Archives/2015" "=Archives/2016" "=Archives/2017" \ - "=Archives/2022" "=Backups" \ - "=Complaints" "=Complaints/Complaint La Poste" "=Complaints/Complaint Outlook et Hotmail" "=Contacts" "=Contacts/Clients" "=Courrier ind&AOk-sirable" \ - "=Courrier ind&AOk-sirable/SPAM by St&AOk-phane &- Peggy" "=DNS" "=DNS/DNS - MX Status" "=DNS/MxToolBox" "=DNS/Report domain" "=DNS/Report domain/Report domain - Google" \ - "=DNS/Report domain/Report domain - Yahoo" "=Erreurs" "=Fournisseurs" "=Fournisseurs/Applications" "=Fournisseurs/Applications/Communigate" \ - "=Fournisseurs/Cisco" "=Fournisseurs/DigiCert" "=Fournisseurs/Gandi" "=Fournisseurs/Hebergement" "=Fournisseurs/Hebergement/Global SP" "=Fournisseurs/Hebergement/OVH" \ - "=Fournisseurs/Hebergement/OVH/OVH - Message vocaux" "=Fournisseurs/Hebergement/Online" "=Fournisseurs/Hebergement/Owentis" "=Fournisseurs/Hebergement/Owentis/Equinix" "=Fournisseurs/Hebergement/Owentis/Global Switch" "=Incident" \ - "=Info Exploitation" "=Info Exploitation/Autre-Licence" "=Info Exploitation/Certificat" "=Info Exploitation/History" "=Info Exploitation/Licence-Antivirus" "=Info Exploitation/Maintenance Datacenter" \ - "=Info Exploitation/Pkg-Information" "=Info Exploitation/RBLS" "=Info Exploitation/Support-Technique-Interne" "=Interventions" "=Journal" "=Junk" \ - "=MEP" "=MEP/Attente retour Dev" "=MEP/Done" "=MEP/En-cours" "=MEP/wblist" "=Notes" \ - "=Report domain/Report domain - Google" "=Report domain/Report domain - Yahoo" \ - "=SVN" "=Statistiques" "=Statistiques/Stats clients" "=Statistiques/Stats fournisseurs" "=Supervision" \ - "=Supervision/Alarme Lyon" "=Supervision/Alert-Monitoring" "=Supervision/Alerte-Nagios" "=Supervision/Zabbix" "=T&AOI-ches" \ - "=main courante" "=main courante/Done" - -macro index,pager gi "=INBOX" "go to inbox" -macro index,pager Mi ";=INBOX" "move mail to inbox" -macro index,pager Ci ";=INBOX" "copy mail to inbox" -set spoolfile = "+INBOX" -macro index,pager gs "=Sent" "go to sent" -macro index,pager Ms ";=Sent" "move mail to sent" -macro index,pager Cs ";=Sent" "copy mail to sent" -set record = "+Sent" -macro index,pager gd "=Drafts" "go to drafts" -macro index,pager Md ";=Drafts" "move mail to drafts" -macro index,pager Cd ";=Drafts" "copy mail to drafts" -set postponed = "+Drafts" -macro index,pager gS "=SPAM" "go to spam" -macro index,pager MS ";=SPAM" "move mail to spam" -macro index,pager CS ";=SPAM" "copy mail to spam" -macro index,pager gt "=Trash" "go to trash" -macro index,pager Mt ";=Trash" "move mail to trash" -macro index,pager Ct ";=Trash" "copy mail to trash" -set trash = "+Trash" -macro index,pager gc "=Calendrier" "go to calendar" -macro index,pager Mc ";=Calendrier" "move mail to calendar" -macro index,pager Cc ";=Calendrier" "copy mail to calendar" diff --git a/.config/mutt/accounts/6-ss_exploit.muttrc b/.config/mutt/accounts/6-ss_exploit.muttrc new file mode 100644 index 0000000..9232643 --- /dev/null +++ b/.config/mutt/accounts/6-ss_exploit.muttrc @@ -0,0 +1,69 @@ +# vim: filetype=neomuttrc +# muttrc file for account support@secuserve.com +set realname = "Team Exploitation SecuServe" +set from = "exploitation@secuserve.com" +set sendmail = "msmtp -a ss_exploit" +alias me Team Exploitation SecuServe +set folder = "$MAIL/ss_exploit" +set header_cache = $XDG_RUNTIME_DIR/mutt/ss_exploit/headers +set message_cachedir = $XDG_RUNTIME_DIR/mutt/ss_exploit/bodies +set mbox_type = Maildir +set crypt_autosign = no + +bind index,pager gg noop +bind index,pager g noop +bind index,pager M noop +bind index,pager C noop +bind index gg first-entry +bind pager gg top +bind pager G bottom +macro index o "killall mbsync >/dev/null 2>&1; mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc ss_exploit" "run mbsync to sync exploitation@secuserve.com" +unmailboxes * + +mailboxes "=INBOX" "=INBOX/- Secuserve" "=INBOX/Altospam" "=INBOX/BAT" "=INBOX/DEBUG" "=INBOX/Erreurs (boite recept)" \ + "=INBOX/Erreurs (boite recept)/Erreur SI local" "=INBOX/Erreurs (boite recept)/Erreur diverses" "=INBOX/Erreurs (boite recept)/Erreur transport" "=INBOX/Notification" "=INBOX/Postfix SMTP server errors" "=INBOX/Spamtiometre" \ + "=INBOX/TSRC sync" "=INBOX/Trait&AOk-" "=INBOX/replication" \ + "=Sent" "=Drafts" "=SPAM" "=SPAM/SPAMS_NONTRAITES" "=SPAM/SPAMS_TRAITES" "=SPAM/SPAM_TRAP" \ + "=Trash" "=Trash/DOC-SUPPORT" "=Trash/Deleted Messages" "=Trash/Depassement de quota" "=Trash/ESET Antispam" \ + "=Trash/GIP-RENATER" "=Trash/MIGRATION-CLIENT" "=Trash/MIGRATION-CLIENT/Cahors" "=Trash/Messages journaliers" "=Trash/Messages journaliers/configs" "=Trash/Messages journaliers/quarantaine" "=Trash/Messages journaliers/rapport quarantaine journalier" "=Trash/PUB" \ + "=Trash/Rapport-Astreintes" "=Trash/Reseaux" "=Trash/Stalker" "=Trash/Technique" "=Trash/procedures" \ + "=&AMk-l&AOk-ments envoy&AOk-s" "=Brouillons" "=Calendrier" "=Calendrier/Astreintes" "=Calendrier/Conges" \ + "=&AMk-l&AOk-ments supprim&AOk-s" "=Alert FireWall" \ + "=Alert-Monitoring" "=Archive" "=Archives" "=Archives/2009" "=Archives/2010" "=Archives/2011" \ + "=Archives/2012" "=Archives/2013" "=Archives/2014" "=Archives/2015" "=Archives/2016" "=Archives/2017" \ + "=Archives/2022" "=Backups" \ + "=Complaints" "=Complaints/Complaint La Poste" "=Complaints/Complaint Outlook et Hotmail" "=Contacts" "=Contacts/Clients" "=Courrier ind&AOk-sirable" \ + "=Courrier ind&AOk-sirable/SPAM by St&AOk-phane &- Peggy" "=DNS" "=DNS/DNS - MX Status" "=DNS/MxToolBox" "=DNS/Report domain" "=DNS/Report domain/Report domain - Google" \ + "=DNS/Report domain/Report domain - Yahoo" "=Erreurs" "=Fournisseurs" "=Fournisseurs/Applications" "=Fournisseurs/Applications/Communigate" \ + "=Fournisseurs/Cisco" "=Fournisseurs/DigiCert" "=Fournisseurs/Gandi" "=Fournisseurs/Hebergement" "=Fournisseurs/Hebergement/Global SP" "=Fournisseurs/Hebergement/OVH" \ + "=Fournisseurs/Hebergement/OVH/OVH - Message vocaux" "=Fournisseurs/Hebergement/Online" "=Fournisseurs/Hebergement/Owentis" "=Fournisseurs/Hebergement/Owentis/Equinix" "=Fournisseurs/Hebergement/Owentis/Global Switch" "=Incident" \ + "=Info Exploitation" "=Info Exploitation/Autre-Licence" "=Info Exploitation/Certificat" "=Info Exploitation/History" "=Info Exploitation/Licence-Antivirus" "=Info Exploitation/Maintenance Datacenter" \ + "=Info Exploitation/Pkg-Information" "=Info Exploitation/RBLS" "=Info Exploitation/Support-Technique-Interne" "=Interventions" "=Journal" "=Junk" \ + "=MEP" "=MEP/Attente retour Dev" "=MEP/Done" "=MEP/En-cours" "=MEP/wblist" "=Notes" \ + "=Report domain/Report domain - Google" "=Report domain/Report domain - Yahoo" \ + "=SVN" "=Statistiques" "=Statistiques/Stats clients" "=Statistiques/Stats fournisseurs" "=Supervision" \ + "=Supervision/Alarme Lyon" "=Supervision/Alert-Monitoring" "=Supervision/Alerte-Nagios" "=Supervision/Zabbix" "=T&AOI-ches" \ + "=main courante" "=main courante/Done" + +macro index,pager gi "=INBOX" "go to inbox" +macro index,pager Mi ";=INBOX" "move mail to inbox" +macro index,pager Ci ";=INBOX" "copy mail to inbox" +set spoolfile = "+INBOX" +macro index,pager gs "=Sent" "go to sent" +macro index,pager Ms ";=Sent" "move mail to sent" +macro index,pager Cs ";=Sent" "copy mail to sent" +set record = "+Sent" +macro index,pager gd "=Drafts" "go to drafts" +macro index,pager Md ";=Drafts" "move mail to drafts" +macro index,pager Cd ";=Drafts" "copy mail to drafts" +set postponed = "+Drafts" +macro index,pager gS "=SPAM" "go to spam" +macro index,pager MS ";=SPAM" "move mail to spam" +macro index,pager CS ";=SPAM" "copy mail to spam" +macro index,pager gt "=Trash" "go to trash" +macro index,pager Mt ";=Trash" "move mail to trash" +macro index,pager Ct ";=Trash" "copy mail to trash" +set trash = "+Trash" +macro index,pager gc "=Calendrier" "go to calendar" +macro index,pager Mc ";=Calendrier" "move mail to calendar" +macro index,pager Cc ";=Calendrier" "copy mail to calendar" diff --git a/.config/mutt/accounts/7-ss_support.muttrc b/.config/mutt/accounts/7-ss_support.muttrc new file mode 100644 index 0000000..ac92fab --- /dev/null +++ b/.config/mutt/accounts/7-ss_support.muttrc @@ -0,0 +1,83 @@ +# vim: filetype=neomuttrc +# muttrc file for account support@secuserve.com +set realname = "Support SecuServe" +set from = "support@secuserve.com" +set sendmail = "msmtp -a ss_support" +alias me Support SecuServe +set folder = "$MAIL/ss_support" +set header_cache = $XDG_RUNTIME_DIR/mutt/ss_support/headers +set message_cachedir = $XDG_RUNTIME_DIR/mutt/ss_support/bodies +set mbox_type = Maildir +set crypt_autosign = no + +bind index,pager gg noop +bind index,pager g noop +bind index,pager M noop +bind index,pager C noop +bind index gg first-entry +macro index o "killall mbsync >/dev/null 2>&1; mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc ss_support" "run mbsync to sync support@secuserve.com" +unmailboxes * + +mailboxes "=INBOX" "=INBOX/ALFRESCO" "=INBOX/FIN EVAL" "=INBOX/NAS" "=INBOX/Owentis notif" \ + "=INBOX/WEBSITE" "=INBOX/infonews" "=INBOX/mdp Ofii" "=INBOX/retour_fic2020" "=INBOX/support-zammad" \ + "=Sent" "=Drafts" "=SPAM" "=Trash" \ + "=&AMk-l&AOk-ments envoy&AOk-s" "=Brouillons" "=A FAIRE" "=A-NEWS" "=ACT! Support" "=ALERT SMS" \ + "=ALTV2" "=Alerte" "=Archive" "=Archive/2012-07" "=Archive/2012-08" \ + "=Archive/2012-09" "=Archive/2012-10" "=Archive/2012-11" "=Archive/2012-12" "=Archive/2013-01" \ + "=Archive/2013-02" "=Archive/2013-03" "=Archive/2013-04" "=Archive/2013-05" "=Archive/2013-06" \ + "=Archive/2013-07" "=Archive/2013-08" "=Archive/2013-09" "=Archive/2013-10" "=Archive/2013-11" \ + "=Archive/2013-12" "=Archive/2014-01" "=Archive/2014-02" "=Archive/2014-03" "=Archive/2014-04" \ + "=Archive/2014-05" "=Archive/2014-06" "=Archive/2014-07" "=Archive/2014-08" "=Archive/2014-09" \ + "=Archive/2014-10" "=Archive/2014-11" "=Archive/2014-12" "=Archive/2015-01" "=Archive/2015-02" \ + "=Archive/2015-03" "=Archive/2015-04" "=Archive/2015-05" "=Archive/2015-06" "=Archive/2015-07" \ + "=Archive/2015-08" "=Archive/2015-09" "=Archive/2015-10" "=Archive/2015-11" "=Archive/2015-12" \ + "=Archive/2016-01" "=Archive/2016-02" "=Archive/2016-03" "=Archive/2016-04" "=Archive/2016-05" \ + "=Archive/2016-06" "=Archive/2016-07" "=Archive/2016-08" "=Archive/2016-09" "=Archive/2016-10" \ + "=Archive/2016-11" "=Archive/2016-12" "=Archive/2017-01" "=Archive/2017-02" "=Archive/2017-03" \ + "=Archive/2017-04" "=Archive/2017-05" "=Archive/2017-06" "=Archive/2017-07" "=Archive/2017-08" \ + "=Archive/2017-09" "=Archive/2017-10" "=Archive/2017-11" "=Archive/2017-12" "=Archive/2018-01" \ + "=Archives" "=Archives/2020" "=Archives/2021" "=BUG" \ + "=C FAIT" "=CAMPAGNE RETOUR" "=CAMPAGNE RETOUR/Enqu&AOo-te de satisfaction e-securemail" "=CAMPAGNE RETOUR/Infonews@secuserve.com" "=CAMPAGNE RETOUR/feedbackcommunication" \ + "=CAMPAGNE RETOUR/feedbackmails" "=CAMPAGNE RETOUR/feedbackmails-ng" "=Calendrier" "=Commandes" "=Contacts" \ + "=Contacts sugg&AOk-r&AOk-s" "=Contacts/Agenda Secuserve" "=Contacts/Client_test" "=Contacts/TEST CONTACT" \ + "=ESET Antispam" "=ESET Antispam/El&AOk-ments infect&AOk-s" "=El&AOk-ments d&AOk-tect&AOk-s" "=Faux-Negatifs/non_traites.2018" "=Faux-Negatifs/non_traites.2019" \ + "=Faux-Negatifs/non_traites.2020" "=Faux-Negatifs/non_traites.2021" "=Faux-Negatifs/non_traites.2022" "=Faux-Negatifs/traites.2018" "=Faux-Negatifs/traites.2019" \ + "=Faux-Negatifs/traites.2020" "=Faux-Negatifs/traites.2021" "=Faux-Negatifs/traites.2022" "=Faux-Positifs/non_traites.2018" "=Faux-Positifs/non_traites.2019" \ + "=Faux-Positifs/non_traites.2020" "=Faux-Positifs/non_traites.2021" "=Faux-Positifs/non_traites.2022" "=Faux-Positifs/traites.2018" "=Faux-Positifs/traites.2019" \ + "=Faux-Positifs/traites.2020" "=Faux-Positifs/traites.2021" "=Faux-Positifs/traites.2022" "=Flux RSS" "=Flux d&IBk-informations" \ + "=IRD SLA" "=IRD Sympa" "=IRD Sympa/NOTIFICATION" "=Infected Items" "=Informations technique" \ + "=Journal" "=Junk" "=MX out" "=Microsoft Support" "=Migrations" \ + "=NEWS" "=Notes" "=PROJETS" "=PROJETS/AEFE" "=PROJETS/Amplivia" \ + "=PROJETS/Amplivia/GrandLyon" "=PROJETS/CC Erdre Gesvres" "=PROJETS/Chateau de Versailles" "=PROJETS/IRD" "=PROJETS/Lardy" \ + "=PROJETS/MTDS (Maroc)" "=PROJETS/SITTI" "=PROJETS/Secuserve" "=PROJETS/Secuserve/AltermimeV2" "=PROJETS/Secuserve/Bandeau de feedback" \ + "=PROJETS/Secuserve/Captcha" "=PROJETS/Secuserve/Certificats" "=PROJETS/Secuserve/Documentations" "=PROJETS/Secuserve/Gestion des droits" "=PROJETS/Secuserve/Sharecan" \ + "=Param&AOg-tres d&IBk-action de conversation" "=Param&AOg-tres des &AOk-tapes rapides" "=Partenaires" "=Partenaires/BoostMymailSupport" "=Partenaires/Globalsp" \ + "=Partenaires/Globalsp/Ofii" "=Partenaires/Iroquois" "=RAPPORT quarantaine" "=RAPPORT quarantaine/Licences" "=Restaurations GSP" \ + "=SAGE" "=SOCIAL" "=Support" \ + "=Support.CG" "=Support/Formation console d'administration" "=Support_client_secuserve_communigate" "=T&AOI-ches" + +macro index,pager gi "=INBOX" "go to inbox" +macro index,pager Mi ";=INBOX" "move mail to inbox" +macro index,pager Ci ";=INBOX" "copy mail to inbox" +set spoolfile = "+INBOX" +macro index,pager gs "=Sent" "go to sent" +macro index,pager Ms ";=Sent" "move mail to sent" +macro index,pager Cs ";=Sent" "copy mail to sent" +set record = "+Sent" +macro index,pager gd "=Drafts" "go to drafts" +macro index,pager Md ";=Drafts" "move mail to drafts" +macro index,pager Cd ";=Drafts" "copy mail to drafts" +set postponed = "+Drafts" +macro index,pager gS "=SPAM" "go to spam" +macro index,pager MS ";=SPAM" "move mail to spam" +macro index,pager CS ";=SPAM" "copy mail to spam" +macro index,pager gt "=Trash" "go to trash" +macro index,pager Mt ";=Trash" "move mail to trash" +macro index,pager Ct ";=Trash" "copy mail to trash" +set trash = "+Trash" +macro index,pager gn "=NEWS" "go to news" +macro index,pager Mn ";=NEWS" "move mail to news" +macro index,pager Cn ";=NEWS" "copy mail to news" +macro index,pager gc "=Calendrier" "go to calendar" +macro index,pager Mc ";=Calendrier" "move mail to calendar" +macro index,pager Cc ";=Calendrier" "copy mail to calendar" diff --git a/.config/mutt/accounts/7-support@secuserve.com.muttrc b/.config/mutt/accounts/7-support@secuserve.com.muttrc deleted file mode 100644 index 846e091..0000000 --- a/.config/mutt/accounts/7-support@secuserve.com.muttrc +++ /dev/null @@ -1,82 +0,0 @@ -# vim: filetype=neomuttrc -# muttrc file for account support@secuserve.com -set realname = "Support SecuServe" -set from = "support@secuserve.com" -set sendmail = "msmtp -a support@secuserve.com" -alias me Support SecuServe -set folder = "$MAIL/support@secuserve.com" -set header_cache = $XDG_RUNTIME_DIR/mutt/support@secuserve.com/headers -set message_cachedir = $XDG_RUNTIME_DIR/mutt/support@secuserve.com/bodies -set mbox_type = Maildir - -bind index,pager gg noop -bind index,pager g noop -bind index,pager M noop -bind index,pager C noop -bind index gg first-entry -macro index o "killall mbsync >/dev/null 2>&1; mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc support@secuserve.com" "run mbsync to sync support@secuserve.com" -unmailboxes * - -mailboxes "=INBOX" "=INBOX/ALFRESCO" "=INBOX/FIN EVAL" "=INBOX/NAS" "=INBOX/Owentis notif" \ - "=INBOX/WEBSITE" "=INBOX/infonews" "=INBOX/mdp Ofii" "=INBOX/retour_fic2020" "=INBOX/support-zammad" \ - "=Sent" "=Drafts" "=SPAM" "=Trash" \ - "=&AMk-l&AOk-ments envoy&AOk-s" "=Brouillons" "=A FAIRE" "=A-NEWS" "=ACT! Support" "=ALERT SMS" \ - "=ALTV2" "=Alerte" "=Archive" "=Archive/2012-07" "=Archive/2012-08" \ - "=Archive/2012-09" "=Archive/2012-10" "=Archive/2012-11" "=Archive/2012-12" "=Archive/2013-01" \ - "=Archive/2013-02" "=Archive/2013-03" "=Archive/2013-04" "=Archive/2013-05" "=Archive/2013-06" \ - "=Archive/2013-07" "=Archive/2013-08" "=Archive/2013-09" "=Archive/2013-10" "=Archive/2013-11" \ - "=Archive/2013-12" "=Archive/2014-01" "=Archive/2014-02" "=Archive/2014-03" "=Archive/2014-04" \ - "=Archive/2014-05" "=Archive/2014-06" "=Archive/2014-07" "=Archive/2014-08" "=Archive/2014-09" \ - "=Archive/2014-10" "=Archive/2014-11" "=Archive/2014-12" "=Archive/2015-01" "=Archive/2015-02" \ - "=Archive/2015-03" "=Archive/2015-04" "=Archive/2015-05" "=Archive/2015-06" "=Archive/2015-07" \ - "=Archive/2015-08" "=Archive/2015-09" "=Archive/2015-10" "=Archive/2015-11" "=Archive/2015-12" \ - "=Archive/2016-01" "=Archive/2016-02" "=Archive/2016-03" "=Archive/2016-04" "=Archive/2016-05" \ - "=Archive/2016-06" "=Archive/2016-07" "=Archive/2016-08" "=Archive/2016-09" "=Archive/2016-10" \ - "=Archive/2016-11" "=Archive/2016-12" "=Archive/2017-01" "=Archive/2017-02" "=Archive/2017-03" \ - "=Archive/2017-04" "=Archive/2017-05" "=Archive/2017-06" "=Archive/2017-07" "=Archive/2017-08" \ - "=Archive/2017-09" "=Archive/2017-10" "=Archive/2017-11" "=Archive/2017-12" "=Archive/2018-01" \ - "=Archives" "=Archives/2020" "=Archives/2021" "=BUG" \ - "=C FAIT" "=CAMPAGNE RETOUR" "=CAMPAGNE RETOUR/Enqu&AOo-te de satisfaction e-securemail" "=CAMPAGNE RETOUR/Infonews@secuserve.com" "=CAMPAGNE RETOUR/feedbackcommunication" \ - "=CAMPAGNE RETOUR/feedbackmails" "=CAMPAGNE RETOUR/feedbackmails-ng" "=Calendrier" "=Commandes" "=Contacts" \ - "=Contacts sugg&AOk-r&AOk-s" "=Contacts/Agenda Secuserve" "=Contacts/Client_test" "=Contacts/TEST CONTACT" \ - "=ESET Antispam" "=ESET Antispam/El&AOk-ments infect&AOk-s" "=El&AOk-ments d&AOk-tect&AOk-s" "=Faux-Negatifs/non_traites.2018" "=Faux-Negatifs/non_traites.2019" \ - "=Faux-Negatifs/non_traites.2020" "=Faux-Negatifs/non_traites.2021" "=Faux-Negatifs/non_traites.2022" "=Faux-Negatifs/traites.2018" "=Faux-Negatifs/traites.2019" \ - "=Faux-Negatifs/traites.2020" "=Faux-Negatifs/traites.2021" "=Faux-Negatifs/traites.2022" "=Faux-Positifs/non_traites.2018" "=Faux-Positifs/non_traites.2019" \ - "=Faux-Positifs/non_traites.2020" "=Faux-Positifs/non_traites.2021" "=Faux-Positifs/non_traites.2022" "=Faux-Positifs/traites.2018" "=Faux-Positifs/traites.2019" \ - "=Faux-Positifs/traites.2020" "=Faux-Positifs/traites.2021" "=Faux-Positifs/traites.2022" "=Flux RSS" "=Flux d&IBk-informations" \ - "=IRD SLA" "=IRD Sympa" "=IRD Sympa/NOTIFICATION" "=Infected Items" "=Informations technique" \ - "=Journal" "=Junk" "=MX out" "=Microsoft Support" "=Migrations" \ - "=NEWS" "=Notes" "=PROJETS" "=PROJETS/AEFE" "=PROJETS/Amplivia" \ - "=PROJETS/Amplivia/GrandLyon" "=PROJETS/CC Erdre Gesvres" "=PROJETS/Chateau de Versailles" "=PROJETS/IRD" "=PROJETS/Lardy" \ - "=PROJETS/MTDS (Maroc)" "=PROJETS/SITTI" "=PROJETS/Secuserve" "=PROJETS/Secuserve/AltermimeV2" "=PROJETS/Secuserve/Bandeau de feedback" \ - "=PROJETS/Secuserve/Captcha" "=PROJETS/Secuserve/Certificats" "=PROJETS/Secuserve/Documentations" "=PROJETS/Secuserve/Gestion des droits" "=PROJETS/Secuserve/Sharecan" \ - "=Param&AOg-tres d&IBk-action de conversation" "=Param&AOg-tres des &AOk-tapes rapides" "=Partenaires" "=Partenaires/BoostMymailSupport" "=Partenaires/Globalsp" \ - "=Partenaires/Globalsp/Ofii" "=Partenaires/Iroquois" "=RAPPORT quarantaine" "=RAPPORT quarantaine/Licences" "=Restaurations GSP" \ - "=SAGE" "=SOCIAL" "=Support" \ - "=Support.CG" "=Support/Formation console d'administration" "=Support_client_secuserve_communigate" "=T&AOI-ches" - -macro index,pager gi "=INBOX" "go to inbox" -macro index,pager Mi ";=INBOX" "move mail to inbox" -macro index,pager Ci ";=INBOX" "copy mail to inbox" -set spoolfile = "+INBOX" -macro index,pager gs "=Sent" "go to sent" -macro index,pager Ms ";=Sent" "move mail to sent" -macro index,pager Cs ";=Sent" "copy mail to sent" -set record = "+Sent" -macro index,pager gd "=Drafts" "go to drafts" -macro index,pager Md ";=Drafts" "move mail to drafts" -macro index,pager Cd ";=Drafts" "copy mail to drafts" -set postponed = "+Drafts" -macro index,pager gS "=SPAM" "go to spam" -macro index,pager MS ";=SPAM" "move mail to spam" -macro index,pager CS ";=SPAM" "copy mail to spam" -macro index,pager gt "=Trash" "go to trash" -macro index,pager Mt ";=Trash" "move mail to trash" -macro index,pager Ct ";=Trash" "copy mail to trash" -set trash = "+Trash" -macro index,pager gn "=NEWS" "go to news" -macro index,pager Mn ";=NEWS" "move mail to news" -macro index,pager Cn ";=NEWS" "copy mail to news" -macro index,pager gc "=Calendrier" "go to calendar" -macro index,pager Mc ";=Calendrier" "move mail to calendar" -macro index,pager Cc ";=Calendrier" "copy mail to calendar" diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc index 99901b4..50d90c2 100644 --- a/.config/mutt/muttrc +++ b/.config/mutt/muttrc @@ -1,15 +1,17 @@ # vim: filetype=neomuttrc source $XDG_CONFIG_HOME/mutt/defaults.muttrc -source $XDG_CONFIG_HOME/mutt/accounts/1-bousset.rudy@gmail.com.muttrc -macro index,pager 'source $XDG_CONFIG_HOME/mutt/accounts/1-bousset.rudy@gmail.com.muttrc!;' "switch to bousset.rudy@gmail.com" -macro index,pager 1 'source $XDG_CONFIG_HOME/mutt/accounts/1-bousset.rudy@gmail.com.muttrc!;' "switch to bousset.rudy@gmail.com" -macro index,pager 'source $XDG_CONFIG_HOME/mutt/accounts/2-olsen.oyvind.nor@gmail.com.muttrc!;' "switch to olsen.oyvind.nor@gmail.com" -macro index,pager 2 'source $XDG_CONFIG_HOME/mutt/accounts/2-olsen.oyvind.nor@gmail.com.muttrc!;' "switch to olsen.oyvind.nor@gmail.com" -# macro index,page 'source $XDG_CONFIG_HOME/mutt/accounts/3-towerofsilence777@gmail.com.muttrc!;' "switch to towerofsilence777@gmail.com" -# macro index,page 3 'source $XDG_CONFIG_HOME/mutt/accounts/3-towerofsilence777@gmail.com.muttrc!;' "switch to towerofsilence777@gmail.com" -macro index,pager 'source $XDG_CONFIG_HOME/mutt/accounts/5-rbousset@secuserve.com.muttrc!;' "switch to rbousset@secuserve.com" -macro index,pager 5 'source $XDG_CONFIG_HOME/mutt/accounts/5-rbousset@secuserve.com.muttrc!;' "switch to rbousset@secuserve.com" -macro index,pager 'source $XDG_CONFIG_HOME/mutt/accounts/6-exploitation@secuserve.com.muttrc!;' "switch to exploitation@secuserve.com" -macro index,pager 6 'source $XDG_CONFIG_HOME/mutt/accounts/6-exploitation@secuserve.com.muttrc!;' "switch to exploitation@secuserve.com" -macro index,pager 'source $XDG_CONFIG_HOME/mutt/accounts/7-support@secuserve.com.muttrc!;' "switch to support@secuserve.com" -macro index,pager 7 'source $XDG_CONFIG_HOME/mutt/accounts/7-support@secuserve.com.muttrc!;' "switch to support@secuserve.com" +source $XDG_CONFIG_HOME/mutt/accounts/1-main.muttrc +macro index,pager 'source $XDG_CONFIG_HOME/mutt/accounts/1-main.muttrc!;' "switch to rrbo@proton.me" +macro index,pager 1 'source $XDG_CONFIG_HOME/mutt/accounts/1-main.muttrc!;' "switch to rrbo@proton.me" +macro index,pager 'source $XDG_CONFIG_HOME/mutt/accounts/2-gmail_br.muttrc!;' "switch to bousset.rudy@gmail.com" +macro index,pager 2 'source $XDG_CONFIG_HOME/mutt/accounts/2-gmail_br.muttrc!;' "switch to bousset.rudy@gmail.com" +macro index,pager 'source $XDG_CONFIG_HOME/mutt/accounts/2-gmail_oon.muttrc!;' "switch to olsen.oyvind.nor@gmail.com" +macro index,pager 3 'source $XDG_CONFIG_HOME/mutt/accounts/2-gmail_oon.muttrc!;' "switch to olsen.oyvind.nor@gmail.com" +# macro index,pager 'source $XDG_CONFIG_HOME/mutt/accounts/3-gmail_tos.muttrc!;' "switch to towerofsilence777@gmail.com" +# macro index,pager 4 'source $XDG_CONFIG_HOME/mutt/accounts/3-gmail_tos.muttrc!;' "switch to towerofsilence777@gmail.com" +macro index,pager 'source $XDG_CONFIG_HOME/mutt/accounts/5-ss_perso.muttrc!;' "switch to rbousset@secuserve.com" +macro index,pager 5 'source $XDG_CONFIG_HOME/mutt/accounts/5-ss_perso.muttrc!;' "switch to rbousset@secuserve.com" +macro index,pager 'source $XDG_CONFIG_HOME/mutt/accounts/6-ss_exploit.muttrc!;' "switch to exploitation@secuserve.com" +macro index,pager 6 'source $XDG_CONFIG_HOME/mutt/accounts/6-ss_exploit.muttrc!;' "switch to exploitation@secuserve.com" +macro index,pager 'source $XDG_CONFIG_HOME/mutt/accounts/7-ss_support.muttrc!;' "switch to support@secuserve.com" +macro index,pager 7 'source $XDG_CONFIG_HOME/mutt/accounts/7-ss_support.muttrc!;' "switch to support@secuserve.com" diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc index e007353..203ebd4 100644 --- a/.config/x11/xinitrc +++ b/.config/x11/xinitrc @@ -1,7 +1,7 @@ # vim: filetype=sh startif() { - pgrep "$1" >/dev/null || "$@" >/dev/null 2>&1 & + pgrep "$(basename "$1")" >/dev/null || "$@" >/dev/null 2>&1 & } export LANG='en_US.UTF-8' @@ -18,6 +18,7 @@ startif mpd-notification startif xscreensaver --no-splash startif dwmblocks startif sb-updatempd +startif /compat/linux/usr/lib/protonmail/bridge/proton-bridge --noninteractive # ekb cd "$HOME" xrdb "$HOME"/.config/x11/xresources diff --git a/.local/bin/fetch_mail.sh b/.local/bin/fetch_mail.sh index 1f2889b..c30e309 100755 --- a/.local/bin/fetch_mail.sh +++ b/.local/bin/fetch_mail.sh @@ -11,9 +11,10 @@ mc_file="/tmp/newmailcount" if [ -f $mc_file ]; then pre_count=$(cat $mc_file) else - pre_count="$(ls "${MAIL:-/var/mail/jozan}"/bousset.rudy@gmail.com/INBOX/new | wc -l 2>/dev/null)" - tmp="$(ls "${MAIL:-/var/mail/jozan}"/olsen.oyvind.nor@gmail.com/INBOX/new | wc -l 2>/dev/null)" - pre_count="$((pre_count + tmp))" + pre_count="$(ls "${MAIL:-/var/mail/jozan}"/main/INBOX/new | wc -l 2>/dev/null)" + tmp1="$(ls "${MAIL:-/var/mail/jozan}"/gmail_br/INBOX/new | wc -l 2>/dev/null)" + tmp2="$(ls "${MAIL:-/var/mail/jozan}"/gmail_oon/INBOX/new | wc -l 2>/dev/null)" + pre_count="$((pre_count + tmp1 + tmp2))" fi killall mbsync >/dev/null 2>&1 # notify-send -u low -t 3000 'mbsync' ' fetching mail...' >/dev/null 2>&1 @@ -24,9 +25,10 @@ killall mbsync >/dev/null 2>&1 gsleep 0.2 kill -74 $(pidof dwmblocks) >/dev/null 2>&1 fg -post_count="$(ls "${MAIL:-/var/mail/jozan}"/bousset.rudy@gmail.com/INBOX/new | wc -l 2>/dev/null)" -tmp="$(ls "${MAIL:-/var/mail/jozan}"/olsen.oyvind.nor@gmail.com/INBOX/new | wc -l 2>/dev/null)" -post_count="$((post_count + tmp))" +post_count="$(ls "${MAIL:-/var/mail/jozan}"/main/INBOX/new | wc -l 2>/dev/null)" +tmp1="$(ls "${MAIL:-/var/mail/jozan}"/gmail_br/INBOX/new | wc -l 2>/dev/null)" +tmp2="$(ls "${MAIL:-/var/mail/jozan}"/gmail_oon/INBOX/new | wc -l 2>/dev/null)" +post_count="$((post_count + tmp1 + tmp2))" if [ $post_count -gt $pre_count ]; then notify-send -u normal 'NeoMutt' ' '$post_count' new mail(s)' fi diff --git a/.local/bin/status/sb-mailbox b/.local/bin/status/sb-mailbox index db0dd4e..3ce5f31 100755 --- a/.local/bin/status/sb-mailbox +++ b/.local/bin/status/sb-mailbox @@ -13,8 +13,9 @@ case $BLOCK_BUTTON in 6) "$TERMINAL" -e "$EDITOR" "$0" ;; esac -mb_a="$(ls "${MAIL:-/var/mail/jozan}"/bousset.rudy@gmail.com/INBOX/new/ | wc -l 2>/dev/null)" -mb_b="$(ls "${MAIL:-/var/mail/jozan}"/olsen.oyvind.nor@gmail.com/INBOX/new/ | wc -l 2>/dev/null)" +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)" sync=0 if pidof mbsync >/dev/null 2>&1; then @@ -31,10 +32,20 @@ if [ "$mb_a" -gt 0 ]; then echo -n "A:" $mb_a fi -if [ "$mb_a" -gt 0 ] && [ "$mb_a" -gt 0 ]; then +if [ "$mb_a" -gt 0 ] && [ "$mb_b" -gt 0 ]; then echo -n " " fi if [ "$mb_b" -gt 0 ]; then echo -n "B:" $mb_b fi + +if [ "$mb_b" -gt 0 ] && [ "$mb_c" -gt 0 ]; then + echo -n " " +elif [ "$mb_a" -gt 0 ] && [ "$mb_c" -gt 0 ]; then + echo -n " " +fi + +if [ "$mb_c" -gt 0 ]; then + echo -n "C:" $mb_c +fi -- cgit v1.2.3