diff --git a/.config/mbsync/config b/.config/mbsync/config new file mode 100644 index 0000000..403b4b6 --- /dev/null +++ b/.config/mbsync/config @@ -0,0 +1,78 @@ +# Personnal - Critical +IMAPStore david.julien@posteo.net-remote +Host posteo.de +Port 993 +User david.julien@posteo.net +PassCmd "pass david.julien@posteo.net" +AuthMechs LOGIN +SSLType IMAPS +CertificateFile /etc/ssl/certs/ca-certificates.crt + +MaildirStore david.julien@posteo.net-local +Subfolders Verbatim +Path /home/swytch/.local/share/mail/david.julien@posteo.net/ +Inbox /home/swytch/.local/share/mail/david.julien@posteo.net/INBOX + +Channel david.julien@posteo.net +Expunge Both +Far :david.julien@posteo.net-remote: +Near :david.julien@posteo.net-local: +Patterns * !"[Gmail]/All Mail" +Create Both +SyncState * +MaxMessages 0 +ExpireUnread no +# End Profile + + +# University +IMAPStore david.julien@ens-lyon.fr-remote +Host imaps.ens-lyon.fr +Port 993 +User djulien +PassCmd "pass ens-lyon.fr/djulien" +AuthMechs LOGIN +SSLType IMAPS +CertificateFile /etc/ssl/certs/ca-certificates.crt + +MaildirStore david.julien@ens-lyon.fr-local +Subfolders Verbatim +Path /home/swytch/.local/share/mail/david.julien@ens-lyon.fr/ +Inbox /home/swytch/.local/share/mail/david.julien@ens-lyon.fr/INBOX + +Channel david.julien@ens-lyon.fr +Expunge Both +Far :david.julien@ens-lyon.fr-remote: +Near :david.julien@ens-lyon.fr-local: +Patterns * !"[Gmail]/All Mail" +Create Both +SyncState * +MaxMessages 0 +ExpireUnread no +# End Profile + +# Personnal +IMAPStore david.julien@mailo.com-remote +Host mail.mailo.com +Port 993 +User david.julien@mailo.com +PassCmd "pass david.julien@mailo.com" +AuthMechs LOGIN +SSLType IMAPS +CertificateFile /etc/ssl/certs/ca-certificates.crt + +MaildirStore david.julien@mailo.com-local +Subfolders Verbatim +Path /home/swytch/.local/share/mail/david.julien@mailo.com/ +Inbox /home/swytch/.local/share/mail/david.julien@mailo.com/INBOX + +Channel david.julien@mailo.com +Expunge Both +Far :david.julien@mailo.com-remote: +Near :david.julien@mailo.com-local: +Patterns * !"[Gmail]/All Mail" +Create Both +SyncState * +MaxMessages 0 +ExpireUnread no +# End Profile diff --git a/.config/msmtp/config b/.config/msmtp/config new file mode 100644 index 0000000..c105f09 --- /dev/null +++ b/.config/msmtp/config @@ -0,0 +1,32 @@ +account david.julien@posteo.net +host posteo.de +port 587 +from david.julien@posteo.net +user david.julien@posteo.net +passwordeval "pass david.julien@posteo.net" +auth on +tls on +tls_trust_file /etc/ssl/certs/ca-certificates.crt +logfile /home/swytch/.config/msmtp/msmtp.log + +account david.julien@ens-lyon.fr +host smtp.ens-lyon.fr +port 587 +from david.julien@ens-lyon.fr +user djulien +passwordeval "pass ens-lyon.fr/djulien" +auth on +tls on +tls_trust_file /etc/ssl/certs/ca-certificates.crt +logfile /home/swytch/.config/msmtp/msmtp.log + +account david.julien@mailo.com +host mail.mailo.com +port 587 +from david.julien@mailo.com +user david.julien@mailo.com +passwordeval "pass david.julien@mailo.com" +auth on +tls on +tls_trust_file /etc/ssl/certs/ca-certificates.crt +logfile /home/swytch/.config/msmtp/msmtp.log diff --git a/.config/mutt/accounts/3-david.julien@mailo.com.muttrc b/.config/mutt/accounts/3-david.julien@mailo.com.muttrc new file mode 100644 index 0000000..a7d2f75 --- /dev/null +++ b/.config/mutt/accounts/3-david.julien@mailo.com.muttrc @@ -0,0 +1,49 @@ +# vim: filetype=neomuttrc +# muttrc file for account email@adress.you +set realname = "David JULIEN" +set from = "david.julien@mailo.com" +set sendmail = "msmtp -a david.julien@mailo.com" +alias me david.julien +set folder = "/home/swytch/.local/share/mail/david.julien@mailo.com" +set header_cache = /home/swytch/.cache/mutt/david.julien@mailo.com/headers +set message_cachedir = /home/swytch/.cache/mutt/david.julien@mailo.com/bodies +set mbox_type = Maildir + +set crypt_autosign = yes +set pgp_sign_as = "0x86C2FBBE4A4F0F7F" + +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 +unmailboxes * +unalternates * +set signature="/home/swytch/.config/mutt/accounts/mailo.signature" +unmacro index o +macro index o "mailsync" "run mbsync to sync david.julien@mailo.com" + +mailboxes "=sent" "=draftbox" "=trash" "=INBOX" "=farigoule" "=promo_fanfare" +set record = "+sent" +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 postponed = "+draftbox" +macro index,pager gd "=draftbox" "go to drafts" +macro index,pager Md ";=draftbox" "move mail to drafts" +macro index,pager Cd ";=draftbox" "copy mail to drafts" +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 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 gf "=farigoule" "go to farigoule" +macro index,pager Mf ";=farigoule" "move mail to farigoule" +macro index,pager Cf ";=farigoule" "copy mail to farigoule" +macro index,pager gp "=promo_fanfare" "go to promo_fanfare" +macro index,pager Mp ";=promo_fanfare" "move mail to promo_fanfare" +macro index,pager Cp ";=promo_fanfare" "copy mail to promo_fanfare" diff --git a/.config/mutt/accounts/mailo.signature b/.config/mutt/accounts/mailo.signature new file mode 100644 index 0000000..034281e --- /dev/null +++ b/.config/mutt/accounts/mailo.signature @@ -0,0 +1,2 @@ + +David JULIEN diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc new file mode 100644 index 0000000..25f9bd4 --- /dev/null +++ b/.config/mutt/muttrc @@ -0,0 +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 'source /home/swytch/.config/mutt/accounts/1-david.julien@posteo.net.muttrc!;' "switch to david.julien@posteo.net" +source /home/swytch/.config/mutt/accounts/2-david.julien@ens-lyon.fr.muttrc +macro index,pager i2 'source /home/swytch/.config/mutt/accounts/2-david.julien@ens-lyon.fr.muttrc!;' "switch to david.julien@ens-lyon.fr" +macro index,pager i3 'source /home/swytch/.config/mutt/accounts/3-david.julien@mailo.com.muttrc!;' "switch to david.julien@mailto.com" diff --git a/.local/bin/statusbar/sb-mailbox b/.local/bin/statusbar/sb-mailbox index 58d7f47..ad8a456 100755 --- a/.local/bin/statusbar/sb-mailbox +++ b/.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 '/@ens/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