diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-04-12 03:36:56 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-04-12 03:36:56 -0700 |
commit | c23b77b3c379639a7c9dce0e970bf45e299ef70a (patch) | |
tree | 2db26365a4ead1b935a8977bacd446d05fed7603 /home/xyz/.config/neomutt | |
parent | 9d545cb5f9de53285b74de1f5a871f5b8373caf5 (diff) |
neomutt isync and abook configs; backup abook
Diffstat (limited to 'home/xyz/.config/neomutt')
-rw-r--r-- | home/xyz/.config/neomutt/neomuttrc | 38 |
1 files changed, 30 insertions, 8 deletions
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%<F? [%F]>%* %<N?%N/>%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 <Tab> 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 "<change-folder>=Archive<enter>" "go to archive" +macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts" +macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox" +macro index,pager gj "<change-folder>=Junk<enter>" "go to junk" +macro index,pager gs "<change-folder>=Sent<enter>" "go to sent" +macro index,pager gt "<change-folder>=Trash<enter>" "go to trash" +# synchronization settings ['S' to sync] +macro index S "<shell-escape>mbsync -a<enter>" "sync email" |