From: Samir Benmendil Date: Sun, 17 Jan 2021 21:48:37 +0000 (+0000) Subject: email: remove gmail and office365 accounts X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/c605a147f08bc3d660bca9da5cd4884173554a5f?ds=sidebyside email: remove gmail and office365 accounts --- diff --git a/bin/office365-book b/bin/old/office365-book similarity index 100% rename from bin/office365-book rename to bin/old/office365-book diff --git a/mbsync/config b/mbsync/config index 566249c..bd74cf6 100644 --- a/mbsync/config +++ b/mbsync/config @@ -61,81 +61,6 @@ Channel mailfence/bin Channel mailfence/youtube Channel mailfence/archive -IMAPAccount gmail -Host imap.gmail.com -User samir.benmendil@gmail.com -PassCmd "sed -En '/imap.gmail.com.*samir.benmendil@gmail.com/ s/.*password (.*)/\\1/p' ~/.netrc" -AuthMechs LOGIN -SSLType IMAPS -SSLVersion SSLv3 -CertificateFile /etc/ssl/certs/ca-certificates.crt - -IMAPStore gmail-remote -Account gmail - -MaildirStore gmail-local -Path ~/mail/gmail/ -Inbox ~/mail/gmail/inbox/ -SubFolders Verbatim - -Channel gmail-default -Master :gmail-remote: -Slave :gmail-local: -Patterns "INBOX" - -Channel gmail-youtube -Master :gmail-remote: -Slave :gmail-local: -Patterns "youtube" - -Channel gmail-youtube-watch.later -Master :gmail-remote: -Slave :gmail-local: -Patterns "youtube-watch.later" - -Channel gmail-youtube-orig -Master :gmail-remote: -Slave :gmail-local: -Patterns "youtube-orig" - -Channel gmail-archive -Master :gmail-remote:"[Google Mail]/All Mail" -Slave :gmail-local:"archive" - -Channel gmail-drafts -Master :gmail-remote:"[Google Mail]/Drafts" -Slave :gmail-local:"drafts" - -Channel gmail-sent -Master :gmail-remote:"[Google Mail]/Sent Mail" -Slave :gmail-local:"sent" - -Channel gmail-spam -Master :gmail-remote:"[Google Mail]/Spam" -Slave :gmail-local:"spam" - -Channel gmail-flagged -Master :gmail-remote:"[Google Mail]/Starred" -Slave :gmail-local:"flagged" - -Channel gmail-bin -Master :gmail-remote:"[Google Mail]/Bin" -Slave :gmail-local:"bin" - -Group gmail -Channel gmail-default -Channel gmail-drafts -Channel gmail-sent -Channel gmail-spam -Channel gmail-flagged -Channel gmail-bin - -Group gmail-more -Channel gmail-youtube -Channel gmail-youtube-watch.later -Channel gmail-youtube-orig -Channel gmail-archive - IMAPAccount fpp Host imap.gmail.com User samir@fppnt.com diff --git a/msmtprc b/msmtprc index bbbba35..43a61f1 100644 --- a/msmtprc +++ b/msmtprc @@ -16,16 +16,6 @@ user samirbenmendil passwordeval "pass mailfence.com/smtp" from me@rmz.io -# gmail -account gmail -host smtp.gmail.com -port 587 -protocol smtp -auth on -user samir.benmendil@gmail.com -passwordeval "pass gmail.com/msmtp" -from samir.benmendil@gmail.com - # fpp account fpp host smtp.gmail.com @@ -36,14 +26,5 @@ user samir@fppnt.com # passwordeval "pass gmail.com/msmtp" from samir@fppnt.com -# office365 -account office365 -host smtp.office365.com -port 587 -protocol smtp -auth on -user samir.benmendil@ultrahaptics.com -passwordeval "pass ultrahaptics/okta.com/samir.benmendil@ultrahaptics.com" - #set default account account default : mailfence diff --git a/mutt/accounts/chakra b/mutt/accounts/chakra deleted file mode 100644 index caa05d4..0000000 --- a/mutt/accounts/chakra +++ /dev/null @@ -1,4 +0,0 @@ -# vim: ft=muttrc -source gmail -set realname = "Ram-Z" -set from = "ram-z@chakralinux.org" diff --git a/mutt/accounts/gmail b/mutt/accounts/gmail deleted file mode 100644 index 468347c..0000000 --- a/mutt/accounts/gmail +++ /dev/null @@ -1,26 +0,0 @@ -# vim: ft=muttrc -set realname = "Samir Benmendil" -set from = "samir.benmendil@gmail.com" -my_hdr Bcc: samir.benmendil@gmail.com -set sendmail = "msmtp -a gmail" - -set spoolfile = "+gmail/inbox" # set inbox -set postponed = "+gmail/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 "+gmail/inbox" -mailboxes "+gmail/sent" -mailboxes "+gmail/youtube" -mailboxes "+gmail/archive" -mailboxes "+gmail/drafts" -mailboxes "+gmail/spam" -mailboxes "+gmail/bin" - -macro index,pager gi "=gmail/inbox" "go to inbox" -macro index,pager gy "=gmail/youtube" "go to youtube" -macro index,pager ga "=gmail/archive" "go to archive" -macro index,pager gs "=gmail/spam" "go to spam" diff --git a/mutt/accounts/office365 b/mutt/accounts/office365 deleted file mode 100644 index 23ad796..0000000 --- a/mutt/accounts/office365 +++ /dev/null @@ -1,24 +0,0 @@ -# vim: ft=muttrc -set realname = "Samir Benmendil" -set from = "samir.benmendil@ultrahaptics.com" -my_hdr Bcc: samir.benmendil@ultrahaptics.com -set sendmail = "msmtp -a office365" - -set spoolfile = "+office365/inbox" # set inbox -set postponed = "+office365/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 - -# office365 -set query_command = "office365-book" - -mailboxes "+office365/inbox" -mailboxes "+office365/sent" -mailboxes "+office365/archive" -mailboxes "+office365/drafts" -mailboxes "+office365/spam" -mailboxes "+office365/bin" - -macro index,pager gi "=office365/inbox" "go to inbox" -macro index,pager ga "=office365/archive" "go to archive" -macro index,pager gs "=office365/spam" "go to spam" diff --git a/mutt/bindings b/mutt/bindings index 1815027..ec828d2 100644 --- a/mutt/bindings +++ b/mutt/bindings @@ -54,4 +54,3 @@ macro index,pager a "goobook add" "add the sender address 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/gmail!' diff --git a/mutt/hooks b/mutt/hooks index 8f084b6..be9b5a7 100644 --- a/mutt/hooks +++ b/mutt/hooks @@ -1,9 +1,6 @@ # vim: ft=muttrc folder-hook mailfence source $my_config_dir/accounts/mailfence -folder-hook gmail source $my_config_dir/accounts/gmail -folder-hook gmail/chakra source $my_config_dir/accounts/chakra - -folder-hook fpp source $my_config_dir/accounts/fpp +folder-hook fpp source $my_config_dir/accounts/fpp folder-hook .* "exec collapse-all" @@ -13,9 +10,9 @@ folder-hook inbox push '=(=U|=F)' folder-hook mailfence/inbox push '!~(~U|~F|~d<3m)=mailfence/archive' # limit youtube to Unread and Flagged mails -folder-hook gmail/youtube push '=(=U|=F)' +folder-hook mailfence/youtube push '=(=U|=F)' # delete other mails -folder-hook gmail/youtube push '!~(~U|~F)' +folder-hook mailfence/youtube push '!~(~U|~F)' # open video in mpv set my_pipe_decode=$pipe_decode