dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 5ae56ce2b4673d9c0caac37e04c9113296b483d0
parent d883861e569af1233fc4d29bcd8ab8c07b9b4d79
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Sun, 26 Sep 2021 11:17:03 +0200

mutt: add short-range archive

Loading the full archive takes a couple of seconds, so I created a
vfolder for archived messages from the last 2 months only.

Diffstat:
Mmutt/personal | 9++++++---
Mmutt/school | 9++++++---
2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/mutt/personal b/mutt/personal @@ -20,12 +20,14 @@ unmailboxes * unvirtual-mailboxes * virtual-mailboxes \ "Inbox (P)" "notmuch://?query=folder:$my_personal_email/Inbox" \ - "Archive (P)" "notmuch://?query=folder:$my_personal_email/Archive" \ + "Archive (2M) (P)" "notmuch://?query=folder:$my_personal_email/Archive and date:2M..today" \ "Drafts (P)" "notmuch://?query=folder:$my_personal_email/Drafts" \ "Tickets (P)" "notmuch://?query=folder:$my_personal_email/Tickets" \ "Sent (P)" "notmuch://?query=folder:$my_personal_email/Sent" \ "Trash (P)" "notmuch://?query=folder:$my_personal_email/Trash" \ - "Spam (P)" "notmuch://?query=folder:$my_personal_email/Spam" + "Spam (P)" "notmuch://?query=folder:$my_personal_email/Spam" \ + "Archive (All) (P)" "notmuch://?query=folder:$my_personal_email/Archive" + set spoolfile = "Inbox (P)" set header_cache = '~/.cache/mutt/$my_personal_email/headers' @@ -63,7 +65,8 @@ macro index,pager u "\ # Changing folders macro index,pager gi "<change-vfolder>Inbox (P)<enter>" "go to Inbox" -macro index,pager ga "<change-vfolder>Archive (P)<enter>" "go to Archive" +macro index,pager ga "<change-vfolder>Archive (2M) (P)<enter>" "go to recent Archive" +macro index,pager gA "<change-vfolder>Archive (All) (P)<enter>" "go to Archive" macro index,pager gd "<change-vfolder>Drafts (P)<enter>" "go to Drafts" macro index,pager gj "<change-vfolder>Spam (P)<enter>" "go to Spam" macro index,pager gt "<change-vfolder>Trash (P)<enter>" "go to Trash" diff --git a/mutt/school b/mutt/school @@ -18,11 +18,13 @@ unmailboxes * unvirtual-mailboxes * virtual-mailboxes \ "Inbox (S)" "notmuch://?query=folder:$my_school_email/Inbox" \ - "Archive (S)" "notmuch://?query=folder:$my_school_email/Archive" \ + "Archive (2M) (S)" "notmuch://?query=folder:$my_school_email/Archive and date:2M..today" \ "Drafts (S)" "notmuch://?query=folder:$my_school_email/Drafts" \ "Sent (S)" "notmuch://?query='folder:\"$my_school_email/Sent Items\"'" \ "Trash (S)" "notmuch://?query='folder:\"$my_school_email/Deleted Items\"'" \ - "Spam (S)" "notmuch://?query='folder:\"$my_school_email/Junk Email\"'" + "Spam (S)" "notmuch://?query='folder:\"$my_school_email/Junk Email\"'" \ + "Archive (All) (S)" "notmuch://?query=folder:$my_school_email/Archive" + set spoolfile = "Inbox (S)" set header_cache = ~/.cache/mutt/$my_school_email/headers @@ -60,7 +62,8 @@ macro index,pager u "\ # Changing folders macro index,pager gi "<change-vfolder>Inbox (S)<enter>" "go to Inbox" -macro index,pager ga "<change-vfolder>Archive (S)<enter>" "go to Archive" +macro index,pager ga "<change-vfolder>Archive (2M) (S)<enter>" "go to recent Archive" +macro index,pager gA "<change-vfolder>Archive (All) (S)<enter>" "go to Archive" macro index,pager gd "<change-vfolder>Drafts (S)<enter>" "go to Drafts" macro index,pager gj "<change-vfolder>Spam (S)<enter>" "go to Spam" macro index,pager gt "<change-vfolder>Trash (S)<enter>" "go to Trash"