Add uliege account
This commit is contained in:
parent
6484767918
commit
8a637eb45a
@ -158,7 +158,7 @@ Expunge Slave
|
||||
Sync Pull
|
||||
#+END_SRC
|
||||
|
||||
** ULG Account
|
||||
** ULG Student Account
|
||||
#+BEGIN_SRC conf
|
||||
IMAPAccount ulg
|
||||
Host mail.ulg.ac.be
|
||||
@ -213,6 +213,61 @@ Expunge Slave
|
||||
Sync Pull
|
||||
#+END_SRC
|
||||
|
||||
** ULG Personal Account
|
||||
#+BEGIN_SRC conf
|
||||
IMAPAccount uliege
|
||||
Host mail.ulg.ac.be
|
||||
User tdehaeze@uliege.be
|
||||
PassCmd "pass email/tdehaeze@uliege.be"
|
||||
SSLType IMAPS
|
||||
AuthMechs LOGIN
|
||||
#+END_SRC
|
||||
|
||||
#+BEGIN_SRC conf
|
||||
IMAPStore uliege-remote
|
||||
Account uliege
|
||||
|
||||
MaildirStore uliege-local
|
||||
Path ~/.mail/uliege/
|
||||
Inbox ~/.mail/uliege/Inbox
|
||||
|
||||
Channel uliege-Home
|
||||
Master :uliege-remote:"Inbox"
|
||||
Slave :uliege-local:Inbox
|
||||
|
||||
Channel uliege-Drafts
|
||||
Master :uliege-remote:"Drafts"
|
||||
Slave :uliege-local:Drafts
|
||||
|
||||
Channel uliege-Archive
|
||||
Master :uliege-remote:"Archive"
|
||||
Slave :uliege-local:Archive
|
||||
|
||||
Channel uliege-Sent
|
||||
Master :uliege-remote:"Sent"
|
||||
Slave :uliege-local:Sent
|
||||
|
||||
Channel uliege-Trash
|
||||
Master :uliege-remote:"Trash"
|
||||
Slave :uliege-local:Trash
|
||||
#+END_SRC
|
||||
|
||||
#+BEGIN_SRC conf
|
||||
Channel uliege
|
||||
Master :uliege-remote:
|
||||
Slave :uliege-local:
|
||||
#+END_SRC
|
||||
|
||||
For doing a quick sync of just the INBOX with `mbsync uliege-download`.
|
||||
#+BEGIN_SRC conf
|
||||
Channel uliege-download
|
||||
Master :uliege-remote:"Inbox"
|
||||
Slave :uliege-local:Inbox
|
||||
Create Slave
|
||||
Expunge Slave
|
||||
Sync Pull
|
||||
#+END_SRC
|
||||
|
||||
* Send Mails - Msmtp
|
||||
:PROPERTIES:
|
||||
:header-args:conf: :tangle ~/.config/msmtp/config
|
||||
@ -230,7 +285,7 @@ https://marlam.de/msmtp/
|
||||
|
||||
** Gmail Account
|
||||
#+BEGIN_SRC conf
|
||||
account gmail
|
||||
account gmail
|
||||
host smtp.gmail.com
|
||||
port 587
|
||||
protocol smtp
|
||||
@ -241,7 +296,7 @@ https://marlam.de/msmtp/
|
||||
|
||||
** ESRF Account
|
||||
#+BEGIN_SRC conf
|
||||
account esrf
|
||||
account esrf
|
||||
host smtps.esrf.fr
|
||||
port 465
|
||||
protocol smtp
|
||||
@ -253,7 +308,7 @@ https://marlam.de/msmtp/
|
||||
|
||||
** ULG Account
|
||||
#+BEGIN_SRC conf
|
||||
account ulg
|
||||
account ulg
|
||||
host smtp.ulg.ac.be
|
||||
port 587
|
||||
protocol smtp
|
||||
@ -263,6 +318,18 @@ https://marlam.de/msmtp/
|
||||
passwordeval "pass email/thomas.dehaeze@doct.uliege.be"
|
||||
#+END_SRC
|
||||
|
||||
** ULIEGE Account
|
||||
#+BEGIN_SRC conf
|
||||
account uliege
|
||||
host smtp.ulg.ac.be
|
||||
port 587
|
||||
protocol smtp
|
||||
from tdehaeze@uliege.be
|
||||
user u231244
|
||||
tls_starttls on
|
||||
passwordeval "pass email/tdehaeze@uliege.be"
|
||||
#+END_SRC
|
||||
|
||||
** Default Account
|
||||
#+BEGIN_SRC conf
|
||||
account default : gmail
|
||||
@ -991,7 +1058,9 @@ https://unix.stackexchange.com/questions/20456/pretty-print-mails-from-mutt
|
||||
folder-hook gmail/* source ~/.config/neomutt/accounts/gmail
|
||||
folder-hook esrf/* source ~/.config/neomutt/accounts/esrf
|
||||
folder-hook ulg/* source ~/.config/neomutt/accounts/ulg
|
||||
folder-hook uliege/* source ~/.config/neomutt/accounts/uliege
|
||||
|
||||
macro index,pager gl "<change-folder>+uliege/Inbox<enter>" "go to inbox"
|
||||
macro index,pager gu "<change-folder>+ulg/Inbox<enter>" "go to inbox"
|
||||
macro index,pager ge "<change-folder>+esrf/Inbox<enter>" "go to inbox"
|
||||
macro index,pager gm "<change-folder>+gmail/Inbox<enter>" "go to inbox"
|
||||
@ -1023,7 +1092,7 @@ https://unix.stackexchange.com/questions/20456/pretty-print-mails-from-mutt
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/gmail.signature :comments none :padline no
|
||||
Thomas Dehaeze
|
||||
#+end_src
|
||||
This empty code block is used to add a new line after signatude
|
||||
This empty code block is used to add a new line after signature
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/gmail.signature :comments none :padline no
|
||||
#+end_src
|
||||
|
||||
@ -1053,7 +1122,7 @@ This empty code block is used to add a new line after signatude
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/esrf.signature :comments none :padline no
|
||||
Thomas Dehaeze
|
||||
#+end_src
|
||||
This empty code block is used to add a new line after signatude
|
||||
This empty code block is used to add a new line after signature
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/esrf.signature :comments none :padline no
|
||||
#+end_src
|
||||
|
||||
@ -1083,10 +1152,40 @@ This empty code block is used to add a new line after signatude
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/ulg.signature :comments none :padline no
|
||||
Thomas Dehaeze
|
||||
#+end_src
|
||||
This empty code block is used to add a new line after signatude
|
||||
This empty code block is used to add a new line after signature
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/ulg.signature :comments none :padline no
|
||||
#+end_src
|
||||
|
||||
*** ULIEGE
|
||||
**** Configuration
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/uliege :comments none
|
||||
set from = "tdehaeze@uliege.be"
|
||||
set sendmail = "msmtp -a uliege"
|
||||
|
||||
# Other special folders.
|
||||
set mbox = "+uliege/Archive"
|
||||
set record = "+uliege/Sent"
|
||||
set postponed = "+uliege/Drafts"
|
||||
|
||||
set signature = "~/.config/neomutt/accounts/uliege.signature"
|
||||
|
||||
macro index,pager d \
|
||||
"<save-message>+uliege/Archive<enter>" \
|
||||
"Move message to the Archive"
|
||||
|
||||
macro index,pager D \
|
||||
"<save-message>+uliege/Trash<enter>" \
|
||||
"Move message to the Trash"
|
||||
#+end_src
|
||||
|
||||
**** Signature
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/uliege.signature :comments none :padline no
|
||||
Thomas Dehaeze
|
||||
#+end_src
|
||||
This empty code block is used to add a new line after signature
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/uliege.signature :comments none :padline no
|
||||
#+end_src
|
||||
|
||||
** Basic Options
|
||||
#+BEGIN_SRC conf
|
||||
set wait_key = no # shut up, mutt
|
||||
@ -1272,6 +1371,12 @@ This empty code block is used to add a new line after signatude
|
||||
named-mailboxes " Drafts" =ulg/Drafts
|
||||
named-mailboxes " ﮊ Archive" =ulg/Archive
|
||||
named-mailboxes " Trash" =ulg/Trash
|
||||
named-mailboxes " ULIEGE" =empty/uliege
|
||||
named-mailboxes " Inbox" =uliege/Inbox
|
||||
named-mailboxes " Sent" =uliege/Sent
|
||||
named-mailboxes " Drafts" =uliege/Drafts
|
||||
named-mailboxes " ﮊ Archive" =uliege/Archive
|
||||
named-mailboxes " Trash" =uliege/Trash
|
||||
|
||||
set sendmail_wait = 0 # no please don't silently fail, email is important
|
||||
unset move
|
||||
|
@ -199,11 +199,12 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
|
||||
gmail_old="$(ls ~/.mail/gmail/Inbox/new | wc -l)"
|
||||
esrf_old="$(ls ~/.mail/esrf/Inbox/new | wc -l)"
|
||||
ulg_old="$(ls ~/.mail/ulg/Inbox/new | wc -l)"
|
||||
uliege_old="$(ls ~/.mail/uliege/Inbox/new | wc -l)"
|
||||
# =============================================================
|
||||
|
||||
# =============================================================
|
||||
# Retreive mails
|
||||
mbsync $opt_all $opt_verbose gmail-Home esrf-Home ulg-Home
|
||||
mbsync $opt_all $opt_verbose gmail-Home esrf-Home ulg-Home uliege-Home
|
||||
# =============================================================
|
||||
|
||||
# =============================================================
|
||||
@ -211,18 +212,19 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
|
||||
gmail_new="$(ls ~/.mail/gmail/Inbox/new | wc -l)"
|
||||
esrf_new="$(ls ~/.mail/esrf/Inbox/new | wc -l)"
|
||||
ulg_new="$(ls ~/.mail/ulg/Inbox/new | wc -l)"
|
||||
uliege_new="$(ls ~/.mail/uliege/Inbox/new | wc -l)"
|
||||
# =============================================================
|
||||
|
||||
# =============================================================
|
||||
# Total Number of new mails since last checking
|
||||
new="$(($gmail_new+$esrf_new+$ulg_new))"
|
||||
old="$(($gmail_old+$esrf_old+$ulg_old))"
|
||||
new="$(($gmail_new+$esrf_new+$ulg_new+$uliege_new))"
|
||||
old="$(($gmail_old+$esrf_old+$ulg_old+$uliege_old))"
|
||||
# =============================================================
|
||||
|
||||
# =============================================================
|
||||
# Notification
|
||||
if [ "$new" -gt 0 ]; then
|
||||
dunstify --replace=98465 'New mail' " $esrf_new $gmail_new $ulg_new"
|
||||
dunstify --replace=98465 'New mail' " $esrf_new $gmail_new $ulg_new $uliege_new"
|
||||
fi
|
||||
# =============================================================
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user