From 045cbb1d06f0d01a295180b336384c1c26fe5cc6 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sat, 19 Oct 2024 11:13:32 +0200 Subject: mutt: try to fix the lag --- .config/mutt/accounts/1-ceng_argor.muttrc | 3 +++ .config/mutt/accounts/2-metu_argor.muttrc | 3 +++ .config/mutt/accounts/3-ceng_stu.muttrc | 3 +++ .config/mutt/accounts/4-metu_stu.muttrc | 3 +++ .config/mutt/accounts/5-xyz.muttrc | 3 +++ .config/mutt/mailcap | 2 -- .config/mutt/muttrc | 10 ++++++++-- 7 files changed, 23 insertions(+), 4 deletions(-) diff --git a/.config/mutt/accounts/1-ceng_argor.muttrc b/.config/mutt/accounts/1-ceng_argor.muttrc index 1656992..343adcf 100644 --- a/.config/mutt/accounts/1-ceng_argor.muttrc +++ b/.config/mutt/accounts/1-ceng_argor.muttrc @@ -9,6 +9,9 @@ set header_cache = /home/yigit/.cache/mutt-wizard/ceng_argor/headers set message_cachedir = /home/yigit/.cache/mutt-wizard/ceng_argor/bodies set mbox_type = Maildir +# use very high $read_inc to speed up reading hcache'd maildirs +folder-hook . 'set read_inc=1000' + bind index,pager gg noop bind index,pager g noop bind index,pager M noop diff --git a/.config/mutt/accounts/2-metu_argor.muttrc b/.config/mutt/accounts/2-metu_argor.muttrc index cbbb53a..db3f73a 100644 --- a/.config/mutt/accounts/2-metu_argor.muttrc +++ b/.config/mutt/accounts/2-metu_argor.muttrc @@ -9,6 +9,9 @@ set header_cache = /home/yigit/.cache/mutt-wizard/metu_argor/headers set message_cachedir = /home/yigit/.cache/mutt-wizard/metu_argor/bodies set mbox_type = Maildir +# use very high $read_inc to speed up reading hcache'd maildirs +folder-hook . 'set read_inc=1000' + bind index,pager gg noop bind index,pager g noop bind index,pager M noop diff --git a/.config/mutt/accounts/3-ceng_stu.muttrc b/.config/mutt/accounts/3-ceng_stu.muttrc index 5e7472c..1205084 100644 --- a/.config/mutt/accounts/3-ceng_stu.muttrc +++ b/.config/mutt/accounts/3-ceng_stu.muttrc @@ -9,6 +9,9 @@ set header_cache = /home/yigit/.cache/mutt-wizard/ceng_stu/headers set message_cachedir = /home/yigit/.cache/mutt-wizard/ceng_stu/bodies set mbox_type = Maildir +# use very high $read_inc to speed up reading hcache'd maildirs +folder-hook . 'set read_inc=1000' + bind index,pager gg noop bind index,pager g noop bind index,pager M noop diff --git a/.config/mutt/accounts/4-metu_stu.muttrc b/.config/mutt/accounts/4-metu_stu.muttrc index 959586d..c3cc178 100644 --- a/.config/mutt/accounts/4-metu_stu.muttrc +++ b/.config/mutt/accounts/4-metu_stu.muttrc @@ -9,6 +9,9 @@ set header_cache = /home/yigit/.cache/mutt-wizard/metu_stu/headers set message_cachedir = /home/yigit/.cache/mutt-wizard/metu_stu/bodies set mbox_type = Maildir +# use very high $read_inc to speed up reading hcache'd maildirs +folder-hook . 'set read_inc=1000' + bind index,pager gg noop bind index,pager g noop bind index,pager M noop diff --git a/.config/mutt/accounts/5-xyz.muttrc b/.config/mutt/accounts/5-xyz.muttrc index bf56c52..108fe51 100644 --- a/.config/mutt/accounts/5-xyz.muttrc +++ b/.config/mutt/accounts/5-xyz.muttrc @@ -9,6 +9,9 @@ set header_cache = /home/yigit/.cache/mutt-wizard/xyz/headers set message_cachedir = /home/yigit/.cache/mutt-wizard/xyz/bodies set mbox_type = Maildir +# use very high $read_inc to speed up reading hcache'd maildirs +folder-hook . 'set read_inc=1000' + bind index,pager gg noop bind index,pager g noop bind index,pager M noop diff --git a/.config/mutt/mailcap b/.config/mutt/mailcap index 3646d07..b355f32 100644 --- a/.config/mutt/mailcap +++ b/.config/mutt/mailcap @@ -7,5 +7,3 @@ audio/*; mpv %s ; application/pdf; openfile %s ; application/pgp-encrypted; gpg -d '%s'; copiousoutput; application/pgp-keys; gpg --import '%s'; copiousoutput; -text/calendar; mutt-ics; copiousoutput -application/ics; mutt-ics; copiousoutput diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc index 7b82f89..2b6b5ca 100644 --- a/.config/mutt/muttrc +++ b/.config/mutt/muttrc @@ -13,10 +13,16 @@ set fcc_attach # save attachments with the body set forward_format = "Fwd: %s" # format of subject when forwarding set forward_quote # include message in forwards set reverse_name # reply as whomever it was to -set mail_check=60 # to avoid lags using IMAP with some email providers (yahoo for example) -auto_view text/html # automatically show html (mailcap uses w3m) + +set mail_check = 60 # to avoid lags using IMAP with some email providers +set timeout = 60 +set sleep_time = 0 +set mail_check = 0 + +auto_view text/html auto_view application/pgp-encrypted auto_view text/calendar application/ics + alternative_order text/plain text/enriched text/html bind index,pager i noop bind index,pager g noop -- cgit v1.2.3-70-g09d2