Multiple accounts: Configure Sent and Draft Folder per Account
I have configured mbsync so it syncs into
./mail/acc1/INBOX (maildir)
./mail/acc1/Sent (maildir)
...
./mail/acc2/INBOX (maildir)
./mail/acc2/Sent (maildir)
When i send mails with bower and msmtp, they end up in ./mail/Sent.
Do I need to write a script, which i reference with:
[account.default]
post_sendmail = script
Or is there an easier config, which i obviously missed?
I would search the option at account config. I have an account, where Sent is in Inbox
[account.default]
maildir_sent = ./mail/acc3/Inbox
maildir_draft = ./mail/acc3/Draft
Or is there an easier config, which i obviously missed?
You didn't miss anything, it's not supported.
[account.default] maildir_sent = ./mail/acc3/Inbox maildir_draft = ./mail/acc3/Draft
That might be okay. Then we would (or should) probably stop using the [bower:mailder] section in .notmuch-config.
That's not entirely true ;) Notmuch insert supports specifying a target directory, so using post_sendmail for specifying the output directory is actually pretty straightforward.
[account.default]
post_sendmail = notmuch insert --folder=acc3/Sent -inbox -unread +sent
Dealing with drafts is a lot less straightforward, since drafts don't necessarily have an account associated to them. I may very well start writing a draft without filling in From:, so we would at least need some sort of fallback for that.