Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow rules to alter server response #31

Closed
jjbott opened this issue Oct 13, 2016 · 3 comments
Closed

Allow rules to alter server response #31

jjbott opened this issue Oct 13, 2016 · 3 comments

Comments

@jjbott
Copy link

jjbott commented Oct 13, 2016

It'd be nice if rules were implemented in a way that allowed them to change the server response to something besides "250 OK". That'd make it easier to test how programs respond to various errors.

For example, I'd like to test cases where the SMTP server rejects a message due to attachment sizes being too large. I tried implementing a new rule that would have the intended effect, but found that the rules can not alter the response

Edit: Obviously if I'm mucking in the code I can have it return anything I want, but it'd be nice if it was a built in feature of the rules

@Jaben
Copy link
Member

Jaben commented Oct 18, 2016

Interesting idea. I'll see what I can do.

@rhelms
Copy link

rhelms commented Jan 10, 2017

Seconding this idea.

Being able to have a Reject rule would be great.

Perhaps similar to the Conditional Forward, there would be a Regex on the body, regex on the header and additionally, regex on the recipients (To, CC and BCC). And then there would be a configurable response, perhaps defaulting to a Recipient Not Found response (and whatever the special code is for that).

@stale
Copy link

stale bot commented Feb 6, 2019

Aloha! I'm ScissorBot ✂️ -- the bot in charge of keeping the issues tidy. It looks like this issue is stale due to lack of activity. Unfortunately, I'll be closing it if there is no further activity. 😞 Please contribute to the issue to keep it open. Thanks!

@stale stale bot added the wontfix label Feb 6, 2019
@stale stale bot closed this as completed Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants