Merge branch 'dev' into thesis

fix @univ-nantes email adress
This commit is contained in:
David JULIEN 2022-10-18 11:09:07 +02:00
commit 638c80b269
5 changed files with 23 additions and 22 deletions

View File

@ -25,7 +25,7 @@ ExpireUnread no
# End Profile # End Profile
# University # University
IMAPStore david.julien@etu.univ-nantes.fr-remote IMAPStore david.julien@univ-nantes.fr-remote
Host imaps.etu.univ-nantes.fr Host imaps.etu.univ-nantes.fr
Port 993 Port 993
User E22D718J User E22D718J
@ -34,15 +34,15 @@ AuthMechs LOGIN
SSLType IMAPS SSLType IMAPS
CertificateFile /etc/ssl/certs/ca-certificates.crt CertificateFile /etc/ssl/certs/ca-certificates.crt
MaildirStore david.julien@etu.univ-nantes.fr-local MaildirStore david.julien@univ-nantes.fr-local
Subfolders Verbatim Subfolders Verbatim
Path /home/julien-d/.local/share/mail/david.julien@etu.univ-nantes.fr/ Path /home/julien-d/.local/share/mail/david.julien@univ-nantes.fr/
Inbox /home/julien-d/.local/share/mail/david.julien@etu.univ-nantes.fr/INBOX Inbox /home/julien-d/.local/share/mail/david.julien@univ-nantes.fr/INBOX
Channel david.julien@etu.univ-nantes.fr Channel david.julien@univ-nantes.fr
Expunge Both Expunge Both
Master :david.julien@etu.univ-nantes.fr-remote: Master :david.julien@univ-nantes.fr-remote:
Slave :david.julien@etu.univ-nantes.fr-local: Slave :david.julien@univ-nantes.fr-local:
Patterns * !"[Gmail]/All Mail" Patterns * !"[Gmail]/All Mail"
Create Both Create Both
SyncState * SyncState *

View File

@ -9,10 +9,10 @@ tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile /home/swytch/.config/msmtp/msmtp.log logfile /home/swytch/.config/msmtp/msmtp.log
account david.julien@etu.univ-nantes.fr account david.julien@univ-nantes.fr
host smtp.etu.univ-nantes.fr host smtp.etu.univ-nantes.fr
port 587 port 587
from david.julien@etu.univ-nantes.fr from david.julien@univ-nantes.fr
user E22D718J user E22D718J
passwordeval "pass univ-nantes.fr/E22D718J" passwordeval "pass univ-nantes.fr/E22D718J"
auth on auth on

View File

@ -1,16 +1,16 @@
# vim: filetype=neomuttrc # vim: filetype=neomuttrc
# muttrc file for account david.julien@etu.univ-nantes.fr # muttrc file for account david.julien@univ-nantes.fr
set realname = "David JULIEN" set realname = "David JULIEN"
set from = "david.julien@etu.univ-nantes.fr" set from = "david.julien@univ-nantes.fr"
set sendmail = "msmtp -a david.julien@etu.univ-nantes.fr" set sendmail = "msmtp -a david.julien@univ-nantes.fr"
alias me david.julien <david.julien@etu.univ-nantes.fr> alias me david.julien <david.julien@univ-nantes.fr>
set folder = "$XDG_DATA_HOME/mail/david.julien@etu.univ-nantes.fr" set folder = "$XDG_DATA_HOME/mail/david.julien@univ-nantes.fr"
set header_cache = "$XDG_CACHE_HOME/mutt/david.julien@etu.univ-nantes.fr/headers" set header_cache = "$XDG_CACHE_HOME/mutt/david.julien@univ-nantes.fr/headers"
set message_cachedir = "$XDG_CACHE_HOME/mutt/david.julien@etu.univ-nantes.fr/bodies" set message_cachedir = "$XDG_CACHE_HOME/mutt/david.julien@univ-nantes.fr/bodies"
set mbox_type = Maildir set mbox_type = Maildir
set crypt_autosign = yes set crypt_autosign = yes
set pgp_sign_as = "0x70F6BD57D3BD8027" set pgp_sign_as = "0x1DD6B2BA6DD78810"
bind index,pager gg noop bind index,pager gg noop
bind index,pager g noop bind index,pager g noop
@ -21,9 +21,9 @@ unmailboxes *
unalternates * unalternates *
set signature="$XDG_CONFIG_HOME/mutt/accounts/nantes.signature" set signature="$XDG_CONFIG_HOME/mutt/accounts/nantes.signature"
unmacro index o unmacro index o
macro index o "<shell-escape>mailsync<enter>" "run mbsync to sync david.julien@etu.univ-nantes.fr" macro index o "<shell-escape>mailsync<enter>" "run mbsync to sync david.julien@univ-nantes.fr"
mailboxes "=Sent" "=Drafts" "=Trash" "=INBOX" "=thesis" mailboxes "=Sent" "=Drafts" "=Trash" "=INBOX" "=thesis" "=admin" "=login"
set record = "+Sent" set record = "+Sent"
macro index,pager gs "<change-folder>=Sent<enter>" "go to 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 Ms ";<save-message>=Sent<enter>" "move mail to sent"

View File

@ -2,5 +2,5 @@
source $XDG_CONFIG_HOME/mutt/neomutt.muttrc source $XDG_CONFIG_HOME/mutt/neomutt.muttrc
macro index,pager ip '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/mutt/accounts/1-david.julien@posteo.net.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@posteo.net" macro index,pager ip '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/mutt/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/mutt/accounts/2-david.julien@ens-lyon.fr.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@ens-lyon.fr" macro index,pager is '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/mutt/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/mutt/accounts/2-david.julien@etu.univ-nantes.fr.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@etu.univ-nantes.fr" macro index,pager in '<sync-mailbox><enter-command>source $XDG_CONFIG_HOME/mutt/accounts/2-david.julien@univ-nantes.fr.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@univ-nantes.fr"
source $XDG_CONFIG_HOME/mutt/accounts/2-david.julien@etu.univ-nantes.fr.muttrc source $XDG_CONFIG_HOME/mutt/accounts/2-david.julien@univ-nantes.fr.muttrc

View File

@ -15,8 +15,9 @@ for acc in $(ls "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/)
do do
new="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/$acc/*/new/ -type f | grep -iv "trash" | wc -l 2>/dev/null)" new="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/$acc/*/new/ -type f | grep -iv "trash" | wc -l 2>/dev/null)"
if [ $new -gt 0 ]; then if [ $new -gt 0 ]; then
box=""
[ -n "$(echo "$acc" | sed -n '/@centrale/p')" ] && box="" [ -n "$(echo "$acc" | sed -n '/@centrale/p')" ] && box=""
[ -n "$(echo "$acc" | sed -n '/@etu/p')" ] && box="" [ -n "$(echo "$acc" | sed -n '/@univ/p')" ] && box=""
[ -n "$(echo "$acc" | sed -n '/@mailo/p')" ] && box="" [ -n "$(echo "$acc" | sed -n '/@mailo/p')" ] && box=""
[ -n "$(echo "$acc" | sed -n '/@posteo/p')" ] && box="" [ -n "$(echo "$acc" | sed -n '/@posteo/p')" ] && box=""
unread="$unread/$box$new" unread="$unread/$box$new"