Merge branch 'dev' into venus

mail: remove personnal config from public repo
This commit is contained in:
David JULIEN 2023-01-07 20:17:24 +01:00
commit e55401bda5
Signed by: swytch
GPG Key ID: 498590A3AA82A06F
17 changed files with 38 additions and 407 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 <david.julien@posteo.net>
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 "<shell-escape>mailsync<enter>" "run mbsync to sync david.julien@posteo.net"
mailboxes "=Sent" "=Drafts" "=Trash" "=INBOX" "=Receipts"
set record = "+Sent"
macro index,pager gs "<change-folder>=Sent<enter>" "go to sent"
macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent"
set postponed = "+Drafts"
macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts"
macro index,pager Md ";<save-message>=Drafts<enter>" "move mail to drafts"
macro index,pager Cd ";<copy-message>=Drafts<enter>" "copy mail to drafts"
macro index,pager gt "<change-folder>=Trash<enter>" "go to trash"
macro index,pager Mt ";<save-message>=Trash<enter>" "move mail to trash"
macro index,pager Ct ";<copy-message>=Trash<enter>" "copy mail to trash"
macro index,pager gr "<change-folder>=Receipts<enter>" "go to receipts"
macro index,pager Mr ";<save-message>=Receipts<enter>" "move mail to receipts"
macro index,pager Cr ";<copy-message>=Receipts<enter>" "copy mail to receipts"
set trash = "+Trash"
macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox"
macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox"
macro index,pager Ci ";<copy-message>=INBOX<enter>" "copy mail to inbox"
set spoolfile = "+INBOX"

View File

@ -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 <david.julien@ens-lyon.fr>
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 "<shell-escape>mailsync<enter>" "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 "<change-folder>=Sent<enter>" "go to sent"
macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent"
set postponed = "+Drafts"
macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts"
macro index,pager Md ";<save-message>=Drafts<enter>" "move mail to drafts"
macro index,pager Cd ";<copy-message>=Drafts<enter>" "copy mail to drafts"
macro index,pager gt "<change-folder>=Trash<enter>" "go to trash"
macro index,pager Mt ";<save-message>=Trash<enter>" "move mail to trash"
macro index,pager Ct ";<copy-message>=Trash<enter>" "copy mail to trash"
set trash = "+Trash"
macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox"
macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox"
macro index,pager Ci ";<copy-message>=INBOX<enter>" "copy mail to inbox"
set spoolfile = "+INBOX"
macro index,pager gf "<change-folder>=fanfare<enter>" "go to fanfare"
macro index,pager Mf ";<save-message>=fanfare<enter>" "move mail to fanfare"
macro index,pager Cf ";<copy-message>=fanfare<enter>" "copy mail to fanfare"
macro index,pager gI "<change-folder>=internship<enter>" "go to internship"
macro index,pager MI ";<save-message>=internship<enter>" "move mail to internship"
macro index,pager CI ";<copy-message>=internship<enter>" "copy mail to internship"
macro index,pager gm "<change-folder>=MOVEP<enter>" "go to MOVEP"
macro index,pager Mm ";<save-message>=MOVEP<enter>" "move mail to MOVEP"
macro index,pager Cm ";<copy-message>=MOVEP<enter>" "copy mail to MOVEP"
macro index,pager gq "<change-folder>=QEST<enter>" "go to QEST"
macro index,pager Mq ";<save-message>=QEST<enter>" "move mail to QEST"
macro index,pager Cq ";<copy-message>=QEST<enter>" "copy mail to QEST"

View File

@ -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 <david.julien@univ-nantes.fr>
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 "<shell-escape>mailsync<enter>" "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 "<change-folder>=Sent<enter>" "go to sent"
macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent"
set postponed = "+Drafts"
macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts"
macro index,pager Md ";<save-message>=Drafts<enter>" "move mail to drafts"
macro index,pager Cd ";<copy-message>=Drafts<enter>" "copy mail to drafts"
macro index,pager gt "<change-folder>=Trash<enter>" "go to trash"
macro index,pager Mt ";<save-message>=Trash<enter>" "move mail to trash"
macro index,pager Ct ";<copy-message>=Trash<enter>" "copy mail to trash"
set trash = "+Trash"
macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox"
macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox"
macro index,pager Ci ";<copy-message>=INBOX<enter>" "copy mail to inbox"
set spoolfile = "+INBOX"
macro index,pager gT "<change-folder>=thesis<enter>" "go to thesis"
macro index,pager MT ";<save-message>=thesis<enter>" "move mail to thesis"
macro index,pager CT ";<copy-message>=thesis<enter>" "copy mail to thesis"
macro index,pager gf "<change-folder>=forge<enter>" "go to forge"
macro index,pager Mf ";<save-message>=forge<enter>" "move mail to forge"
macro index,pager Cf ";<copy-message>=forge<enter>" "copy mail to forge"
macro index,pager gv "<change-folder>=velo<enter>" "go to velo"
macro index,pager Mv ";<save-message>=velo<enter>" "move mail to velo"
macro index,pager Cv ";<copy-message>=velo<enter>" "copy mail to velo"
macro index,pager ga "<change-folder>=admin<enter>" "go to admin"
macro index,pager Ma ";<save-message>=admin<enter>" "move mail to admin"
macro index,pager Ca ";<copy-message>=admin<enter>" "copy mail to admin"
macro index,pager gl "<change-folder>=login<enter>" "go to login"
macro index,pager Ml ";<save-message>=login<enter>" "move mail to login"
macro index,pager Cl ";<copy-message>=login<enter>" "copy mail to login"
macro index,pager gp "<change-folder>=publications<enter>" "go to publications"
macro index,pager Mp ";<save-message>=publications<enter>" "move mail to publications"
macro index,pager Cp ";<copy-message>=publications<enter>" "copy mail to publications"
macro index,pager gc2 "<change-folder>=teaching/X11I020<enter>" "go to teaching/X11I020"
macro index,pager Mc2 ";<save-message>=teaching/X11I020<enter>" "move mail to teaching/X11I020"
macro index,pager Cc2 ";<copy-message>=teaching/X11I020<enter>" "copy mail to teaching/X11I020"
macro index,pager gc4 "<change-folder>=teaching/X11I040<enter>" "go to teaching/X11I040"
macro index,pager Mc4 ";<save-message>=teaching/X11I040<enter>" "move mail to teaching/X11I040"
macro index,pager Cc4 ";<copy-message>=teaching/X11I040<enter>" "copy mail to teaching/X11I040"

