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

Mail::Message::Field::Address - long phrases with brackets #2

Closed
abeverley opened this issue Feb 10, 2022 · 3 comments
Closed

Mail::Message::Field::Address - long phrases with brackets #2

abeverley opened this issue Feb 10, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@abeverley
Copy link

Phrases with brackets do not appear to be encoded correctly as quoted-printable by Mail::Message::Field::Address. This only seems to happen under certain circumstances, with particularly long phrases. The following demonstrates the problem:

my $f = Mail::Message::Field::Address->new(
    address => 'andy@example.com',
    phrase  => 'John Smith with a long long long long phrase (via test list)',
);

my $new = Mail::Message::Field::Address->parse("$f");
print $new->phrase; # Prints ?=
@markov2 markov2 added the bug Something isn't working label Feb 10, 2022
@markov2
Copy link
Owner

markov2 commented Feb 10, 2022

When parsing an unquoted phrase, some characters permitted inside =?.*?= can be confused with their special meaning in the email syntax (in this case, the parenthesis are assigned for comments) The initial grabbing of the phrase is smarter now.

3e0c8e1

@markov2
Copy link
Owner

markov2 commented Feb 10, 2022

Ah. stupid of me: accidentally removed the last test in the final clean-up Thanks for reporting.

@markov2 markov2 closed this as completed Feb 10, 2022
@abeverley
Copy link
Author

Thanks Mark.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants