Replace UGR email with UGent

This commit is contained in:
coolneng 2021-09-22 00:12:17 +02:00
parent fff1a5ac2f
commit afc9449156
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
6 changed files with 53 additions and 47 deletions

View File

@ -1,13 +1,13 @@
{ {
"host": "correo.ugr.es", "host": "outlook.office365.com",
"port": 993, "port": 993,
"tls": true, "tls": true,
"tlsOptions": { "tlsOptions": {
"rejectUnauthorized": true "rejectUnauthorized": true
}, },
"username": "akasroua@correo.ugr.es", "username": "amin.kasrouaouam@ugent.be",
"passwordCmd": "pass mail/uni", "passwordCmd": "pass mail/ugent",
"onNewMail": "mbsync uni", "onNewMail": "mbsync ugent",
"onNewMailPost": "notmuch new", "onNewMailPost": "notmuch new",
"boxes": [ "boxes": [
"INBOX" "INBOX"

View File

@ -47,64 +47,69 @@ Expunge Both
SyncState * SyncState *
# Get all the channels together into a group.
Group gmail Group gmail
Channel sync-gmail-default Channel sync-gmail-default
Channel sync-gmail-sent Channel sync-gmail-sent
Channel sync-gmail-trash Channel sync-gmail-trash
Channel sync-gmail-junk Channel sync-gmail-junk
IMAPAccount uni IMAPAccount ugent
Host correo.ugr.es Host outlook.office365.com
User akasroua User amin.kasrouaouam@ugent.be
PassCmd "pass mail/uni" PassCmd "pass mail/ugent"
SSLType IMAPS SSLType IMAPS
CertificateFile /etc/ssl/certs/ca-certificates.crt CertificateFile /etc/ssl/certs/ca-certificates.crt
IMAPStore uni-remote IMAPStore ugent-remote
Account uni Account ugent
MaildirStore uni-local MaildirStore ugent-local
Subfolders Verbatim Subfolders Verbatim
# The trailing "/" is important # The trailing "/" is important
Path ~/.mail/uni/ Path ~/.mail/ugent/
Inbox ~/.mail/uni/INBOX/ Inbox ~/.mail/ugent/inbox/
Channel uni-default Channel ugent-default
Far :uni-remote: Far :ugent-remote:
Near :uni-local: Near :ugent-local:
Create Both Create Both
Expunge Both Expunge Both
SyncState * SyncState *
Channel uni-sent Channel ugent-sent
Far :uni-remote:"Sent" Far :ugent-remote:"Sent Items"
Near :uni-local:sent Near :ugent-local:sent
Create Both Create Both
Expunge Both Expunge Both
SyncState * SyncState *
Channel uni-trash Channel ugent-trash
Far :uni-remote:"Trash" Far :ugent-remote:"Deleted Items"
Near :uni-local:trash Near :ugent-local:trash
Create Both Create Both
Expunge Both Expunge Both
SyncState * SyncState *
Channel uni-archive Channel ugent-archive
Far :uni-remote:"BUZONdeEntradaUGR" Far :ugent-remote:"Archive"
Near :uni-local:archive Near :ugent-local:archive
Create Both Create Both
Expunge Both Expunge Both
SyncState * SyncState *
Channel ugent-junk
Far :ugent-remote:"Junk Email"
Near :ugent-local:junk
Create Both
Expunge Both
SyncState *
# Get all the channels together into a group. Group ugent
Group uni Channel ugent-default
Channel uni-default Channel ugent-sent
Channel uni-sent Channel ugent-trash
Channel uni-trash Channel ugent-archive
Channel uni-archive Channel ugent-junk

View File

@ -12,9 +12,9 @@ from akasroua@gmail.com
user akasroua@gmail.com user akasroua@gmail.com
passwordeval "pass mail/gmail" passwordeval "pass mail/gmail"
account uni account ugent
host correo.ugr.es host smtp.office365.com
port 587 port 587
from akasroua@correo.ugr.es from amin.kasrouaouam@ugent.be
user akasroua@correo.ugr.es user amin.kasrouaouam@ugent.be
passwordeval "pass mail/uni" passwordeval "pass mail/ugent"

View File

@ -1,9 +1,9 @@
# vim: filetype=neomuttrc # vim: filetype=neomuttrc
# muttrc file for account coolneng # muttrc file for account coolneng
set realname = "Amin Kasrou Aouam" set realname = "Amin Kasrou Aouam"
set from = "akasroua@correo.ugr.es" set from = "amin.kasrouaouam@ugent.be"
set sendmail = "~/.config/neomutt/etc/sendmail uni" set sendmail = "~/.config/neomutt/etc/sendmail ugent"
set folder = "~/.mail/uni" set folder = "~/.mail/ugent"
set mbox_type = Maildir set mbox_type = Maildir
set ssl_starttls = yes set ssl_starttls = yes
@ -13,12 +13,13 @@ bind index,pager gg noop
bind index,pager g noop bind index,pager g noop
bind index gg first-entry bind index gg first-entry
unmailboxes * unmailboxes *
mailboxes =INBOX =trash =sent =archive mailboxes =inbox =sent =trash =archive =junk
macro index,pager gi "<change-folder>=INBOX<enter>" "Go to inbox." macro index,pager gi "<change-folder>=inbox<enter>" "Go to inbox."
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 gt "<change-folder>=trash<enter>" "Go to trash." macro index,pager gt "<change-folder>=trash<enter>" "Go to trash."
macro index,pager ga "<change-folder>=archive<enter>" "Go to archive." macro index,pager ga "<change-folder>=archive<enter>" "Go to archive."
set spoolfile = "+INBOX" macro index,pager gj "<change-folder>=junk<enter>" "Go to junk."
set spoolfile = "+inbox"
set record = "+sent" set record = "+sent"
set postponed = "" set postponed = ""
set trash = "+trash" set trash = "+deleted"

View File

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
nix-shell -p python38 --command "python ~/.local/bin/MIMEmbellish | msmtp -a $1 -t" nix-shell -p python39 --command "python ~/.local/bin/MIMEmbellish | msmtp -a $1 -t"

View File

@ -1,4 +1,4 @@
macro index,pager i2 '<sync-mailbox><enter-command>source "/home/coolneng/.config/neomutt"/accounts/gmail.muttrc<enter><change-folder>!<enter>' macro index,pager i2 '<sync-mailbox><enter-command>source "/home/coolneng/.config/neomutt"/accounts/gmail.muttrc<enter><change-folder>!<enter>'
source /home/coolneng/.config/neomutt/accounts/gmail.muttrc source /home/coolneng/.config/neomutt/accounts/gmail.muttrc
macro index,pager i1 '<sync-mailbox><enter-command>source "/home/coolneng/.config/neomutt"/accounts/uni.muttrc<enter><change-folder>!<enter>' macro index,pager i1 '<sync-mailbox><enter-command>source "/home/coolneng/.config/neomutt"/accounts/ugent.muttrc<enter><change-folder>!<enter>'
source /home/coolneng/.config/neomutt/accounts/uni.muttrc source /home/coolneng/.config/neomutt/accounts/ugent.muttrc