Similar to the MAILFROM (envelope FROM) condition, there should be a RECIPIENT condition that equates to the RCPT TO. This would allow for conditioning on the recipient even if not present in a header, e.g. BCC'd messages.
As alluded to in [LBBS-31], user MailScript EXEC should run in their container. This way, EXEC is "safe" since it can't interact with the system at large, and users can edit their own MailScript rules. The exact mechanism might be tricky (perhaps a symlink in their home directory which links to the actual file in the maildir), but this would make things a lot more elegant.
Additionally, all valid conditions, actions, etc. should be documented in the sample .rules
config.
You must be
9/14/2024 6:42 PM — InterLinked
Autoresolved by code commit on GitHub:
mod_mailscript: Add RECIPIENT condition.
https://github.com/InterLinked1/lbbs/commit/efeba8403b4b55f7ea9019f08774b29302f45298