• notmuch-mutt with multiple pop accounts/inboxes?

    From Susan Ruiz@21:1/5 to All on Mon Nov 12 16:30:54 2018
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From downtime@21:1/5 to Susan Ruiz on Tue Nov 27 04:59:14 2018
    Susan Ruiz <susan.ruiz.unefa@gmail.com> wrote:
    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:noone@nowhere.com"\
    "accountone:Today" "notmuch://?query=to:noone@nowhere.com and date:today"\
    "accountone:Yesterday" "notmuch://?query=to:noone@nowhere.com and date:yesterday"\
    "accountone:This Week" "notmuch://?query=to:noone@nowhere.com and date:7d.."\
    "accountone:Starred" "notmuch://?query=tag:star and tag:accountone"\
    "accountone:Sent" "notmuch://?query=from:noone@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:sales@nowhere.com and tag:inbox"\
    "accountone:sales.unread" "notmuch://?query=to:sales@nowhere.com and tag:unread"

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)