View File

@ -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 <david.julien@mailo.com>
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 "<shell-escape>mailsync<enter>" "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 "<change-folder>=sent<enter>" "go to sent"
macro index,pager Ms ";<save-message>=sent<enter>" "move mail to sent"
macro index,pager Cs ";<copy-message>=sent<enter>" "copy mail to sent"
set postponed = "+draftbox"
macro index,pager gd "<change-folder>=draftbox<enter>" "go to drafts"
macro index,pager Md ";<save-message>=draftbox<enter>" "move mail to drafts"
macro index,pager Cd ";<copy-message>=draftbox<enter>" "copy mail to drafts"
macro index,pager gt "<change-folder>=trash<enter>" "go to trash"
macro index,pager Mt ";<save-message>=trash<enter>" "move mail to trash"
macro index,pager Ct ";<copy-message>=trash<enter>" "copy mail to trash"
set trash = "+trash"
macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox"
macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox"
macro index,pager Ci ";<copy-message>=INBOX<enter>" "copy mail to inbox"
set spoolfile = "+INBOX"
macro index,pager gf "<change-folder>=farigoule<enter>" "go to farigoule"
macro index,pager Mf ";<save-message>=farigoule<enter>" "move mail to farigoule"
macro index,pager Cf ";<copy-message>=farigoule<enter>" "copy mail to farigoule"
macro index,pager gp "<change-folder>=promo_fanfare<enter>" "go to promo_fanfare"
macro index,pager Mp ";<save-message>=promo_fanfare<enter>" "move mail to promo_fanfare"
macro index,pager Cp ";<copy-message>=promo_fanfare<enter>" "copy mail to promo_fanfare"
macro index,pager gm "<change-folder>=mediapart<enter>" "go to mediapart"
macro index,pager Mm ";<save-message>=mediapart<enter>" "move mail to mediapart"
macro index,pager Cm ";<copy-message>=mediapart<enter>" "copy mail to mediapart"
macro index,pager gg "<change-folder>=git<enter>" "go to git"
macro index,pager Mg ";<save-message>=git<enter>" "move mail to git"
macro index,pager Cg ";<copy-message>=git<enter>" "copy mail to git"
macro index,pager gh "<change-folder>=sosh<enter>" "go to sosh"
macro index,pager Mh ";<save-message>=sosh<enter>" "move mail to sosh"
macro index,pager Ch ";<copy-message>=sosh<enter>" "copy mail to sosh"

View File

@ -1,4 +0,0 @@
David JULIEN
M2 Informatique Fondamentale
ENS de Lyon

View File

@ -1,2 +0,0 @@
David JULIEN

View File

@ -1,7 +0,0 @@
David JULIEN
Doctorant au LS2N (Nantes)
Équipe VELO
Faculté de Sciences et Techniques
Bâtiment 11 - Bureau 221

View File

@ -1,2 +0,0 @@
David JULIEN

View File

@ -5,10 +5,7 @@ bind index,pager g noop
bind index \Cf noop
# Switching accounts
macro index,pager ip '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/neomutt/accounts/1-david.julien@posteo.net.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@posteo.net"
macro index,pager is '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/neomutt/accounts/2-david.julien@ens-lyon.fr.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@ens-lyon.fr"
macro index,pager in '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/neomutt/accounts/2-david.julien@univ-nantes.fr.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@univ-nantes.fr"
macro index,pager im '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/neomutt/accounts/3-david.julien@mailo.com.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@mailo.com"
macro index,pager i1 '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/neomutt/accounts/account_template.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to email@address.you"
# General rebindings
bind index j next-entry

View File

@ -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 '<sync-mailbox><enter-command>source
/home/swytch/.config/mutt/accounts/account_template.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@posteo.net"

View File

@ -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<enter><change-folder>!<enter>;<check-stats>' "switch to email@address.you

View File

@ -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

View File

@ -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