From: Frederik Vanrenterghem Date: Fri, 20 Oct 2023 07:59:45 +0000 (+0800) Subject: Read email using mu4e. X-Git-Url: http://git.vanrenterghem.biz/Dotty.git/commitdiff_plain/b9e948df216e4ecc75f4c56e5648326815926b50?ds=sidebyside Read email using mu4e. --- diff --git a/emacs/.emacs b/emacs/.emacs index 3f9f492..dc80310 100644 --- a/emacs/.emacs +++ b/emacs/.emacs @@ -104,4 +104,15 @@ )) (elfeed-protocol-enable) (define-key elfeed-search-mode-map (kbd "*") (lambda () (interactive) (apply 'elfeed-search-toggle-all '(star)))) -(define-key elfeed-show-mode-map (kbd "*") (lambda () (interactive) (apply 'elfeed-show-tag '(star)))) \ No newline at end of file +(define-key elfeed-show-mode-map (kbd "*") (lambda () (interactive) (apply 'elfeed-show-tag '(star)))) + +;; Read email using mu4e +(require 'mu4e) +(setq mail-user-agent 'mu4e-user-agent) +(setq mu4e-get-mail-command "mbsync io") +(setq mu4e-use-fancy-chars t) +(setq mu4e-view-show-images t) +(setq mu4e-sent-folder "/Sent" + mu4e-drafts-folder "/Drafts" + mu4e-trash-folder "/Trash") + \ No newline at end of file diff --git a/isync/.mbsyncrc b/isync/.mbsyncrc index 2ee438c..aaf3142 100644 --- a/isync/.mbsyncrc +++ b/isync/.mbsyncrc @@ -1,7 +1,7 @@ IMAPAccount io Host mail.vanrenterghem.io User frederik@vanrenterghem.io -PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/Documents/paswoorden/frederik@vanrenterghem.io.asc" +PassCmd "pass mail.vanrenterghem.io/frederik@vanrenterghem.io" SSLType IMAPS CertificateFile /etc/ssl/certs/ca-certificates.crt @@ -9,76 +9,16 @@ IMAPStore io-remote Account io MaildirStore io-local -Path ~/.mail/io/ -Inbox ~/.mail/io/Inbox - -Channel io-default -Master :io-remote: -Slave :io-local:Inbox - -Channel io-sent -Master :io-remote:"Sent" -slave :io-local:sent - -Channel io-trash -Master :io-remote:"Trash" -slave :io-local:trash - -Channel io-archive -Master :io-remote:"Archive" -slave :io-local:archive - -Channel io-junk -Master :io-remote:"Junk" -slave :io-local:junk +Path ~/Mail/mail.vanrenterghem.io/frederik/ +Inbox ~/Mail/mail.vanrenterghem.io/frederik/Inbox +Channel io +Far :io-remote: +Near :io-local: +Patterns * # Automatically create missing mailboxes, both locally and on the server Create Both # Automatically delete messages on either side if they are found deleted on the other. Expunge Both # Save the synchronization state files in the relevant directory SyncState * - -Group io -Channel io-default -Channel io-trash -Channel io-archive -Channel io-sent -Channel io-junk - -IMAPAccount biz -Host imap.gmail.com -User frederik@vanrenterghem.biz -PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/Documents/paswoorden/frederik@vanrenterghem.biz.asc" -SSLType IMAPS -CertificateFile /etc/ssl/certs/ca-certificates.crt - -IMAPStore biz-remote -Account biz - -MaildirStore biz-local -Subfolders Verbatim -Path ~/.mail/biz/ -Inbox ~/.mail/biz/Inbox - -Channel biz -Master :biz-remote: -Slave :biz-local: -# Exclude everything under the internal [Gmail] folder, except the interesting folders -Patterns * ![Gmail]* "[Gmail]/Sent Mail" "[Gmail]/Starred" "[Gmail]/All Mail" -# Or include everything -#Patterns * - -Channel biz-sent -Master :biz-remote:"[Gmail]/Verzonden berichten" -Slave :biz-local:sent -Create Slave - -# Automatically create missing mailboxes, both locally and on the server -Create Both -# Save the synchronization state files in the relevant directory -SyncState * - -Group biz -Channel biz -Channel biz-sent