[neomutt-users] How to best configure NeoMutt with multiple
Kenneth Flak
kennethflak at protonmail.com
Thu Aug 31 09:37:02 CEST 2023
Glad to be of help ;-)
The only downside to this is that you will have to re-download all your emails whenever you reconfigure something on the Proton side. Luckily this has gotten a lot faster these days, used to take forever...
Feel free to study my muttrc: https://gitlab.com/kflak/dots/-/blob/main/mutt/muttrc?ref_type=heads
You might find a few more nuggets that will help you on your way.
Best,
Kenneth
--
Roosna & Flak - Contemporary Dance & Music
Web: roosnaflak.com
Code: {github,gitlab}.com/kflak
Mastodon: @kf at sonomu.club
On 31 Aug 2023 07:17, boB i_persevere wrote:
>On 31.08.2023 06:36, Kenneth Flak wrote:
>>
>>I also haven't found a way to search through the messages from Protonmail server-side, but that's usually not an issue, as I pull all the messages to my machine locally anyway and can search them there... I use mbsync to get the mails, and notmuch to search through them, using this macro:
>>
>>macro index L "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp at a;s/\^id:// for at a;$,=\"|\";print at a'\`\"<enter>" "show only messages matching a notmuch pattern"
>
>This will be useful for me. Thanks! You are at about where I intend to
>end up -- keeping and searching through my mail locally. I also hope
>this will greatly speed up my access to my mail as I won't have to wait
>on the Proton servers, which at times seem a bit slow.
>
>>I also use this script to automate the pulling of emails and updating of the search database:
>>
>>#!/bin/sh
>>
>>MBSYNC=$(pgrep mbsync)
>>NOTMUCH=$(pgrep notmuch)
>>
>>if [ -n "$MBSYNC" -o -n "$NOTMUCH" ]; then
>> echo "Already running one instance of mail-sync. Exiting..."
>> exit 0
>>fi
>>
>>echo "Deleting messages tagged as *deleted*"
>>notmuch search --format=text0 --output=files tag:deleted | xargs -0 --no-run-if-empty rm -v
>>
>>mbsync -a
>>notmuch new
>>
>>
>>I run it periodically with a systemd-timer, or manually if I get impatient.
>
>Again, thanks! You are probably going to save me a fair chunk of work!!
>
>
>--
>Wishing you only the best,
>boB i_persevere
>
>You are the storyteller of your own life, and you can create your own
>legend, or not.
> -- Isabel Allende
>
More information about the neomutt-users
mailing list