Automatically reply from a different address depending on mailbox and from/to addresses

Is there any way to configure mailspring so that, when I hit reply on a message, it selects one of my email addresses (me@my.personal.site, full.name@employer.com, etc.) to use in From:, based on configurable rules including things like

  • the email address the message was sent to (which might not be any of the configured sender addresses)
  • the mailbox the message is in
  • the identity of the sender

?

There’s no rules engine for this, but the most common case is built in: when you reply, Mailspring looks at the To/Cc addresses of the message you’re replying to, and if one of them matches an alias you’ve set up for that account, it replies from that alias automatically (otherwise it uses the account’s default). If me@my.personal.site and full.name@employer.com both deliver into the same mailbox, add each one under Preferences > Accounts > (the account) > Aliases and replies will pick the right From address based on who the message was sent to — which covers your first bullet without any configuration beyond that.

What it can’t do: choose based on the folder the message is in or on the sender’s identity, and it can’t reply from a different account — replies always go out through the account the message arrived in (you can switch between that account’s aliases in the composer, but not to another account). Details on that limitation: Can I reply to or forward an email using a different account? — Mailspring Documentation

If your addresses are separate accounts rather than aliases on one mailbox, the practical setup is to make sure each address’s mail lands in its own account; replies then naturally come from the address that received them.