Identifying multiple imap accounts with new mail in sidebar
Neubienaut
neubienaut at gmail.com
Fri Feb 24 12:59:13 UTC 2023
Hello all,
Any thoughts or suggestions on how to accomplish the next step in my
mutt setup process?
I would like to view my various imap accounts in the sidebar with count
of new messages so I don't have
to reopen each account in mutt (with mutt -f 'imap config file') to
check for new mail.
LONGER EXPLANATION
I recently decided to revisit mutt as my email client after about a ten
year hiatus from mutt.
I have been having fun over the past week setting up various config
files and such.
I currently have multiple mutt config files (muttrc) for the different
imap accounts I have.
I use aliases in bash to open up the different accounts
So, in bash:
gmn = will open neubienaut gmail imap account (mutt -F config file 1)
prn = will open neubienaut protonmail account (mutt -F config file 2)
I have the sidebar setup so that the account's sub folders are visible
in the sidebar when a particular account is opened
set imap_check_subscribed = yes
set sidebar_sort_method=alpha
set sidebar_folder_indent = yes
Now, what I would like to do is setup a system so that I can determine
which email accounts have new mail and open them in mutt
so that I don't have to open each email account beforehand, in a
separate script, to determine which accounts have new mail and
which accounts do not have new mail.
I have 5+ email accounts so it is a bit cumbersome to open each account.
An example of what I am trying to achieve would be Thunderbird that has
a list of all my email accounts in the sidebar
and let's me know which accounts have new email except I don't
necessarily want all the email accounts and subfolders to
show up in the sidebar at the same time.
For the next step in my setup process I would like to be able to either
1.
a. show all imap accounts in sidebar with number of new messages.
b. then, by selecting a particular imap account with new email in sidebar
c. I can then go to the sub-folder view for that account and check the
new mail
2
a. Have a script in bash that can poll the various imap accounts and
check for new email.
b. find the first imap account with new email and open that account in
mutt
c. when mutt is closed, rerun the script to check for remaining
accounts with new mail
d. open the next account with new mail
e. repeat process until and accounts with new mail have been viewed
3 Maybe some third idea for checking all my accounts I haven't thought of?
Any thoughts or suggestions on how to accomplish the next step in my
mutt setup process?
TIA
More information about the Mutt-users
mailing list