diff --git a/.config/mbsync/config b/.config/mbsync/config deleted file mode 100644 index 856cc3d..0000000 --- a/.config/mbsync/config +++ /dev/null @@ -1,77 +0,0 @@ -# Personnal - Critical -IMAPStore david.julien@posteo.net-remote -Host posteo.de -Port 993 -User david.julien@posteo.net -PassCmd "pass posteo.net/david.julien" -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/posteo/ -Inbox /home/swytch/.local/share/mail/posteo/INBOX - -Channel posteo -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@univ-nantes.fr-remote -Host imaps.etu.univ-nantes.fr -Port 993 -User E22D718J -PassCmd "pass univ-nantes.fr/E22D718J" -AuthMechs LOGIN -SSLType IMAPS -CertificateFile /etc/ssl/certs/ca-certificates.crt - -MaildirStore david.julien@univ-nantes.fr-local -Subfolders Verbatim -Path /home/swytch/.local/share/mail/univ/ -Inbox /home/swytch/.local/share/mail/univ/INBOX - -Channel univ -Expunge Both -Far :david.julien@univ-nantes.fr-remote: -Near :david.julien@univ-nantes.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 mailo.com/david.julien" -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/mailo/ -Inbox /home/swytch/.local/share/mail/mailo/INBOX - -Channel mailo -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/mbsync/config.template b/.config/mbsync/config.template new file mode 100644 index 0000000..feec876 --- /dev/null +++ b/.config/mbsync/config.template @@ -0,0 +1,25 @@ +# Personnal - Critical +IMAPStore email@address.you-remote +Host address.you +Port 993 +User email@address.you +PassCmd "pass address.you/email" +AuthMechs LOGIN +SSLType IMAPS +CertificateFile /etc/ssl/certs/ca-certificates.crt + +MaildirStore email@address.you-local +Subfolders Verbatim +Path /home/user/.local/share/mail/address/ +Inbox /home/user/.local/share/mail/address/INBOX + +Channel address +Expunge Both +Far :email@address.you-remote: +Near :email@address.you-local: +Patterns * !"[Gmail]/All Mail" +Create Both +SyncState * +MaxMessages 0 +ExpireUnread no +# End Profile diff --git a/.config/msmtp/config b/.config/msmtp/config deleted file mode 100644 index 4e48a95..0000000 --- a/.config/msmtp/config +++ /dev/null @@ -1,32 +0,0 @@ -account posteo -host posteo.de -port 587 -from david.julien@posteo.net -user david.julien@posteo.net -passwordeval "pass posteo.net/david.julien" -auth on -tls on -tls_trust_file /etc/ssl/certs/ca-certificates.crt -logfile /home/swytch/.config/msmtp/msmtp.log - -account univ -host smtp.etu.univ-nantes.fr -port 587 -from david.julien@univ-nantes.fr -user E22D718J -passwordeval "pass univ-nantes.fr/E22D718J" -auth on -tls on -tls_trust_file /etc/ssl/certs/ca-certificates.crt -logfile /home/swytch/.config/msmtp/msmtp.log - -account mailo -host mail.mailo.com -port 587 -from david.julien@mailo.com -user david.julien@mailo.com -passwordeval "pass mailo.com/david.julien" -auth on -tls on -tls_trust_file /etc/ssl/certs/ca-certificates.crt -logfile /home/swytch/.config/msmtp/msmtp.log diff --git a/.config/msmtp/config.template b/.config/msmtp/config.template new file mode 100644 index 0000000..102f29a --- /dev/null +++ b/.config/msmtp/config.template @@ -0,0 +1,10 @@ +account address +host address.you +port 587 +from email@address.you +user email@address.you +passwordeval "pass address.you/email" +auth on +tls on +tls_trust_file /etc/ssl/certs/ca-certificates.crt +logfile /home/user/.local/share/msmtp/msmtp.log diff --git a/.config/neomutt/accounts/1-david.julien@posteo.net.muttrc b/.config/neomutt/accounts/1-david.julien@posteo.net.muttrc deleted file mode 100644 index 7cc1d88..0000000 --- a/.config/neomutt/accounts/1-david.julien@posteo.net.muttrc +++ /dev/null @@ -1,46 +0,0 @@ -# vim: filetype=neomuttrc -# muttrc file for account email@adress.you -set realname = "David JULIEN" -set from = "david.julien@posteo.net" -set sendmail = "msmtp -a posteo" -alias me david.julien -set folder = "$XDG_DATA_HOME/mail/posteo" -set header_cache = "$XDG_CACHE_HOME/neomutt/posteo/headers" -set message_cachedir = "$XDG_CACHE_HOME/neomutt/posteo/bodies" -set mbox_type = Maildir - -set crypt_autosign = yes -set pgp_self_encrypt = yes -set pgp_default_key = "0x7F03EA9BEFFCB97F" - -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="$XDG_CONFIG_HOME/neomutt/accounts/posteo.signature" -unmacro index o -macro index o "mailsync" "run mbsync to sync david.julien@posteo.net" - -mailboxes "=Sent" "=Drafts" "=Trash" "=INBOX" "=Receipts" -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 = "+Drafts" -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" -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" -macro index,pager gr "=Receipts" "go to receipts" -macro index,pager Mr ";=Receipts" "move mail to receipts" -macro index,pager Cr ";=Receipts" "copy mail to receipts" -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" diff --git a/.config/neomutt/accounts/2-david.julien@ens-lyon.fr.muttrc b/.config/neomutt/accounts/2-david.julien@ens-lyon.fr.muttrc deleted file mode 100644 index 6edfdff..0000000 --- a/.config/neomutt/accounts/2-david.julien@ens-lyon.fr.muttrc +++ /dev/null @@ -1,55 +0,0 @@ -# vim: filetype=neomuttrc -# muttrc file for account david.julien@ens-lyon.fr -set realname = "David JULIEN" -set from = "david.julien@ens-lyon.fr" -set sendmail = "msmtp -a david.julien@ens-lyon.fr" -alias me david.julien -set folder = "$XDG_DATA_HOME/mail/david.julien@ens-lyon.fr" -set header_cache = "$XDG_CACHE_HOME/neomutt/david.julien@ens-lyon.fr/headers" -set message_cachedir = "$XDG_CACHE_HOME/neomutt/david.julien@ens-lyon.fr/bodies" -set mbox_type = Maildir - -set crypt_autosign = yes -set pgp_self_encrypt = yes -set pgp_default_key = "0x9D5279329BB80FA0" - -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="$XDG_CONFIG_HOME/neomutt/accounts/ens.signature" -unmacro index o -macro index o "mailsync" "run mbsync to sync david.julien@ens-lyon.fr" - -mailboxes "=Sent" "=Drafts" "=Trash" "=INBOX" "=thesis" "=MOVEP" "=QEST" "=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 = "+Drafts" -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" -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 "=fanfare" "go to fanfare" -macro index,pager Mf ";=fanfare" "move mail to fanfare" -macro index,pager Cf ";=fanfare" "copy mail to fanfare" -macro index,pager gI "=internship" "go to internship" -macro index,pager MI ";=internship" "move mail to internship" -macro index,pager CI ";=internship" "copy mail to internship" -macro index,pager gm "=MOVEP" "go to MOVEP" -macro index,pager Mm ";=MOVEP" "move mail to MOVEP" -macro index,pager Cm ";=MOVEP" "copy mail to MOVEP" -macro index,pager gq "=QEST" "go to QEST" -macro index,pager Mq ";=QEST" "move mail to QEST" -macro index,pager Cq ";=QEST" "copy mail to QEST" diff --git a/.config/neomutt/accounts/2-david.julien@univ-nantes.fr.muttrc b/.config/neomutt/accounts/2-david.julien@univ-nantes.fr.muttrc deleted file mode 100644 index a889735..0000000 --- a/.config/neomutt/accounts/2-david.julien@univ-nantes.fr.muttrc +++ /dev/null @@ -1,67 +0,0 @@ -# vim: filetype=neomuttrc -# muttrc file for account david.julien@univ-nantes.fr -set realname = "David JULIEN" -set from = "david.julien@univ-nantes.fr" -set sendmail = "msmtp -a univ" -alias me david.julien -set folder = "$XDG_DATA_HOME/mail/univ" -set header_cache = "$XDG_CACHE_HOME/neomutt/univ/headers" -set message_cachedir = "$XDG_CACHE_HOME/neomutt/univ/bodies" -set mbox_type = Maildir - -set crypt_autosign = yes -set pgp_self_encrypt = yes -set pgp_default_key = "0x1DD6B2BA6DD78810" - -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="$XDG_CONFIG_HOME/neomutt/accounts/nantes.signature" -unmacro index o -macro index o "mailsync" "run mbsync to sync david.julien@univ-nantes.fr" - -mailboxes "=Sent" "=Drafts" "=Trash" "=INBOX" "=thesis" "=publications" "=teaching" "=teaching/X11I020" "=teaching/X11I040" "=forge" "=velo" "=admin" "=login" -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 = "+Drafts" -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" -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 gT "=thesis" "go to thesis" -macro index,pager MT ";=thesis" "move mail to thesis" -macro index,pager CT ";=thesis" "copy mail to thesis" -macro index,pager gf "=forge" "go to forge" -macro index,pager Mf ";=forge" "move mail to forge" -macro index,pager Cf ";=forge" "copy mail to forge" -macro index,pager gv "=velo" "go to velo" -macro index,pager Mv ";=velo" "move mail to velo" -macro index,pager Cv ";=velo" "copy mail to velo" -macro index,pager ga "=admin" "go to admin" -macro index,pager Ma ";=admin" "move mail to admin" -macro index,pager Ca ";=admin" "copy mail to admin" -macro index,pager gl "=login" "go to login" -macro index,pager Ml ";=login" "move mail to login" -macro index,pager Cl ";=login" "copy mail to login" -macro index,pager gp "=publications" "go to publications" -macro index,pager Mp ";=publications" "move mail to publications" -macro index,pager Cp ";=publications" "copy mail to publications" -macro index,pager gc2 "=teaching/X11I020" "go to teaching/X11I020" -macro index,pager Mc2 ";=teaching/X11I020" "move mail to teaching/X11I020" -macro index,pager Cc2 ";=teaching/X11I020" "copy mail to teaching/X11I020" -macro index,pager gc4 "=teaching/X11I040" "go to teaching/X11I040" -macro index,pager Mc4 ";=teaching/X11I040" "move mail to teaching/X11I040" -macro index,pager Cc4 ";=teaching/X11I040" "copy mail to teaching/X11I040" diff --git a/.config/neomutt/accounts/3-david.julien@mailo.com.muttrc b/.config/neomutt/accounts/3-david.julien@mailo.com.muttrc deleted file mode 100644 index f6bf6cf..0000000 --- a/.config/neomutt/accounts/3-david.julien@mailo.com.muttrc +++ /dev/null @@ -1,59 +0,0 @@ -# vim: filetype=neomuttrc -# muttrc file for account email@adress.you -set realname = "David JULIEN" -set from = "david.julien@mailo.com" -set sendmail = "msmtp -a mailo" -alias me david.julien -set folder = "$XDG_DATA_HOME/mail/mailo" -set header_cache = "$XDG_CACHE_HOME/neomutt/mailo/headers" -set message_cachedir = "$XDG_CACHE_HOME/neomutt/mailo/bodies" -set mbox_type = Maildir - -set crypt_autosign = yes -set pgp_self_encrypt = yes -set pgp_default_key = "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="$XDG_CONFIG_HOME/neomutt/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" "=mediapart" "=git" "=sosh" -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" -macro index,pager gm "=mediapart" "go to mediapart" -macro index,pager Mm ";=mediapart" "move mail to mediapart" -macro index,pager Cm ";=mediapart" "copy mail to mediapart" -macro index,pager gg "=git" "go to git" -macro index,pager Mg ";=git" "move mail to git" -macro index,pager Cg ";=git" "copy mail to git" -macro index,pager gh "=sosh" "go to sosh" -macro index,pager Mh ";=sosh" "move mail to sosh" -macro index,pager Ch ";=sosh" "copy mail to sosh" diff --git a/.config/neomutt/accounts/ens.signature b/.config/neomutt/accounts/ens.signature deleted file mode 100644 index 14e7658..0000000 --- a/.config/neomutt/accounts/ens.signature +++ /dev/null @@ -1,4 +0,0 @@ - -David JULIEN -M2 Informatique Fondamentale -ENS de Lyon diff --git a/.config/neomutt/accounts/mailo.signature b/.config/neomutt/accounts/mailo.signature deleted file mode 100644 index 034281e..0000000 --- a/.config/neomutt/accounts/mailo.signature +++ /dev/null @@ -1,2 +0,0 @@ - -David JULIEN diff --git a/.config/neomutt/accounts/nantes.signature b/.config/neomutt/accounts/nantes.signature deleted file mode 100644 index 64b56a8..0000000 --- a/.config/neomutt/accounts/nantes.signature +++ /dev/null @@ -1,7 +0,0 @@ - -David JULIEN -Doctorant au LS2N (Nantes) -Équipe VELO - -Faculté de Sciences et Techniques -Bâtiment 11 - Bureau 221 diff --git a/.config/neomutt/accounts/posteo.signature b/.config/neomutt/accounts/posteo.signature deleted file mode 100644 index 034281e..0000000 --- a/.config/neomutt/accounts/posteo.signature +++ /dev/null @@ -1,2 +0,0 @@ - -David JULIEN diff --git a/.config/neomutt/maps b/.config/neomutt/maps index 7088d5d..efb72f0 100644 --- a/.config/neomutt/maps +++ b/.config/neomutt/maps @@ -5,10 +5,7 @@ bind index,pager g noop bind index \Cf noop # Switching accounts -macro index,pager ip 'source $XDG_CONFIG_HOME/neomutt/accounts/1-david.julien@posteo.net.muttrc!;' "switch to david.julien@posteo.net" -macro index,pager is 'source $XDG_CONFIG_HOME/neomutt/accounts/2-david.julien@ens-lyon.fr.muttrc!;' "switch to david.julien@ens-lyon.fr" -macro index,pager in 'source $XDG_CONFIG_HOME/neomutt/accounts/2-david.julien@univ-nantes.fr.muttrc!;' "switch to david.julien@univ-nantes.fr" -macro index,pager im 'source $XDG_CONFIG_HOME/neomutt/accounts/3-david.julien@mailo.com.muttrc!;' "switch to david.julien@mailo.com" +macro index,pager i1 'source $XDG_CONFIG_HOME/neomutt/accounts/account_template.muttrc!;' "switch to email@address.you" # General rebindings bind index j next-entry diff --git a/.config/neomutt/muttrc.template b/.config/neomutt/muttrc.template deleted file mode 100644 index ace1410..0000000 --- a/.config/neomutt/muttrc.template +++ /dev/null @@ -1,5 +0,0 @@ -# vim: filetype=neomuttrc -source /home/swytch/.config/mutt/neomutt.muttrc -source /home/swytch/.config/mutt/accounts/account_template.muttrc -macro index,pager i1 'source -/home/swytch/.config/mutt/accounts/account_template.muttrc!;' "switch to david.julien@posteo.net" diff --git a/.config/neomutt/neomuttrc b/.config/neomutt/neomuttrc.template similarity index 88% rename from .config/neomutt/neomuttrc rename to .config/neomutt/neomuttrc.template index 480a7eb..407f168 100644 --- a/.config/neomutt/neomuttrc +++ b/.config/neomutt/neomuttrc.template @@ -1,8 +1,4 @@ # vim: filetype=neomuttrc -# Adapted from Luke Smith's mutt-wizard config files. -# More information : https://github.com/LukeSmithxyz/mutt-wizard - - set mailcap_path = $XDG_CONFIG_HOME/neomutt/mailcap:$mailcap_path set mime_type_query_command = "file --mime-type -b %s" set date_format="%d/%m/%y %I:%M%p" @@ -30,7 +26,7 @@ auto_view application/pgp-encrypted #set display_filter = "tac | sed '/\\\[-- Autoview/,+1d' | tac" # Suppress autoview messages. alternative_order text/plain text/enriched text/html - source $XDG_CONFIG_HOME/neomutt/maps source $XDG_CONFIG_HOME/neomutt/colors -source $XDG_CONFIG_HOME/neomutt/accounts/2-david.julien@univ-nantes.fr.muttrc +source $XDG_CONFIG_HOME/neomutt/accounts/account_template.muttrc +$XDG_CONFIG_HOME/neomutt/accounts/account_template.muttrc!;' "switch to email@address.you diff --git a/.config/notmuch/default/hooks/post_new.sh b/.config/notmuch/default/hooks/post_new.sh deleted file mode 100755 index 0c8b092..0000000 --- a/.config/notmuch/default/hooks/post_new.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env sh - -# The accounts to be cleaned -accounts="univ" - -filter() { - notmuch search --output=files --format=text0 $parameters and tag:unread| xargs -0 --no-run-if-empty mv -t "$XDG_DATA_HOME/mail/$account/$tag/new/" - notmuch search --output=files --format=text0 $parameters and not tag:unread| xargs -0 --no-run-if-empty mv -t "$XDG_DATA_HOME/mail/$account/$tag/cur/" -} - -for account in $accounts -do - notmuch tag --input $XDG_CONFIG_HOME/notmuch/tags/$account - tags_location="$XDG_CONFIG_HOME/notmuch/tags/$account" - tags="$(grep "+" "$tags_location" | sed -e 's/^.//' -e 's/ .*//')" - for tag in $tags - do - case $tag in - "+univ") ;; - *) parameters="folder:$account/INBOX and tag:$tag" && filter;; - esac - done -done diff --git a/.config/notmuch/tags/univ b/.config/notmuch/tags/univ deleted file mode 100644 index b6d7884..0000000 --- a/.config/notmuch/tags/univ +++ /dev/null @@ -1,18 +0,0 @@ -# vim: filetype=none - -# !filters will be applied top to bottom - -# mailbox -#+univ -- path:univ/ - -+teaching/X11I020 -inbox subject:x11i020 -+teaching/X11I040 -inbox subject:x11i040 - -+publications -inbox subject:[hal] -+forge -inbox from:gitlab@univ-nantes.fr - -+velo -inbox subject:[ls2n-velo] -+login -inbox from:login@univ-nantes.fr - -+admin -inbox from:virginie.dupont or from alexiane.brard or from emmanuelle.sale -+thesis -inbox from:benoit.delahaye or from:guillaume.cantin or from:gilles.ardourel