From: Samir Benmendil Date: Mon, 18 Jul 2022 09:19:38 +0000 (+0100) Subject: mail: setup wio email account + remove fpp X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/06d4d4e9d0ff5b63f197d514a314a41eeb5d65be mail: setup wio email account + remove fpp --- diff --git a/mbsync/config b/mbsync/config index 9977a39..16baaf2 100644 --- a/mbsync/config +++ b/mbsync/config @@ -61,56 +61,50 @@ Channel mailfence/bin Channel mailfence/youtube Channel mailfence/archive -IMAPAccount fpp -Host imap.gmail.com -User samir@fppnt.com -PassCmd "sed -En '/imap.gmail.com.*samir@fppnt.com/ s/.*password (.*)/\\1/p' ~/.netrc" +IMAPAccount wio +Host outlook.office365.com +User sbenmendil@witekio.com +PassCmd "sed -En '/outlook.*sbenmendil@witekio.com/ s/.*password (.*)/\\1/p' ~/.netrc" AuthMechs LOGIN SSLType IMAPS CertificateFile /etc/ssl/certs/ca-certificates.crt -IMAPStore fpp-remote -Account fpp +IMAPStore wio-remote +Account wio -MaildirStore fpp-local -Path ~/mail/fpp/ -Inbox ~/mail/fpp/inbox/ +MaildirStore wio-local +Path ~/mail/wio/ +Inbox ~/mail/wio/inbox/ SubFolders Verbatim -Channel fpp-default -Far :fpp-remote: -Near :fpp-local: -Patterns "INBOX" - -Channel fpp-archive -Far :fpp-remote:"[Gmail]/All Mail" -Near :fpp-local:"archive" - -Channel fpp-drafts -Far :fpp-remote:"[Gmail]/Drafts" -Near :fpp-local:"drafts" - -Channel fpp-sent -Far :fpp-remote:"[Gmail]/Sent Mail" -Near :fpp-local:"sent" - -Channel fpp-spam -Far :fpp-remote:"[Gmail]/Spam" -Near :fpp-local:"spam" - -Channel fpp-flagged -Far :fpp-remote:"[Gmail]/Starred" -Near :fpp-local:"flagged" - -Channel fpp-bin -Far :fpp-remote:"[Gmail]/Trash" -Near :fpp-local:"bin" - -Group fpp -Channel fpp-default -Channel fpp-archive -Channel fpp-drafts -Channel fpp-sent -Channel fpp-spam -Channel fpp-flagged -Channel fpp-bin +Channel wio/inbox +Far :wio-remote: +Near :wio-local: + +Channel wio/archive +Far :wio-remote:"Archive" +Near :wio-local:"archive" + +Channel wio/drafts +Far :wio-remote:"Drafts" +Near :wio-local:"drafts" + +Channel wio/sent +Far :wio-remote:"Sent Items" +Near :wio-local:"sent" + +Channel wio/spam +Far :wio-remote:"Junk Email" +Near :wio-local:"spam" + +Channel wio/bin +Far :wio-remote:"Deleted Items" +Near :wio-local:"bin" + +Group wio +Channel wio/inbox +Channel wio/archive +Channel wio/drafts +Channel wio/sent +Channel wio/spam +Channel wio/bin diff --git a/msmtprc b/msmtprc index 43a61f1..42f2d5b 100644 --- a/msmtprc +++ b/msmtprc @@ -16,15 +16,15 @@ user samirbenmendil passwordeval "pass mailfence.com/smtp" from me@rmz.io -# fpp -account fpp -host smtp.gmail.com +# witekio +account wio +host smtp.office365.com port 587 protocol smtp auth on -user samir@fppnt.com +user sbenmendil@witekio.com # passwordeval "pass gmail.com/msmtp" -from samir@fppnt.com +from sbenmendil@witekio.com #set default account account default : mailfence diff --git a/mutt/accounts/fpp b/mutt/accounts/fpp deleted file mode 100644 index d1b1114..0000000 --- a/mutt/accounts/fpp +++ /dev/null @@ -1,24 +0,0 @@ -# vim: ft=muttrc -set realname = "Samir Benmendil" -set from = "samir@fppnt.com" -my_hdr Bcc: samir@fppnt.com -set sendmail = "msmtp -a fpp" - -set spoolfile = "+fpp/inbox" # set inbox -set postponed = "+fpp/drafts" # drafts folder -unset record # do not move sent msgs to a folder, gmail does that -unset move # do not move read msgs, gmail does that - -# goobook -set query_command = "goobook query '%s'" - -mailboxes "+fpp/inbox" -mailboxes "+fpp/sent" -mailboxes "+fpp/archive" -mailboxes "+fpp/drafts" -mailboxes "+fpp/spam" -mailboxes "+fpp/bin" - -macro index,pager gi "=fpp/inbox" "go to inbox" -macro index,pager ga "=fpp/archive" "go to archive" -macro index,pager gs "=fpp/spam" "go to spam" diff --git a/mutt/accounts/wio b/mutt/accounts/wio new file mode 100644 index 0000000..3acfef2 --- /dev/null +++ b/mutt/accounts/wio @@ -0,0 +1,24 @@ +# vim: ft=muttrc +set realname = "Samir Benmendil" +set from = "sbenmendil@witekio.com" +my_hdr Bcc: sbenmendil@witekio.com +set sendmail = "msmtp -a wio" + +set spoolfile = "+wio/inbox" # set inbox +set postponed = "+wio/drafts" # drafts folder +unset record # do not move sent msgs to a folder, gmail does that +unset move # do not move read msgs, gmail does that + +# goobook +set query_command = "goobook query '%s'" + +mailboxes "+wio/inbox" +mailboxes "+wio/sent" +mailboxes "+wio/archive" +mailboxes "+wio/drafts" +mailboxes "+wio/spam" +mailboxes "+wio/bin" + +macro index,pager gi "=wio/inbox" "go to inbox" +macro index,pager ga "=wio/archive" "go to archive" +macro index,pager gs "=wio/spam" "go to spam" diff --git a/mutt/bindings b/mutt/bindings index 469977b..d71621c 100644 --- a/mutt/bindings +++ b/mutt/bindings @@ -50,4 +50,4 @@ bind index collapse-thread bind attach view-mailcap macro index,pager 'source $my_config_dir/accounts/mailfence!' -macro index,pager 'source $my_config_dir/accounts/fpp!' +macro index,pager 'source $my_config_dir/accounts/wio!' diff --git a/mutt/hooks b/mutt/hooks index a54f8be..eae5df6 100644 --- a/mutt/hooks +++ b/mutt/hooks @@ -1,12 +1,14 @@ # vim: ft=muttrc folder-hook =mailfence source $my_config_dir/accounts/mailfence folder-hook =fpp source $my_config_dir/accounts/fpp +folder-hook =wio source $my_config_dir/accounts/wio # fetch mail # by default sync all channels folder-hook .* setenv MBSYNC_CHANNEL -a folder-hook =mailfence/inbox$ setenv MBSYNC_CHANNEL mailfence/inbox folder-hook =mailfence/spam$ setenv MBSYNC_CHANNEL mailfence/spam +folder-hook =wio/inbox$ setenv MBSYNC_CHANNEL wio/inbox macro index \Cl "\ mbsync -c $XDG_CONFIG_HOME/mbsync/config $MBSYNC_CHANNEL\ " \