-
Notifications
You must be signed in to change notification settings - Fork 96
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
missleading message:queue documentation (not ran before) #316
Comments
It's actually in an in-between state. The email contents have been stored, but the required queue data info has not. After |
I still think the documentation is missleading. We had a script to slow down users sending huge attachments, which proved not work as expected because the mail was already stored when the hook was reached :) We were throttling AFTER the body (huge) was saved (the thing we were trying to avoid). |
Well, I'm not sure what would be the best solution for you. Once the SMTP clients issues that DATA command you must process the incoming email stream in full. Until the client has not issued that command, there could still be some routing-specific commands coming ( I guess, you should probably use From the plugin docs:
|
|
I guess if you want to reject and not store a message, you could create a plugin for |
Our hack was to send SIZE in But this issue is for updating the docs to not make people think that the plugin is ran before the message is stored to the queue (mongo). This mention that the plugin is ran before storing to queue confused us a lot since the size limitation we did was not working. Maybe we can mention the details in the docs, that the message body is actually stored to the queue to make it clear. |
In the plugins page the
message:queue
is advertised as running BEFORE the message is stored to the queue. By checking the code i think it runs AFTER hence thequeue.removeMessage
call in case of error.Am i wrong ? @andris9
The text was updated successfully, but these errors were encountered: