aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/emacs/init.el28
-rw-r--r--.config/msmtp/config10
-rw-r--r--.mbsyncrc48
3 files changed, 82 insertions, 4 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index c256a4e..dc7b0e9 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -598,6 +598,11 @@
;; Set the maildir directory in any case.
(setq mu4e-maildir "~/data/mail")
+(defun mssola/append-current-year-to (prefix)
+ "Append the current year to the given `prefix'."
+
+ (concat prefix (format-time-string "%Y" (current-time))))
+
(defun mssola/mu4e ()
"Configure mu4e in-place and launch it."
@@ -608,7 +613,6 @@
;; Use `msmtp' as the program for sending email.
(setq sendmail-program (executable-find "msmtp")
- send-mail-function #'smtpmail-send-it
starttls-use-gnutls t
message-sendmail-f-is-evil t
message-sendmail-extra-arguments '("--read-envelope-from")
@@ -618,13 +622,13 @@
;; gathers all inboxes.
(add-to-list 'mu4e-bookmarks
'(:name "Inbox"
- :query "maildir:/gmail/inbox OR maildir:/comsuse/inbox OR maildir:/sindicat/inbox OR maildir:/uoc/inbox"
+ :query "maildir:/gmail/inbox OR maildir:/comsuse/inbox OR maildir:/sindicat/inbox OR maildir:/uoc/inbox OR maildir:/mailbox/inbox"
:key ?n))
;; For whatever reason I lost the "messages sent" bookmark. Let's re-add it.
(add-to-list 'mu4e-bookmarks
'(:name "Sent"
- :query "from:mikisabate@gmail.com OR from:msabate@suse.com"
+ :query "from:mikisabate@gmail.com OR from:msabate@suse.com OR from:mssola@mssola.com"
:key ?s))
;; General mu4e settings.
@@ -695,6 +699,24 @@
(mu4e-refile-folder . "/gmail/All")
(mu4e-trash-folder . "/gmail/Trash")))
+ ;; mailbox.org
+ ,(make-mu4e-context
+ :name "mailbox"
+ :enter-func (lambda ()
+ (mu4e-message "Switching to mailbox.org")
+ (setq mu4e-sent-messages-behavior 'delete))
+ :match-func
+ (lambda (msg)
+ (when msg
+ (string-prefix-p "/mailbox" (mu4e-message-field msg :maildir))))
+ :vars `(
+ (user-mail-address . "mssola@mssola.com")
+ (mu4e-reply-to-address . "mssola@mssola.com")
+ (mu4e-drafts-folder . "/mailbox/Drafts")
+ (mu4e-sent-folder . "/mailbox/sent")
+ (mu4e-refile-folder . ,(mssola/append-current-year-to "/mailbox/Archive/"))
+ (mu4e-trash-folder . "/mailbox/Trash")))
+
;; suse.com
,(make-mu4e-context
:name "suse"
diff --git a/.config/msmtp/config b/.config/msmtp/config
index 186ad30..b51be94 100644
--- a/.config/msmtp/config
+++ b/.config/msmtp/config
@@ -14,6 +14,14 @@ from mikisabate@gmail.com
user mikisabate@gmail.com
passwordeval "kwallet-query --read-password gmail kdewallet --folder email"
+# mailbox.org
+account mailbox
+host smtp.mailbox.org
+port 587
+from mssola@mssola.com
+user mssola@mssola.com
+passwordeval "kwallet-query --read-password mailbox kdewallet --folder email"
+
# suse.com
account comsuse
host smtp.gmail.com
@@ -23,4 +31,4 @@ user msabate@suse.com
passwordeval "kwallet-query --read-password susecom kdewallet --folder email"
# Set a default account
-account default : gmail
+account default : mailbox
diff --git a/.mbsyncrc b/.mbsyncrc
index 348467a..5874b4b 100644
--- a/.mbsyncrc
+++ b/.mbsyncrc
@@ -62,6 +62,54 @@ Channel gmail-all
Channel gmail-sent
##
+# mailbox.org
+
+MaildirStore mailbox-local
+Subfolders Verbatim
+Path "~/data/mail/mailbox/"
+Inbox "~/data/mail/mailbox/inbox"
+Trash "trash"
+
+IMAPAccount mailbox
+Host imap.mailbox.org
+Port 993
+User "mssola@mssola.com"
+PassCmd "kwallet-query --read-password mailbox kdewallet --folder email"
+TLSType IMAPS
+TLSVersions +1.2 +1.3
+
+IMAPStore mailbox-remote
+Account mailbox
+
+Channel mailbox-inbox
+Far :mailbox-remote:
+Near :mailbox-local:
+Sync All
+Expunge Both
+Create Both
+CopyArrivalDate yes
+
+Channel mailbox-sent
+Far :mailbox-remote:Sent
+Near :mailbox-local:sent
+Sync All
+Expunge Both
+Create Both
+CopyArrivalDate yes
+
+Channel mailbox-archive
+Far :mailbox-remote:
+Near :mailbox-local:
+Pattern Archive/*
+Sync All
+Expunge Both
+Create Both
+CopyArrivalDate yes
+
+Group mailbox
+Channels mailbox-inbox mailbox-sent mailbox-archive
+
+##
# suse.com
IMAPAccount comsuse