commit cc4789401de1baabdc5681295dc0af5e651a7358
parent 0589dfd3ca6364c9df22d2291f979df4e39e552d
Author: Matsuda Kenji <contact2655@matsudakenji.xyz>
Date: Mon, 27 Jun 2022 18:06:15 +0900
delete gmail from mutt
Diffstat:
4 files changed, 6 insertions(+), 89 deletions(-)
diff --git a/.config/mutt/conf.d/gmail b/.config/mutt/conf.d/gmail
@@ -1,19 +0,0 @@
-source "gpg -d ~/.config/mutt/passwd/gmail.gpg |"
-
-set hostname = "gmail.com"
-set from = "ftvda283@gmail.com"
-set folder = "imaps://ftvda283@gmail.com@imap.gmail.com:993"
-set smtp_url = "smtp://ftvda283@gmail.com@smtp.gmail.com:587"
-set imap_user = "ftvda283@gmail.com"
-
-set spoolfile = "+INBOX"
-set record = "+[Gmail]/Sent Mail"
-set trash = "+[Gmail]/Trash"
-set postponed = "+[Gmail]/Drafts"
-
-named-mailboxes \
- "g_inbox" =INBOX \
- "g_sent" =[Gmail]/Sent\ Mail \
- "g_draft" =[Gmail]/Drafts \
- "g_spam" =[Gmail]/Spam \
- "g_trash" =[Gmail]/Trash
diff --git a/.config/mutt/mailcap b/.config/mutt/mailcap
@@ -1,3 +1,4 @@
-text/html; w3m -o keymap_file=~/.config/w3m/keymap %s -I %{charset} -T text/html
+#text/html; w3m -o keymap_file=~/.config/w3m/keymap %s -I %{charset} -T text/html
+text/html; firefox %s
image/*; sxiv %s
application/pdf; mupdf %s
diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc
@@ -1,27 +1,26 @@
+
set alias_file = ~/address/mutt
source ~/address/mutt
set realname = "Matsuda Kenji"
# default to sakura
-source "~/.config/mutt/conf.d/sakura"
+source "~/mutt/conf.d/sakura"
# folder hooks
#folder-hook 'imaps://contact2655@matsudakenji.xyz@mail.matsudakenji.xyz' 'source ~/.config/mutt/conf.d/sakura'
-#folder-hook 'imaps://ftvda283@gmail.com@imap.gmail.com' 'source ~/.config/mutt/conf.d/gmail'
# macros to switch account
macro index ,s "<enter-command>unmailboxes *<enter><enter-command>source ~/.config/mutt/conf.d/sakura<enter><sync-mailbox><change-folder>!<enter>"
-#macro index ,g "<enter-command>unmailboxes *<enter><enter-command>source ~/.config/mutt/conf.d/gmail<enter><sync-mailbox><change-folder>!<enter>"
# security
set ssl_starttls = yes
set ssl_force_tls = yes
# basic
-set editor = "nvi"
+set editor = "nvim"
set charset = "utf-8"
-set certificate_file = "./certificates"
+set certificate_file = "~/.config/mutt/certificates"
set mailcap_path = "~/.config/mutt/mailcap"
auto_view text/plain
#set implicit_autoview = "yes"
diff --git a/.config/mutt/muttrc.bu b/.config/mutt/muttrc.bu
@@ -1,64 +0,0 @@
-source "gpg -d ~/.config/mutt/passwd/gmail.gpg |"
-
-set realname = "Matsuda Kenji"
-set hostname = "gmail.com"
-set from = "ftvda283@gmail.com"
-
-# send
-set folder = "imaps://ftvda283@gmail.com@imap.gmail.com:993"
-set smtp_url = "smtp://ftvda283@gmail.com@smtp.gmail.com:587"
-set imap_user = "ftvda283@gmail.com"
-
-# folder
-set spoolfile = "+INBOX"
-#set record = "+[Gmail]/Sent Mail"
-unset record
-set trash = "+[Gmail]/Trash"
-set postponed = "+[Gmail]/Drafts"
-#named-mailboxes "inbox" =INBOX "sent" =[Gmail]/Sent\ Mail "drafts" =[Gmail]/Drafts "spam" =[Gmail]/Spam "trash" =[Gmail]/Trash "contact" =Contact
-mailboxes =INBOX =[Gmail]/Sent\ Mail =[Gmail]/Drafts =[Gmail]/Spam =[Gmail]/Trash
-set sort=reverse-date
-
-# security
-set ssl_starttls = yes
-set ssl_force_tls = yes
-
-# basic
-set editor = "vim"
-set charset = "utf-8"
-set certificate_file = "./certificates"
-set mailcap_path = "~/.config/mutt/mailcap"
-auto_view text/plain
-#set implicit_autoview = "yes"
-set pager = less
-unset prompt_after
-
-#sidebar
-set sidebar_visible
-set sidebar_format = "%D%?F? [%F]?%* %?N?%N/?%S"
-#set sidebar_width = 15
-set sidebar_divider_char = '|'
-bind index \CP sidebar-prev
-bind index \CN sidebar-next
-bind index \CO sidebar-open
-
-# pager
-ignore *
-unignore from date subject to cc
-unignore organization organisation x-mailer: x-newsreader: x-mailing-list:
-unignore posted-to:
-
-# GPG
-source /usr/local/share/examples/neomutt/gpg.rc
-set pgp_default_key = DC457F8B13AB6448
-#set crypt_autoencrypt
-set pgp_sign_as = 011FB63551C7B02E
-set crypt_autosign
-
-# Vim like binds
-bind attach,index \CD half-down
-bind attach,index \CU half-up
-bind attach,index g first-entry
-bind attach,index G last-entry
-bind editor <Esc>A eol
-bind editor <Esc>I bol