Update mu4e configuration
- Added ProtonMail account - Added iCloud Mail account - Remove Gmail account
This commit is contained in:
@@ -27,7 +27,7 @@ This repository contains my configuration files for the following tools:
|
|||||||
- `alacritty`
|
- `alacritty`
|
||||||
- `tmux`
|
- `tmux`
|
||||||
- **Editors & CLI Tools**
|
- **Editors & CLI Tools**
|
||||||
- `emacs` (Doom Emacs config)
|
- `doom` (Doom Emacs config)
|
||||||
- `emacs` (Custom config)
|
- `emacs` (Custom config)
|
||||||
- `git`
|
- `git`
|
||||||
- **X11 Environment**
|
- **X11 Environment**
|
||||||
|
|||||||
@@ -81,6 +81,7 @@
|
|||||||
(add-to-list 'default-frame-alist '(fullscreen . maximized))
|
(add-to-list 'default-frame-alist '(fullscreen . maximized))
|
||||||
|
|
||||||
(after! mu4e
|
(after! mu4e
|
||||||
|
|
||||||
;; This is set to 't' to avoid mail syncing issues when using mbsync
|
;; This is set to 't' to avoid mail syncing issues when using mbsync
|
||||||
(setq mu4e-change-filenames-when-moving t)
|
(setq mu4e-change-filenames-when-moving t)
|
||||||
|
|
||||||
@@ -89,20 +90,45 @@
|
|||||||
(setq mu4e-get-mail-command "~/.config/doom/scripts/email_sync.sh")
|
(setq mu4e-get-mail-command "~/.config/doom/scripts/email_sync.sh")
|
||||||
(setq mu4e-maildir "~/Maildir")
|
(setq mu4e-maildir "~/Maildir")
|
||||||
|
|
||||||
(setq mu4e-drafts-folder "/GmailAccount/[Gmail]/Bozze")
|
;; Configure email accounts
|
||||||
(setq mu4e-sent-folder "/GmailAccount/[Gmail]/Posta inviata")
|
(setq mu4e-contexts
|
||||||
(setq mu4e-refile-folder "/GmailAccount/[Gmail]/Tutti i messaggi")
|
(list
|
||||||
(setq mu4e-trash-folder "/GmailAccount/[Gmail]/Cestino")
|
;; Protonmail Account
|
||||||
(setq user-email-address "fabio.scottodisantolo@gmail.com")
|
(make-mu4e-context
|
||||||
(setq user-full-name "Fabio Scotto di Santolo")
|
:name "Protonmail"
|
||||||
|
:match-func
|
||||||
|
(lambda (msg)
|
||||||
|
(when msg
|
||||||
|
(string-prefix-p "/ProtonMailAccount" (mu4e-message-field msg :maildir))))
|
||||||
|
:vars '((user-mail-address . "fscottodisantolo@protonmail.com")
|
||||||
|
(user-full-name . "Fabio Scotto di Santolo")
|
||||||
|
(mu4e-drafts-folder . "/ProtonMailAccount/Drafts")
|
||||||
|
(mu4e-sent-folder . "/ProtonMailAccount/Sent")
|
||||||
|
(mu4e-refile-folder . "/ProtonMailAccount/All Mail")
|
||||||
|
(mu4e-trash-folder . "/ProtonMailAccount/Trash")))
|
||||||
|
|
||||||
(setq mu4e-maildir-shortcuts
|
;; iCloud Account
|
||||||
'(("/GmailAccount/Inbox" . ?i)
|
(make-mu4e-context
|
||||||
("/GmailAccount/[Gmail]/Posta inviata" . ?s)
|
:name "iCloud Mail"
|
||||||
("/GmailAccount/[Gmail]/Cestino" . ?t)
|
:match-func
|
||||||
("/GmailAccount/[Gmail]/Bozze" . ?d)
|
(lambda (msg)
|
||||||
("/GmailAccount/[Gmail]/Tutti i messaggi" . ?a)))
|
(when msg
|
||||||
|
(string-prefix-p "/iCloudAccount" (mu4e-message-field msg :maildir))))
|
||||||
|
:vars '((user-mail-address . "fscottodisantolo@icloud.com")
|
||||||
|
(user-full-name . "Fabio Scotto di Santolo")
|
||||||
|
(mu4e-drafts-folder . "/iCloudAccount/Drafts")
|
||||||
|
(mu4e-sent-folder . "/iCloudAccount/Sent Messages")
|
||||||
|
(mu4e-refile-folder . "/iCloudAccount/INBOX")
|
||||||
|
(mu4e-trash-folder . "/iCloudAccount/Junk")))))
|
||||||
|
|
||||||
|
;; (setq mu4e-maildir-shortcuts
|
||||||
|
;; '(("/Inbox" . ?i)
|
||||||
|
;; ("/ProtonMailAccount/Sent" . ?s)
|
||||||
|
;; ("/ProtonMailAccount/Trash" . ?t)
|
||||||
|
;; ("/ProtonMailAccount/Drafts" . ?d)
|
||||||
|
;; ("/ProtonMailAccount/All Mail" . ?a)))
|
||||||
|
|
||||||
|
;; Configure SMTP client for send emails
|
||||||
(setq sendmail-program "/usr/bin/msmtp"
|
(setq sendmail-program "/usr/bin/msmtp"
|
||||||
send-mail-function 'sendmail-send-it
|
send-mail-function 'sendmail-send-it
|
||||||
message-sendmail-f-is-evil t
|
message-sendmail-f-is-evil t
|
||||||
@@ -117,10 +143,18 @@
|
|||||||
(setq elfeed-sort-order 'descending)
|
(setq elfeed-sort-order 'descending)
|
||||||
(setq elfeed-search-filter "1-week-ago +unread")
|
(setq elfeed-search-filter "1-week-ago +unread")
|
||||||
|
|
||||||
;; ;; Key bindings
|
;; Key bindings
|
||||||
;; (map! :map elfeed-search-mode-map
|
(map! :map elfeed-search-mode-map
|
||||||
;; :n "d" #'elfeed-download-current-entry
|
:n "d" #'elfeed-download-current-entry
|
||||||
;; :n "O" #'elfeed-search-browse-url)
|
:n "O" #'elfeed-search-browse-url)
|
||||||
|
|
||||||
;; Update hourly
|
;; Update hourly
|
||||||
(run-at-time nil (* 60 60) #'elfeed-update))
|
(run-at-time nil (* 60 60) #'elfeed-update))
|
||||||
|
|
||||||
|
;; PDF config
|
||||||
|
(after! pdf-tools
|
||||||
|
:defer t
|
||||||
|
:commands (pdf-loader-install)
|
||||||
|
:mode "\\.pdf\\'"
|
||||||
|
:init (pdf-loader-install)
|
||||||
|
:config (add-to-list 'revert-without-query ".pdf"))
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
mbsync Gmail & pid1=$!
|
mbsync -a & pid1=$!
|
||||||
wait $pid1
|
wait $pid1
|
||||||
|
|
||||||
mu index
|
mu index
|
||||||
|
|||||||
@@ -1,20 +1,46 @@
|
|||||||
IMAPStore Gmail-remote
|
##################### iCloud Account ##################################
|
||||||
Host imap.gmail.com
|
IMAPStore iCloud-remote
|
||||||
|
Host imap.mail.me.com
|
||||||
Port 993
|
Port 993
|
||||||
User fabio.scottodisantolo@gmail.com
|
User fscottodisantolo@icloud.com
|
||||||
PassCmd "gpg -q -d /home/fscotto/.cache/gmail1.gpg"
|
PassCmd "pass show icloud-mail"
|
||||||
|
AuthMechs *
|
||||||
SSLType IMAPS
|
SSLType IMAPS
|
||||||
SSLVersions TLSv1.2 TLSv1.3
|
SSLVersions TLSv1.2 TLSv1.3
|
||||||
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
PipelineDepth 1
|
||||||
|
|
||||||
MaildirStore Gmail-local
|
MaildirStore iCloud-local
|
||||||
Path ~/Maildir/GmailAccount/
|
Path ~/Maildir/iCloudAccount/
|
||||||
Inbox ~/Maildir/GmailAccount/Inbox
|
Inbox ~/Maildir/iCloudAccount/INBOX
|
||||||
SubFolders Verbatim
|
SubFolders Verbatim
|
||||||
|
|
||||||
Channel Gmail
|
Channel iCloud
|
||||||
Far :Gmail-remote:
|
Far :iCloud-remote:
|
||||||
Near :Gmail-local:
|
Near :iCloud-local:
|
||||||
|
Patterns *
|
||||||
|
Create Both
|
||||||
|
Expunge Both
|
||||||
|
SyncState *
|
||||||
|
|
||||||
|
##################### Protonmail Account ##################################
|
||||||
|
IMAPStore protonmail-remote
|
||||||
|
Host 127.0.0.1
|
||||||
|
Port 1143
|
||||||
|
User fscottodisantolo@protonmail.com
|
||||||
|
PassCmd "pass show protonmail-bridge"
|
||||||
|
AuthMechs *
|
||||||
|
SSLType STARTTLS
|
||||||
|
PipelineDepth 1
|
||||||
|
CertificateFile ~/.config/protonmail/bridge-v3/cert.pem
|
||||||
|
|
||||||
|
MaildirStore protonmail-local
|
||||||
|
Path ~/Maildir/ProtonMailAccount/
|
||||||
|
Inbox ~/Maildir/ProtonMailAccount/INBOX
|
||||||
|
SubFolders Verbatim
|
||||||
|
|
||||||
|
Channel Protonmail
|
||||||
|
Far :protonmail-remote:
|
||||||
|
Near :protonmail-local:
|
||||||
Patterns *
|
Patterns *
|
||||||
Create Both
|
Create Both
|
||||||
Expunge Both
|
Expunge Both
|
||||||
|
|||||||
@@ -9,22 +9,39 @@ tls on
|
|||||||
tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
||||||
logfile ~/.config/msmtp/msmtp.log
|
logfile ~/.config/msmtp/msmtp.log
|
||||||
|
|
||||||
# Account Gmail
|
# Account iCloud
|
||||||
account gmail
|
account icloud
|
||||||
|
|
||||||
# Host name of the SMTP server
|
# Host name of the SMTP server
|
||||||
host smtp.gmail.com
|
host smtp.mail.me.com
|
||||||
|
|
||||||
# Use the mail submission port 587 instead of the SMTP port 25.
|
# Use the mail submission port 587 instead of the SMTP port 25
|
||||||
port 587
|
port 587
|
||||||
|
|
||||||
# Envelop-from address
|
# Envelop-from address
|
||||||
from fabio.scottodisantolo@gmail.com
|
from fscottodisantolo@icloud.com
|
||||||
|
|
||||||
# Authentication. The password is given using one of five methods
|
# Authentication. The password is given using one of five methods
|
||||||
auth on
|
auth on
|
||||||
user fabio.scottodisantolo@gmail.com
|
user fscottodisantolo@icloud.com
|
||||||
passwordeval "gpg -q -d /home/fscotto/.cache/gmail1.gpg"
|
passwordeval "pass show icloud-mail"
|
||||||
|
|
||||||
|
# Account Protonmail
|
||||||
|
account protonmail
|
||||||
|
|
||||||
|
# Hostname of the Protonmail bridge
|
||||||
|
host 127.0.0.1
|
||||||
|
|
||||||
|
# Port of the Protonmail bridge
|
||||||
|
port 1025
|
||||||
|
|
||||||
|
# Envelop-from address
|
||||||
|
from fscottodisantolo@protonmail.com
|
||||||
|
|
||||||
|
# Authentication
|
||||||
|
auth on
|
||||||
|
user fscottodisantolo@protonmail.com
|
||||||
|
passwordeval "pass show protonmail-bridge"
|
||||||
|
|
||||||
# Set a default account
|
# Set a default account
|
||||||
account default : gmail
|
account default : icloud
|
||||||
|
|||||||
Reference in New Issue
Block a user