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

Handle latin encoded chars found in reports and messageid #1208

Merged
merged 2 commits into from
Mar 28, 2021

Conversation

shawniverson
Copy link
Member

No description provided.

in reports and messageid
@shawniverson
Copy link
Member Author

Fixes #1198

@shawniverson shawniverson linked an issue Mar 7, 2021 that may be closed by this pull request
$msg{hostname} = $hostname;
$msg{date} = $date;
$msg{"time"} = $time;
$msg{headers} = join("\n", map { fix_latin($_)} @{$message->{headers}});
$msg{quarantined} = $quarantined;
$msg{rblspamreport} = $message->{rblspamreport};
$msg{token} = $token;
$msg{messageid} = $messageid;
$msg{messageid} = fix_latin($messageid);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't messageid limited to ASCII charset?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A non-compliant message seems it can have latin chars in here so it bombs out.

@endelwar endelwar merged commit ea3a7a9 into mailwatch:1.2 Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not logging mail to SQL
2 participants