From c23b77b3c379639a7c9dce0e970bf45e299ef70a Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Fri, 12 Apr 2024 03:36:56 -0700 Subject: neomutt isync and abook configs; backup abook --- home/xyz/.config/neomutt/neomuttrc | 38 ++++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) (limited to 'home/xyz/.config/neomutt') diff --git a/home/xyz/.config/neomutt/neomuttrc b/home/xyz/.config/neomutt/neomuttrc index a88aa92d..44bd5474 100644 --- a/home/xyz/.config/neomutt/neomuttrc +++ b/home/xyz/.config/neomutt/neomuttrc @@ -3,6 +3,7 @@ # https://wiki.archlinux.org/title/Mutt # https://videos.lukesmith.xyz/ # https://docs.kernel.org/process/email-clients.html +# https://blog.flaport.net/configuring-neomutt-for-email.html # maybe useful: # `man neomuttrc` @@ -16,8 +17,12 @@ # note the imaps:// and smtps://, maybe more secure? # note: xyz@flylightning.xyz will not work, need mail.flylightning.xyz, maybe because they require the actual imaps and smtps email server DNS -set folder='imaps://xyz@mail.flylightning.xyz' set smtp_url='smtps://xyz@mail.flylightning.xyz' +# mbox_type not sure if needed, maybe needed because isync/mbsync set to use maildir format +set mbox_type=Maildir +set folder="$XDG_DATA_HOME/mail/xyz@flylightning.xyz" +# if fully online and not using mbsync: +#set folder='imaps://xyz@mail.flylightning.xyz' # https://wiki.archlinux.org/title/Mutt#Pass # need "" instead of ''? @@ -31,11 +36,12 @@ set from='xyz@flylightning.xyz' # /etc/neomuttrc says if use from var this will not use? not sure if works set real_name='Xiao Pan' -# default not auto subscribe to inbox? need this -mailboxes =INBOX -set imap_check_subscribed -# or: -#mailboxes =INBOX =Sent =Trash =Drafts =Junk =Archive +# this seems also determines sidebar mailbox order +mailboxes =INBOX =Sent =Drafts =Archive =Junk =Trash +# if fully online and use `set folder="imaps://xyz@mail.flylightning.xyz"` instead: +# default not auto subscribe to inbox? need `mailboxes =INBOX` at least +#mailboxes =INBOX +#set imap_check_subscribed # spool_file not sure if needed # + seems mean remote? @@ -73,6 +79,7 @@ set sidebar_width=20 # manpage suggested # %<... is nested if, see https://neomutt.org/feature/nested-if set sidebar_format='%B%%* %%S' +set sidebar_short_path # needed for some sidebar features set mail_check_stats @@ -82,8 +89,12 @@ set mail_check=60 # no ask auto save to draft set postpone='yes' -# not sure if useful -set mbox_type = Maildir +set query_command="abook --mutt-query '%s'" +# https://neomutt.org/guide/advancedusage#8-%C2%A0external-address-queries +# completion when ask for address input +# default ^T +# another way is Q, it will let me select an address from abook and start a new email +bind editor complete-query # maybe: # maybe, from mutt-wizard: @@ -97,3 +108,14 @@ set mbox_type = Maildir #set forward_format = "Fwd: %s" # can configure mailcap configs ~/.mailcap to use lynx to auto show html with lynx #auto_view text/html + +# navigation settings +bind index,pager g noop +macro index,pager ga "=Archive" "go to archive" +macro index,pager gd "=Drafts" "go to drafts" +macro index,pager gi "=INBOX" "go to inbox" +macro index,pager gj "=Junk" "go to junk" +macro index,pager gs "=Sent" "go to sent" +macro index,pager gt "=Trash" "go to trash" +# synchronization settings ['S' to sync] +macro index S "mbsync -a" "sync email" -- cgit v1.2.3-70-g09d2