Discussion:
notmuch-mutt with multiple pop accounts/inboxes?
(too old to reply)
Susan Ruiz
2018-11-12 16:30:54 UTC
Permalink
Hi, can notmuch-mutt be used with multiple pop accounts/inboxes?

I am currently using the notmuch script, as indicated by the
documentation https://notmuchmail.org/notmuch-mutt/

My problem is when configuring the path, I see that a single one is
requested to verify, and this does not work for me since I have two
maildir path for my two emails, I tried to configure via
.notmuch-config unsuccessfull.
--
Susan Ruiz
downtime
2018-11-27 04:59:14 UTC
Permalink
Post by Susan Ruiz
Hi, can notmuch-mutt be used with multiple pop accounts/inboxes?
I am currently using the notmuch script, as indicated by the
documentation https://notmuchmail.org/notmuch-mutt/
My problem is when configuring the path, I see that a single one is
requested to verify, and this does not work for me since I have two
maildir path for my two emails, I tried to configure via
.notmuch-config unsuccessfull.
It can absolutely handle multiple POP accounts, primarily because it
doesn't care about the accounts themselves. I'm not super sure about POP
directory configs, but with offlineimap, you setup a maildir (typically
~/Maildir or similar), and have separate subfolders for your accounts.
Then you would config ~/Maildir as the mail directory and run 'notmuch
new'. That would build the notmuch db in ~/Maildir which includes all
subdirs. Then, instead of the way you would normally think of a maildir,
you setup virtual folders based on the To: address (for account
specific) or whatever criteria you choose. It would look something like
this in your .muttrc:

# notmuch
unmailboxes *
unvirtual-mailboxes *
virtual-mailboxes \
"accountone:Inbox" "notmuch://?query=tag:inbox and tag:unread and to:***@nowhere.com"\
"accountone:Today" "notmuch://?query=to:***@nowhere.com and date:today"\
"accountone:Yesterday" "notmuch://?query=to:***@nowhere.com and date:yesterday"\
"accountone:This Week" "notmuch://?query=to:***@nowhere.com and date:7d.."\
"accountone:Starred" "notmuch://?query=tag:star and tag:accountone"\
"accountone:Sent" "notmuch://?query=from:***@nowhere.com"\
"accountone:Orders" "notmuch://?query=tag:order and tag:accountone"\
"accountone:Todo" "notmuch://?query=tag:todo and tag:accountone"\
"accountone:Archive" "notmuch://?query=tag:archive and tag:accountone"\
"accountone:sales.inbox" "notmuch://?query=to:***@nowhere.com and tag:inbox"\
"accountone:sales.unread" "notmuch://?query=to:***@nowhere.com and tag:unread"
Loading...