URI:
       Add neomutt/mbsync config - dotfiles - arsenal of config files, ready to be cloned in new (virtual) machines.
  HTML git clone git://git.drkhsh.at/dotfiles.git
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
       ---
   DIR commit c38da59219ed0e34ca4f00a15fbd8597e0046796
   DIR parent 724cd070c4f2daf4c4d2d45bbda41b6a5c87bb84
  HTML Author: drkhsh <me@drkhsh.at>
       Date:   Mon, 16 Jan 2023 00:50:37 +0100
       
       Add neomutt/mbsync config
       
       Diffstat:
         A neomutt/.mbsyncrc                   |      27 +++++++++++++++++++++++++++
         A neomutt/.neomutt/tokyo-night.colors |      75 +++++++++++++++++++++++++++++++
         A neomutt/.neomuttrc                  |      91 +++++++++++++++++++++++++++++++
         A neomutt/.signature                  |       6 ++++++
       
       4 files changed, 199 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/neomutt/.mbsyncrc b/neomutt/.mbsyncrc
       @@ -0,0 +1,27 @@
       +IMAPAccount account
       +Host domain.tld
       +User user@domain.tld
       +Pass XXX
       +SSLType IMAPS
       +CertificateFile /etc/ssl/certs/ca-certificates.crt
       +
       +IMAPStore account-remote
       +Account account
       +
       +MaildirStore account-local
       +SubFolders Verbatim
       +# The trailing "/" is important
       +Path ~/mail/
       +Inbox ~/mail/Inbox
       +
       +Channel account
       +Master :account-remote:
       +Slave :account-local:
       +Patterns *
       +# Automatically create missing mailboxes, both locally and on the server
       +Create Both
       +# Sync the movement of messages between folders and deletions, add after making
       +# sure the sync works
       +Expunge Both
       +# Save the synchronization state files in the relevant directory
       +SyncState *
   DIR diff --git a/neomutt/.neomutt/tokyo-night.colors b/neomutt/.neomutt/tokyo-night.colors
       @@ -0,0 +1,75 @@
       +# Default index colors:
       +color index white default '.*'
       +color index_author green default '.*'
       +color index_number white default
       +color index_subject blue default '.*'
       +
       +# New mail is boldened:
       +color index brightwhite black "~N"
       +color index_author brightgreen black "~N"
       +color index_subject brightblue black "~N"
       +
       +# Tagged mail is highlighted:
       +color index brightblack blue "~T"
       +color index_author brightblack blue "~T"
       +color index_subject brightblack blue "~T"
       +
       +# Other colors and aesthetic settings:
       +mono bold bold
       +mono underline underline
       +mono indicator reverse
       +mono error bold
       +color normal default default
       +color indicator brightblack white
       +color sidebar_highlight default brightblack
       +color sidebar_divider default default
       +color sidebar_flagged brightblue default
       +color sidebar_new brightyellow default
       +color normal brightwhite default
       +color error red default
       +color tilde black default
       +color message white default
       +color markers red white
       +color attachment white default
       +color search brightmagenta default
       +color status brightmagenta default
       +color hdrdefault brightgreen default
       +color quoted green default
       +color quoted1 blue default
       +color quoted2 cyan default
       +color quoted3 yellow default
       +color quoted4 red default
       +color quoted5 brightred default
       +color signature brightblue default
       +color bold black default
       +color underline black default
       +color normal default default
       +
       +# Regex highlighting:
       +color header white default ".*"
       +color header brightblue default "^(From)"
       +color header brightcyan default "^(Subject)"
       +color header brightwhite default "^(CC|BCC)"
       +color body brightblue default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email
       +addresses
       +color body brightmagenta default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" #
       +URL
       +color body green default "\`[^\`]*\`" # Green text between ` and `
       +color body brightblue default "^# \.*" # Headings as bold blue
       +color body brightcyan default "^## \.*" # Subheadings as bold cyan
       +color body brightgreen default "^### \.*" # Subsubheadings as bold green
       +color body cyan default "^(\t| )*(-|\\*) \.*" # List items as yellow
       +color body brightcyan default "[;:][-o][)/(|]" # emoticons
       +color body brightcyan default "[;:][)(|]" # emoticons
       +color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
       +color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
       +color body red default "(BAD signature)"
       +color body cyan default "(Good signature)"
       +color body brightblack default "^gpg: Good signature .*"
       +color body brightyellow default "^gpg: "
       +color body brightyellow red "^gpg: BAD signature from.*"
       +mono body bold "^gpg: Good signature"
       +mono body bold "^gpg: BAD signature from.*"
       +#color body red default
       +"([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)?
       +\t\r\n<>\"]"
   DIR diff --git a/neomutt/.neomuttrc b/neomutt/.neomuttrc
       @@ -0,0 +1,91 @@
       +set mbox_type=Maildir
       +set folder=~/mail
       +set spoolfile=+/Inbox
       +set header_cache=~/.cache/mutt
       +
       +set record=+Sent
       +set postponed=+Drafts
       +
       +mailboxes =Inbox =Drafts =Archive =Archives =Sent =Trash =Notes
       +mailboxes =Lists/OpenBSD =Lists/Tor =Lists/coreboot =Lists/suckless
       +
       +set realname = 'drkhsh'
       +set from = user@domain.tld
       +set use_from = yes
       +alternates foo@domain.tld|bar@domain.tld
       +
       +set smtp_pass = XXX
       +set my_user = user@domain.tld
       +set smtp_url=smtps://$my_user@domain.tld
       +set ssl_force_tls = yes
       +set smtp_authenticators = "login"
       +
       +set send_charset="utf-8"
       +
       +set signature="~/.signature"
       +
       +set mailcap_path   = ~/.mutt/mailcap
       +alternative_order text/plain text/html
       +
       +auto_view text/html
       +macro attach 'V' "<pipe-entry>iconv -c --to-code=UTF8 > ~/.cache/mutt/mail.ht
       +ml<enter><shell-escape>$BROWSER ~/.cache/mutt/mail.html<enter>"
       +
       +macro index,pager A "<save-message>=Archive<enter>" "Archive Message"
       +
       +macro index,pager O "<shell-escape>mbsync -a<enter>" "run mbsync to sync all
       +mail"
       +
       +set confirmappend=no
       +set confirmcreate=yes
       +
       +set sort=threads
       +set sort_aux=last-date-received
       +
       +set sidebar_visible = yes
       +
       +set mail_check_stats
       +set sidebar_format = "%B%?F? [%F]?%* %?N?%N?"
       +
       +set pager_index_lines=10
       +set pager_stop=yes
       +set pager_context=3
       +
       +set sleep_time = 0
       +
       +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
       +
       +bind index,pager B sidebar-toggle-visible
       +
       +set sidebar_short_path                  # Shorten mailbox names
       +set sidebar_delim_chars="/"             # Delete everything up to the last / character
       +set sidebar_folder_indent               # Indent folders whose names we've shortened
       +set sidebar_indent_string="  "          # Indent with two spaces
       +
       +set editor="vim -c ':set tw=72' "
       +color index green black ~N
       +color index yellow black ~O
       +
       +## PGP
       +# Specify what key to use for signing here:
       +#set pgp_sign_as=0x
       +## END PGP
       +
       +set pgp_use_gpg_agent = no
       +set crypt_use_gpgme=no
       +
       +# decode application/pgp
       +set pgp_decode_command="qubes-gpg-client-wrapper -d --status-fd=2 --batch  %f"
       +
       +# decrypt/encrypt a pgp/mime attachment
       +set pgp_decrypt_command="$pgp_decode_command"
       +set pgp_encrypt_only_command="/usr/libexec/neomutt/pgpewrap gpg2 --trust-model always --batch --quiet --no-verbose --output - --textmode --armor --encrypt -- --recipient %r -- %f"
       +
       +# verify a pgp/mime signature
       +set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f"
       +
       +source ~/.neomutt/tokyo-night.colors
   DIR diff --git a/neomutt/.signature b/neomutt/.signature
       @@ -0,0 +1,6 @@
       +--
       +drkhsh
       +
       +https://drkhsh.at
       +gopher://drkhsh.at
       +