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
Invalid email '@example.com' - Parser fails for emails that only contain "" in the local part #4896
Comments
I think the issue can't be handled without an example email. Maybe you can send us an |
Thanks for looking into it, @rolfschmidt. I have forwarded you the email in question. Please make sure to check your spam folder, as the email attached was classified as spam previously. |
thx for the example mail @KarimGeiger. The From and To field of it is definitely invalid and should not be processed. For us zammad behaves correctly in this case. |
Respectfully, I disagree, @rolfschmidt. Since it is a valid email address, it should not cause Zammad to fail. The error message does not contain the |
[2] pry(main)> EmailAddressValidator.error(%Q[""@example.com], host_validation: :syntax)
=> "Mailbox name too short" Our lib does currently not accept your address. But If you want, I can ask some colleagues for different opinions on this topic: |
After some further research, I must say it is a valid email address. It is called the quoted string format of the local part. It is not widely implemented in SMTP servers, because it has many downsides and obstacles on the server side. The idea of the quoted string format is to allow the usage of further special characters.
🤯 So, even a quoted empty string as a local part is allowed. |
Wouldn't the email address with "empty" local part be an issue in Zammad in combination with the unique email address detection? It's like logging in as Maybe that's just me though. |
The quotes are literally part of the alias, so the resulting User email (login) attribute value is |
Used Zammad Version
6.1.0
Environment
cat /etc/os-release
): Ubuntu 20.04Actual behaviour
Unfortunately, someone though sending us a spam email from
""@xxx.yy.zz.example
would be a great idea... (note the "" in before the @)In this case, the parsing fails:
Expected behaviour
Parsing succeeds as it seems to be a valid email address (at least I would assume so, since Gmail delivered it).
Steps to reproduce the behaviour
Send an email from
""@xxx.yy.zz.example
to an inbox monitored by Zammad.Support Ticket
(Ticket#10144753), Ticket#10145733
I'm sure this is a bug and no feature request or a general question.
yes
The text was updated successfully, but these errors were encountered: