commit 94fb8e58bda956c0a9e3b9c4666e9446e6e0dce9
parent 61c713de4e865c7d46a41b53763960d06078a8f9
Author: pyratebeard <root@pyratebeard.net>
Date: Fri, 17 May 2024 11:39:19 +0100
XDG changes to mutt
Diffstat:
7 files changed, 15 insertions(+), 114 deletions(-)
diff --git a/mutt/.mutt/gpg.rc b/mutt/.config/mutt/gpg.rc
diff --git a/mutt/.mailcap b/mutt/.config/mutt/mailcap
diff --git a/mutt/.config/mutt/muttrc b/mutt/.config/mutt/muttrc
@@ -20,9 +20,9 @@ set from = "root@pyratebeard.net"
set realname = "pyratebeard"
# mailbox
-set header_cache = "~/.mutt/cache/headers"
-set message_cachedir = "~/.mutt/cache/"
-set certificate_file = "~/.mutt/certificates"
+set header_cache = "$XDG_CONFIG_HOME/mutt/cache/headers"
+set message_cachedir = "$XDG_CONFIG_HOME/mutt/cache/"
+set certificate_file = "$XDG_CONFIG_HOME/mutt/certificates"
set mbox_type = Maildir
set folder = "~/.local/var/mbox/pyratebeard"
set spoolfile = +INBOX
@@ -36,7 +36,7 @@ set sort_aux = reverse-date-received
# colours
color normal default default
-color indicator color11 color8
+color indicator white color8
color tree default default
color status white black
color index white color8 "~T"
@@ -44,11 +44,11 @@ color index color6 default "~U"
color index color15 default "~O"
color index red black "~D"
color index color14 default "~F"
-color index color13 default "~g"
-color index color0 color13 "~G"
+color index color3 default "~g"
+color index color0 color3 "~G"
# pgp
-source "~/.mutt/gpg.rc"
+source "$XDG_CONFIG_HOME/mutt/gpg.rc"
set pgp_autosign = yes
set pgp_use_gpg_agent = yes
@@ -59,7 +59,7 @@ set askbcc = yes
set autoedit = yes
set edit_headers = yes
set text_flowed
-set signature = ~/.mutt/signature
+set signature = $XDG_CONFIG_HOME/mutt/signature
# display
set index_format = "%4C %Z %-30.30L %M %s"
@@ -70,7 +70,7 @@ set sort_aux=date-received
unset markers
# handling for multi-part and html messages
-set mailcap_path = ~/.mailcap"
+set mailcap_path = $XDG_CONFIG_HOME/mutt/mailcap"
auto_view text/html
alternative_order text/html text/plain
set display_filter = "~/.local/bin/mailfmtshort"
diff --git a/mutt/.mutt/signature b/mutt/.config/mutt/signature
diff --git a/mutt/.config/offlineimap/config b/mutt/.config/offlineimap/config
@@ -1,14 +1,10 @@
[general]
accounts = pyratebeard
-pythonfile = ~/.offlineimap.py
+pythonfile = $XDG_CONFIG_HOME/offlineimap.py
[Account pyratebeard]
-localrepository = pyratebeard-local
remoterepository = pyratebeard-remote
-
-[Repository pyratebeard-local]
-type = Maildir
-localfolders = ~/var/mbox/pyratebeard
+localrepository = pyratebeard-local
[Repository pyratebeard-remote]
type = IMAP
@@ -18,3 +14,7 @@ remotepasseval = get_pass("pyratebeard")
ssl = yes
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
readonly = false
+
+[Repository pyratebeard-local]
+type = Maildir
+localfolders = ~/.local/var/mbox/pyratebeard
diff --git a/mutt/.offlineimap.py b/mutt/.config/offlineimap/offlineimap.py
diff --git a/mutt/.mutt/octotech b/mutt/.mutt/octotech
@@ -1,99 +0,0 @@
-# ░█▄█░█░█░▀█▀░▀█▀░░
-# ░█░█░█░█░░█░░░█░░░
-# ░▀░▀░▀▀▀░░▀░░░▀░░░
-
-# set password
-set my_pass = "`pass email/octotech/passwd`"
-set my_smtp_url = "`pass email/octotech/smtp_url`"
-
-# imap
-unset imap_passive
-set imap_keepalive = 300
-
-# smtp
-set smtp_url = $my_smtp_url
-set smtp_authenticators=”login”
-set smtp_pass = $my_pass
-
-# user details
-set from = "dudley@octo.tech"
-set realname = "Dudley Burrows"
-
-# mailbox
-set header_cache = "~/.mutt/cache/headers"
-set message_cachedir = "~/.mutt/cache/"
-set certificate_file = "~/.mutt/certificates"
-set mbox_type = Maildir
-set folder = "~/lib/doc/email/octotech"
-set spoolfile = +INBOX
-set record = "~/.mutt/sent"
-mailboxes = =INBOX
-set mail_check = 120
-
-# colours
-color normal default default
-color indicator cyan black
-color tree default default
-color status white black
-
-# pgp
-source "~/.mutt/gpg.rc"
-set pgp_autosign = no
-set pgp_use_gpg_agent = yes
-
-# compose
-set editor = vim
-set askcc = yes
-set askbcc = yes
-set autoedit = yes
-set edit_headers = yes
-set text_flowed
-
-# display
-set index_format = "%4C %Z %-30.30L %M %s"
-folder-hook . "push <collapse-all>\n"
-bind index - collapse-thread
-set sort=reverse-threads
-set sort_aux=date-received
-unset markers
-
-# handling for multi-part and html messages
-auto_view text/html
-alternative_order text/plain text/html
-
-# sidebar
-set sidebar_visible = no
-set sidebar_folder_indent = yes
-set sidebar_indent_string = ".."
-set sidebar_short_path = yes
-bind index,pager B sidebar-toggle-visible
-
-# move the highlight to the previous mailbox
-bind index,pager \Cp sidebar-prev
-
-# move the highlight to the next mailbox
-bind index,pager \Cn sidebar-next
-
-# open the highlighted mailbox
-bind index,pager \Co sidebar-open
-
-# move the highlight to the previous page
-# this is useful if you have a LOT of mailboxes.
-bind index,pager <F3> sidebar-page-up
-
-# move the highlight to the next page
-# this is useful if you have a LOT of mailboxes.
-bind index,pager <F4> sidebar-page-down
-
-# move the highlight to the previous mailbox containing new, or flagged,
-# mail.
-bind index,pager <F5> sidebar-prev-new
-
-# move the highlight to the next mailbox containing new, or flagged, mail.
-bind index,pager <F6> sidebar-next-new
-
-# toggle the visibility of the sidebar.
-bind index,pager B sidebar-toggle-visible
-
-# macros
-macro attach W "<save-entry><bol>~/tmp/<eol>"