[mail] feat: add @univ-nantes to replace @ens-lyon

This commit is contained in:
David JULIEN 2022-10-17 10:39:28 +02:00
parent 48b48db3b7
commit 5bc787c7ea
3 changed files with 57 additions and 16 deletions

View File

@ -24,26 +24,25 @@ MaxMessages 0
ExpireUnread no
# End Profile
# University
IMAPStore david.julien@ens-lyon.fr-remote
Host imaps.ens-lyon.fr
IMAPStore david.julien@etu.univ-nantes.fr-remote
Host imaps.etu.univ-nantes.fr
Port 993
User djulien
PassCmd "pass ens-lyon.fr/djulien"
User E22D718J
PassCmd "pass univ-nantes.fr/E22D718J"
AuthMechs LOGIN
SSLType IMAPS
CertificateFile /etc/ssl/certs/ca-certificates.crt
MaildirStore david.julien@ens-lyon.fr-local
MaildirStore david.julien@etu.univ-nantes.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
Path /home/swytch/.local/share/mail/david.julien@etu.univ-nantes.fr/
Inbox /home/swytch/.local/share/mail/david.julien@etu.univ-nantes.fr/INBOX
Channel david.julien@ens-lyon.fr
Channel david.julien@etu.univ-nantes.fr
Expunge Both
Far :david.julien@ens-lyon.fr-remote:
Near :david.julien@ens-lyon.fr-local:
Far :david.julien@etu.univ-nantes.fr-remote:
Near :david.julien@etu.univ-nantes.fr-local:
Patterns * !"[Gmail]/All Mail"
Create Both
SyncState *

View File

@ -9,12 +9,12 @@ 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
account david.julien@etu.univ-nantes.fr
host smtp.etu.univ-nantes.fr
port 587
from david.julien@ens-lyon.fr
user djulien
passwordeval "pass ens-lyon.fr/djulien"
from david.julien@etu.univ-nantes.fr
user E22D718J
passwordeval "pass univ-nantes.fr/E22D718J"
auth on
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt

View File

@ -0,0 +1,42 @@
# vim: filetype=neomuttrc
# muttrc file for account david.julien@etu.univ-nantes.fr
set realname = "David JULIEN"
set from = "david.julien@etu.univ-nantes.fr"
set sendmail = "msmtp -a david.julien@etu.univ-nantes.fr"
alias me david.julien <david.julien@etu.univ-nantes.fr>
set folder = "$XDG_DATA_HOME/mail/david.julien@etu.univ-nantes.fr"
set header_cache = "$XDG_CACHE_HOME/mutt/david.julien@etu.univ-nantes.fr/headers"
set message_cachedir = "$XDG_CACHE_HOME/mutt/david.julien@etu.univ-nantes.fr/bodies"
set mbox_type = Maildir
set crypt_autosign = yes
set pgp_sign_as = "0x70F6BD57D3BD8027"
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/mutt/accounts/nantes.signature"
unmacro index o
macro index o "<shell-escape>mailsync<enter>" "run mbsync to sync david.julien@etu.univ-nantes.fr"
mailboxes "=Sent" "=Drafts" "=Trash" "=INBOX" "=thesis"
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"