chore: Remove some configuration from a previous life

This commit is contained in:
Vincent Ambo 2019-12-14 14:56:13 +00:00
parent bd7903815d
commit 1584607fb9
5 changed files with 6 additions and 50 deletions

View file

@ -4,14 +4,6 @@ port 587
tls on tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt tls_trust_file /etc/ssl/certs/ca-certificates.crt
# Aprila mail
account aprila
from vincent@aprila.no
host smtp.office365.com
auth on
user vincent@aprila.no
passwordeval pass show aprila/office365-mail
# Runbox mail # Runbox mail
account runbox account runbox
from mail@tazj.in from mail@tazj.in

View file

@ -7,8 +7,8 @@ path=/home/vincent/mail
[user] [user]
name=Vincent Ambo name=Vincent Ambo
primary_email=vincent@aprila.no primary_email=mail@tazj.in
other_email=mail@tazj.in;tazjin@gmail.com; other_email=tazjin@gmail.com;
[new] [new]
tags=unread;inbox; tags=unread;inbox;

View file

@ -1,32 +1,10 @@
[general] [general]
accounts = aprila, tazjin, gmail accounts = tazjin, gmail
[DEFAULT] [DEFAULT]
ssl = yes ssl = yes
sslcacertfile = /etc/ssl/certs/ca-certificates.crt sslcacertfile = /etc/ssl/certs/ca-certificates.crt
# Main work account:
[Account aprila]
localrepository = aprila-local
remoterepository = aprila-remote
[Repository aprila-local]
type = Maildir
localfolders = ~/mail/aprila
[Repository aprila-remote]
type = IMAP
remotehost = outlook.office365.com
remoteuser = vincent@aprila.no
remotepassfile = ~/.config/mail/aprila-pass
# Office365 is a naughty boy when it comes to IMAP. Even worse, they
# also seem to have decided that they should change IMAP folder names
# based on the UI language.
#
# I can't be bothered to implement the entire (relatively long)
# blacklist, so I'll instead whitelist relevant folders:
folderfilter = lambda folder: folder in ['INBOX', 'Arkiv', 'Sende element']
# Private GMail account (old): # Private GMail account (old):
[Account gmail] [Account gmail]
maxage = 90 maxage = 90

View file

@ -25,17 +25,11 @@ tagConfig = pkgs.writeText "notmuch-tags" ''
# Tag nix-devel mailing list & discourse: # Tag nix-devel mailing list & discourse:
-inbox +nix-devel -- to:nix-devel@googlegroups.com OR from:nixos1@discoursemail.com -inbox +nix-devel -- to:nix-devel@googlegroups.com OR from:nixos1@discoursemail.com
# Filter out Gitlab mails:
-inbox +gitlab -- from:gitlab@aprila.no
# Tag my own mail (from other devices) as sent: # Tag my own mail (from other devices) as sent:
-inbox +sent -- folder:"aprila/Sende element" OR from:vincent@aprila.no OR from:mail@tazj.in -inbox +sent -- from:mail@tazj.in
# Drafts are always read, duh. # Drafts are always read, duh.
-unread -- tag:draft -unread -- tag:draft
# Tag development list
-inbox +aprila-dev -- to:dev@aprila.no OR cc:dev@aprila.no
''; '';
notmuchIndex = pkgs.writeShellScriptBin "notmuch-index" '' notmuchIndex = pkgs.writeShellScriptBin "notmuch-index" ''

View file

@ -20,8 +20,6 @@
;; Show me saved searches that I care about: ;; Show me saved searches that I care about:
(setq notmuch-saved-searches (setq notmuch-saved-searches
'((:name "inbox" :query "tag:inbox" :count-query "tag:inbox AND tag:unread" :key "i") '((:name "inbox" :query "tag:inbox" :count-query "tag:inbox AND tag:unread" :key "i")
(:name "aprila-dev" :query "tag:aprila-dev" :count-query "tag:aprila-dev AND tag:unread" :key "d")
(:name "gitlab" :query "tag:gitlab" :key "g")
(:name "sent" :query "tag:sent" :key "t") (:name "sent" :query "tag:sent" :key "t")
(:name "drafts" :query "tag:draft"))) (:name "drafts" :query "tag:draft")))
(setq notmuch-show-empty-saved-searches t) (setq notmuch-show-empty-saved-searches t)
@ -44,12 +42,7 @@
;; Store sent mail in the correct folder per account ;; Store sent mail in the correct folder per account
(setq notmuch-maildir-use-notmuch-insert nil) (setq notmuch-maildir-use-notmuch-insert nil)
(setq notmuch-fcc-dirs '(("mail@tazj.in" . "tazjin/Sent") (setq notmuch-fcc-dirs '(("mail@tazj.in" . "tazjin/Sent")))
;; Not a mistake, Office365 apparently
;; renames IMAP folders (!) to your local
;; language instead of providing translations
;; in the UI m(
("vincent@aprila.no" . "aprila/Sende element")))
;; I don't use drafts but I instinctively hit C-x C-s constantly, lets ;; I don't use drafts but I instinctively hit C-x C-s constantly, lets
;; handle that gracefully. ;; handle that gracefully.
@ -78,8 +71,7 @@
(when (> (- (float-time) *last-notmuch-count-redraw*) 30) (when (> (- (float-time) *last-notmuch-count-redraw*) 30)
(setq *last-notmuch-count-redraw* (float-time)) (setq *last-notmuch-count-redraw* (float-time))
(let* ((inbox-unread (notmuch-saved-search-count "tag:inbox and tag:unread")) (let* ((inbox-unread (notmuch-saved-search-count "tag:inbox and tag:unread"))
(devel-unread (notmuch-saved-search-count "tag:aprila-dev and tag:unread")) (notmuch-count (format "I: %s; D: %s" inbox-unread)))
(notmuch-count (format "I: %s; D: %s" inbox-unread devel-unread)))
(setq *current-notmuch-count* notmuch-count))) (setq *current-notmuch-count* notmuch-count)))
(when (and (bottom-right-window-p) (when (and (bottom-right-window-p)