fix mutt
This commit is contained in:
parent
a422180aed
commit
8d9beb31bc
|
@ -15,7 +15,7 @@
|
|||
[pair contacts]
|
||||
a = "contacts_local"
|
||||
b = "contacts_remote"
|
||||
collections = ["from a", "from b"]
|
||||
collections = ["from b"]
|
||||
metadata = ["displayname"]
|
||||
|
||||
[storage contacts_local]
|
||||
|
@ -25,14 +25,14 @@
|
|||
|
||||
[storage contacts_remote]
|
||||
type = "carddav"
|
||||
url = "http://mossnet.lan/remote.php/dav/files/anish/"
|
||||
url = "http://mossnet.lan:5252/anish"
|
||||
username = "anish"
|
||||
password.fetch = ["command", "cat", "/run/secrets/mossnet"]
|
||||
password.fetch = ["command", "echo", "acceptsanypassword"]
|
||||
|
||||
[pair calendar]
|
||||
a = "calendar_local"
|
||||
b = "calendar_remote"
|
||||
collections = ["from a", "from b"]
|
||||
collections = ["from b"]
|
||||
metadata = ["displayname"]
|
||||
|
||||
[storage calendar_local]
|
||||
|
@ -42,9 +42,9 @@
|
|||
|
||||
[storage calendar_remote]
|
||||
type = "caldav"
|
||||
url = "http://mossnet.lan/remote.php/dav/files/anish/"
|
||||
url = "http://mossnet.lan:5252/anish"
|
||||
username = "anish"
|
||||
password.fetch = ["command", "cat", "/run/secrets/mossnet"]
|
||||
password.fetch = ["command", "echo", "allpasswordsaccepted"]
|
||||
'';
|
||||
|
||||
"khal/config".text = ''
|
||||
|
|
|
@ -8,11 +8,10 @@
|
|||
frequency = "*:0/30";
|
||||
#postExec = "${pkgs.notmuch}/bin/notmuch new";
|
||||
};
|
||||
services.imapnotify.enable = true;
|
||||
programs.mbsync.enable = true;
|
||||
programs.msmtp.enable = true;
|
||||
programs.notmuch = {
|
||||
enable = true;
|
||||
};
|
||||
programs.notmuch.enable = true;
|
||||
home.file.".mailcap".text = ''
|
||||
text/html; firefox %s
|
||||
application/pdf; zathura %s
|
||||
|
@ -29,7 +28,7 @@
|
|||
#set virtual_spoolfile=yes
|
||||
set folder="~/Mail/anish"
|
||||
set mbox_type = Maildir
|
||||
mailboxes `find ~/Mail/anish/* -maxdepth 0 -type d | grep -v "tmp\|new\|cur" | sed 's|/home/anish/Mail/|=\"|g' | sed 's|$|\"|g' | tr '\n' ' '`
|
||||
mailboxes `find ~/Mail/anish/* -maxdepth 0 -type d | grep -v "Trash\|Spam\|tmp\|new\|cur" | sed 's|/home/anish/Mail/anish|=\"|g' | sed 's|$|\"|g' | tr '\n' ' '`
|
||||
|
||||
## Folder with emails
|
||||
#set folder = "~/Mail/anish"
|
||||
|
@ -51,29 +50,28 @@
|
|||
alternative_order text/plain text/enriched text/html text/*
|
||||
|
||||
# main options
|
||||
#set envelope_from
|
||||
#set edit_headers # show headers when composing
|
||||
#set fast_reply # skip to compose when replying
|
||||
#set askcc # ask for CC:
|
||||
#set fcc_attach # save attachments with the body
|
||||
#set forward_format = "Fwd: %s" # format of subject when forwarding
|
||||
#set forward_decode # decode when forwarding
|
||||
#set attribution = "On %d, %n wrote:" # format of quoting header
|
||||
#set reply_to # reply to Reply to: field
|
||||
#set reverse_name # reply as whomever it was to
|
||||
#set include # include message in replies
|
||||
#set forward_quote # include message in forwards
|
||||
#set text_flowed
|
||||
set envelope_from
|
||||
set edit_headers # show headers when composing
|
||||
set fast_reply # skip to compose when replying
|
||||
set askcc # ask for CC:
|
||||
set fcc_attach # save attachments with the body
|
||||
set forward_format = "Fwd: %s" # format of subject when forwarding
|
||||
set forward_decode # decode when forwarding
|
||||
set attribution = "On %d, %n wrote:" # format of quoting header
|
||||
set reply_to # reply to Reply to: field
|
||||
set reverse_name # reply as whomever it was to
|
||||
set include # include message in replies
|
||||
set forward_quote # include message in forwards
|
||||
set text_flowed
|
||||
#unset sig_dashes # no dashes before sig
|
||||
#unset mime_forward # forward attachments as part of body
|
||||
#unset help # No help bar at the top of index
|
||||
## set status_on_top # Status bar on top of index
|
||||
set status_on_top # Status bar on top of index
|
||||
#set tmpdir = ~/Programs/neomutt/temp # where to keep temp files
|
||||
|
||||
unset confirmappend # don't ask, just do!
|
||||
set quit # don't ask, just do!!
|
||||
unset mark_old # read/new is good enough for me
|
||||
#set beep_new # bell on new mails
|
||||
set pipe_decode # strip headers and eval mimes when piping
|
||||
set thorough_search # strip headers and eval mimes before searching
|
||||
set timeout = 0
|
||||
|
@ -82,10 +80,6 @@
|
|||
set status_chars = " *%A"
|
||||
set status_format = "[ Folder: %f ] [%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]%>─%?p?( %p postponed )?"
|
||||
set date_format = "%d.%m.%Y %H:%M"
|
||||
#set sort = threads
|
||||
#set sort_aux = reverse-last-date-received
|
||||
#set uncollapse_jump
|
||||
#set sort_re
|
||||
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
|
||||
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
|
||||
set send_charset = "utf-8:iso-8859-1:us-ascii"
|
||||
|
@ -106,6 +100,7 @@
|
|||
set pager_stop
|
||||
set menu_scroll
|
||||
set tilde
|
||||
set mail_check_stats
|
||||
unset markers
|
||||
|
||||
#set header_cache = "~/.cache/mutt"
|
||||
|
@ -113,6 +108,64 @@
|
|||
|
||||
set query_command = "khard email --parsable --search-in-source-files '%s'"
|
||||
|
||||
### Mappings Settings
|
||||
|
||||
# General rebindings
|
||||
bind attach <return> view-mailcap
|
||||
bind attach l view-mailcap
|
||||
bind editor <space> noop
|
||||
bind pager c imap-fetch-mail
|
||||
bind index G last-entry
|
||||
bind index g noop
|
||||
bind index gg first-entry
|
||||
bind pager,attach h exit
|
||||
bind pager j next-line
|
||||
bind pager k previous-line
|
||||
bind pager l view-attachments
|
||||
bind index D delete-message
|
||||
bind index U undelete-message
|
||||
bind index L limit
|
||||
bind index h noop
|
||||
bind index l display-message
|
||||
bind browser h goto-parent
|
||||
bind browser l select-entry
|
||||
bind pager,browser gg top-page
|
||||
bind pager,browser G bottom-page
|
||||
bind index,pager,browser d half-down
|
||||
bind index,pager,browser u half-up
|
||||
# bind index,pager R group-reply
|
||||
bind index \031 previous-undeleted # Mouse wheel
|
||||
bind index \005 next-undeleted # Mouse wheel
|
||||
bind pager \031 previous-line # Mouse wheel
|
||||
bind pager \005 next-line # Mouse wheel
|
||||
bind editor <Tab> complete-query
|
||||
|
||||
|
||||
# sidebar mappings
|
||||
bind index,pager \Ck sidebar-prev
|
||||
bind index,pager \Cj sidebar-next
|
||||
bind index,pager \Co sidebar-open
|
||||
bind index,pager \Cp sidebar-prev-new
|
||||
bind index,pager \Cn sidebar-next-new
|
||||
bind index,pager B sidebar-toggle-visible
|
||||
|
||||
# global index and pager shortcuts
|
||||
bind index,pager @ compose-to-sender
|
||||
bind index,pager D purge-message
|
||||
bind index <tab> sync-mailbox
|
||||
bind index <space> collapse-thread
|
||||
|
||||
# Email completion bindings
|
||||
bind editor <Tab> complete-query
|
||||
bind editor ^T complete
|
||||
|
||||
# Press A to archive
|
||||
macro index,pager A "<clear-flag>N<save-message>=/Archive<enter>" "mark message as Archived"
|
||||
# Press C to add contact to Khard address book
|
||||
macro index,pager C \
|
||||
"<pipe-message>khard add-email<return>" \
|
||||
"add the sender email address to khard"
|
||||
|
||||
### Color Settings
|
||||
# Header colors:
|
||||
color header blue default ".*"
|
||||
|
@ -183,64 +236,8 @@
|
|||
|
||||
color progress black cyan
|
||||
|
||||
### Mappings Settings
|
||||
|
||||
# General rebindings
|
||||
bind attach <return> view-mailcap
|
||||
bind attach l view-mailcap
|
||||
bind editor <space> noop
|
||||
bind pager c imap-fetch-mail
|
||||
bind index G last-entry
|
||||
bind index g noop
|
||||
bind index gg first-entry
|
||||
bind pager,attach h exit
|
||||
bind pager j next-line
|
||||
bind pager k previous-line
|
||||
bind pager l view-attachments
|
||||
bind index D delete-message
|
||||
bind index U undelete-message
|
||||
bind index L limit
|
||||
bind index h noop
|
||||
bind index l display-message
|
||||
bind browser h goto-parent
|
||||
bind browser l select-entry
|
||||
bind pager,browser gg top-page
|
||||
bind pager,browser G bottom-page
|
||||
bind index,pager,browser d half-down
|
||||
bind index,pager,browser u half-up
|
||||
bind index,pager R group-reply
|
||||
bind index \031 previous-undeleted # Mouse wheel
|
||||
bind index \005 next-undeleted # Mouse wheel
|
||||
bind pager \031 previous-line # Mouse wheel
|
||||
bind pager \005 next-line # Mouse wheel
|
||||
bind editor <Tab> complete-query
|
||||
|
||||
|
||||
# sidebar mappings
|
||||
bind index,pager \Ck sidebar-prev
|
||||
bind index,pager \Cj sidebar-next
|
||||
bind index,pager \Co sidebar-open
|
||||
bind index,pager \Cp sidebar-prev-new
|
||||
bind index,pager \Cn sidebar-next-new
|
||||
bind index,pager B sidebar-toggle-visible
|
||||
|
||||
# global index and pager shortcuts
|
||||
bind index,pager @ compose-to-sender
|
||||
bind index,pager D purge-message
|
||||
bind index <tab> sync-mailbox
|
||||
bind index <space> collapse-thread
|
||||
|
||||
# Email completion bindings
|
||||
bind editor <Tab> complete-query
|
||||
bind editor ^T complete
|
||||
|
||||
# Press A to add contact to Khard address book
|
||||
macro index,pager A \
|
||||
"<pipe-message>khard add-email<return>" \
|
||||
"add the sender email address to khard"
|
||||
'';
|
||||
};
|
||||
services.imapnotify.enable = true;
|
||||
home.packages = [ pkgs.neomutt pkgs.evolution ];
|
||||
|
||||
accounts.email = {
|
||||
|
@ -282,7 +279,7 @@
|
|||
};
|
||||
passwordCommand = "${pkgs.coreutils}/bin/cat /run/agenix/fastmail";
|
||||
smtp = {
|
||||
host = "fastmail.com";
|
||||
host = "smtp.fastmail.com";
|
||||
};
|
||||
userName = "anish@lakhwara.com";
|
||||
neomutt = {
|
||||
|
|
Loading…
Reference in a new issue