From d2c76c074f67bba8b975c2bff6e817fa2f2ab2a7 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sun, 31 Jul 2022 11:39:38 +0200 Subject: emacs: beware the new backup location MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- .config/msmtp/config | 2 +- .doom.d/config.el | 13 +++++++++++-- .doom.d/custom.el | 3 ++- .mbsyncrc | 32 ++++++++++++++++---------------- 4 files changed, 30 insertions(+), 20 deletions(-) diff --git a/.config/msmtp/config b/.config/msmtp/config index c086e4a..4a5a9d2 100644 --- a/.config/msmtp/config +++ b/.config/msmtp/config @@ -19,7 +19,7 @@ port 587 auth xoauth2 from msabate@suse.com user msabate@suse.com -passwordeval ~/bin/mutt_oauth2.py ~/.mail/comsuse/sessionfile +passwordeval ~/bin/mutt_oauth2.py /home/backup/mail/comsuse/sessionfile # suse.de account desuse diff --git a/.doom.d/config.el b/.doom.d/config.el index 1150ec4..77ab01f 100644 --- a/.doom.d/config.el +++ b/.doom.d/config.el @@ -2,6 +2,9 @@ ;;; Basic information. +(defconst mssola-backup-dir "/home/backup" + "Directory located in a big partition where I dump a lot of crap.") + ;; There are some packages that expect us to have a `user-full-name' and a ;; `user-mail-address' defined. (setq user-full-name "Miquel Sabaté Solà" @@ -221,6 +224,12 @@ littering will happen locally." :query "maildir:/gmail/inbox OR maildir:/comsuse/inbox OR maildir:/desuse/inbox OR maildir:/ajuntament/inbox OR maildir:/sindicat/inbox OR maildir:/uoc/inbox" :key ?n)) + ;; Things to look for when acting as a cootw. + (add-to-list 'mu4e-bookmarks + '(:name "COOTW" + :query "to:scc-feedback@suse.de" + :key ?c)) + ;; General mu4e settings. (setq message-kill-buffer-on-exit t mu4e-update-interval 600 @@ -340,8 +349,8 @@ littering will happen locally." (mapc (lambda (f) (unless (file-directory-p f) (delete-file f))) - (directory-files (concat (file-name-as-directory (getenv "HOME")) - ".mail/ajuntament/inbox/new") + (directory-files (concat (file-name-as-directory mssola-backup-dir) + "mail/ajuntament/inbox/new") t))) ;; This is the only hook that `mu4e' allows us to actually do something around diff --git a/.doom.d/custom.el b/.doom.d/custom.el index 0072404..5108d7e 100644 --- a/.doom.d/custom.el +++ b/.doom.d/custom.el @@ -7,7 +7,8 @@ ["#1c1c1c" "#d78787" "#b9dc92" "#ffffaf" "#87afd7" "#875f87" "#dfafdf" "#d0d0d0"]) '(custom-safe-themes '("4e7e1be316e5095960f5dd27402a81f6d69e0ba380355ad5215797efb5466eea" "27982b03b7d049912b600301e50637882ec095f384124180a21772ec8da5f7e8" "6395777d3007cd6d3e613812d493ab9d09aa68f17d3dbf3935bfa1672279281e" "169e5b085078237c277753e3bd83e40a398e5eef98d922eb9b92fc3dbce9046d" "568969c0ed1874dc4ae94c2792eda17f10a40562ccb531c528a112f65889af75" "6c929cd6a199700c871ef92ad47ba20accd00810fc92e8343448da67dcde0898" "840588bd742f27724df70209930633b83567026a7290b2f4105939a6eabbb4cf" "806f76b435a02f1016a5b76a6aa8f9304d7c51f98f85ebd13f33f1b148227b7f" "8185f8e6c2d6a29da892e13e33d666cc26303a9639a8582c8035fbf0987c5f20" "9c538f4387a7db52b13fa988f93bd337ab13ead7c8fdb5fed29833d7d7e0f27c" "232b0c9752006e63d3bf8b5329bda6f3592e4ac1bdf96b17879bb076f16ea82c" "45847e51cdf4bcacfd2093d48be8c727da9837830911999b2d2b31ffa27de90b" "7938d6870d8bbf41504f1338ebb3b590eaacfb201327fb9389454b08abcef0df" "21f0483411dee48b338960db918d82630516a3d726f9432f8ae8c0b8554df25f" "d300a3efcf6b385537e11bd588d08aed850ce239b66ff37ee57a7f20f1b05e47" "f2d128f0ca6290df5c608a9e3e564bbe3ee2f22b61dc1409cdf5e3c200337e7d" "f42263201f447f8c15e57474a95d26500b7e6f932e3d75a3604802a6c9a9f18f" "af2817482b04be9d60ac90ad89e386dd076b9338f135d576ef9bd357e01f64ca" "053a91acd65e7592ec1f1451f81554da96f26781858f961db65c9f1be7c6ffe0" "d55733f0ab2ab8031b3206e900f3729deed13acc6d56cf09a171ae8e26cb7181" default)) - '(delete-selection-mode nil)) + '(delete-selection-mode nil) + '(warning-suppress-types '((org-element-cache)))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. diff --git a/.mbsyncrc b/.mbsyncrc index 006aa9d..1b2244e 100644 --- a/.mbsyncrc +++ b/.mbsyncrc @@ -20,10 +20,10 @@ CertificateFile /etc/ssl/ca-bundle.pem IMAPStore gmail-remote Account gmail -# Let's use ~/.mail as the prefix for the local storage. +# Let's use /home/backup/mail as the prefix for the local storage. MaildirStore gmail-local -Path ~/.mail/gmail/ -Inbox ~/.mail/gmail/inbox +Path /home/backup/mail/gmail/ +Inbox /home/backup/mail/gmail/inbox SubFolders Verbatim # We could have one only channel, and filter them through the Patterns @@ -66,7 +66,7 @@ Channel gmail-sent IMAPAccount desuse Host imap.suse.de -User msabate@imapsusede +User msabate@freezeezy PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.imapsusede.gpg" SSLType IMAPS AuthMechs Login @@ -76,8 +76,8 @@ IMAPStore desuse-remote Account desuse MaildirStore desuse-local -Path ~/.mail/desuse/ -Inbox ~/.mail/desuse/inbox +Path /home/backup/mail/desuse/ +Inbox /home/backup/mail/desuse/inbox SubFolders Verbatim Channel desuse @@ -95,7 +95,7 @@ SyncState * IMAPAccount comsuse Host outlook.office365.com User msabate@suse.com -PassCmd "~/bin/mutt_oauth2.py ~/.mail/comsuse/sessionfile" +PassCmd "~/bin/mutt_oauth2.py /home/backup/mail/comsuse/sessionfile" SSLType IMAPS AuthMechs XOAUTH2 CertificateFile /etc/ssl/ca-bundle.pem @@ -105,8 +105,8 @@ IMAPStore comsuse-remote Account comsuse MaildirStore comsuse-local -Path ~/.mail/comsuse/ -Inbox ~/.mail/comsuse/inbox +Path /home/backup/mail/comsuse/ +Inbox /home/backup/mail/comsuse/inbox SubFolders Verbatim Channel comsuse @@ -138,8 +138,8 @@ IMAPStore ajuntament-remote Account ajuntament MaildirStore ajuntament-local -Path ~/.mail/ajuntament/ -Inbox ~/.mail/ajuntament/inbox +Path /home/backup/mail/ajuntament/ +Inbox /home/backup/mail/ajuntament/inbox SubFolders Verbatim Channel ajuntament @@ -167,8 +167,8 @@ IMAPStore sindicat-remote Account sindicat MaildirStore sindicat-local -Path ~/.mail/sindicat/ -Inbox ~/.mail/sindicat/inbox +Path /home/backup/mail/sindicat/ +Inbox /home/backup/mail/sindicat/inbox SubFolders Verbatim Channel sindicat @@ -195,10 +195,10 @@ CertificateFile /etc/ssl/ca-bundle.pem IMAPStore uoc-remote Account uoc -# Let's use ~/.mail as the prefix for the local storage. +# Let's use /home/backup/mail as the prefix for the local storage. MaildirStore uoc-local -Path ~/.mail/uoc/ -Inbox ~/.mail/uoc/inbox +Path /home/backup/mail/uoc/ +Inbox /home/backup/mail/uoc/inbox SubFolders Verbatim Channel uoc-inbox -- cgit v1.2.3