mirror of
https://github.com/Pro/exchange-catchall.git
synced 2026-04-25 07:25:53 +03:00
[GH-ISSUE #16] Change message subject #14
Labels
No labels
bug
enhancement
pull-request
question
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/exchange-catchall#14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @base1983 on GitHub (Jul 11, 2016).
Original GitHub issue: https://github.com/Pro/exchange-catchall/issues/16
Is it possible to change the subject with a prepend? Like subject: [NON EXISTEND USER] SUBJECT.
@Pro commented on GitHub (Jul 11, 2016):
It's not yet implemented, but it would be possible.
For that functionality the config needs two additional optional fields. Something like:
and then the signer needs to check if the user from
$1exists, somewhere here:https://github.com/Pro/exchange-catchall/blob/master/CatchAllAgent/CatchAllAgent.cs#L217
This is the harder part: How can the transport agent check for existing users?
I'm open for suggestions or pull requests.
@base1983 commented on GitHub (Jul 11, 2016):
Somehow the transport agent already knows this. You send a email and it goes to the catchall only is the recepient doesn't exist.
@Pro commented on GitHub (Jul 11, 2016):
Oh yeah, right, sorry. Forgot about this step.
So what needs to be done is to implement the code lines in here:
https://github.com/Pro/exchange-catchall/blob/master/CatchAllAgent/CatchAllAgent.cs#L190
I.e. set the replaceWith to the fallbackAddress if there is any. And if needed, update the subject.
Open for pull requests.