Skip to content

chardet + dry-run + doc upgrade#137

Open
jkbzh wants to merge 13 commits into
3.0from
chardet
Open

chardet + dry-run + doc upgrade#137
jkbzh wants to merge 13 commits into
3.0from
chardet

Conversation

@jkbzh

@jkbzh jkbzh commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

No description provided.

jkbzh and others added 13 commits November 8, 2024 14:09
…o utf-8 /

remove compiler warnings

New function header_detect_charset_and_convert_to_utf8() that
converts selected mail headers (Subject:, To:, From:) to UTF-8
using the charset field from the message's Content-Type header.
If no charset field exists and the header's value is neither valid
ASCII or UTF-8, the function will use libchardet to try to detect
its charset and convert it to UTF-8. If all fails, the header
value will be replaced with "(invalid string)".

Fixed compiler warnings as reported by pedantic, unused variables flags.
…o utf-8 /

remove compiler warnings

New function header_detect_charset_and_convert_to_utf8() that
converts selected mail headers (Subject:, To:, From:) to UTF-8
using the charset field from the message's Content-Type header.
If no charset field exists and the header's value is neither valid
ASCII or UTF-8, the function will use libchardet to try to detect
its charset and convert it to UTF-8. If all fails, the header
value will be replaced with "(invalid string)".

Fixed compiler warnings as reported by pedantic, unused variables flags.
helpful for distinguishing differences between 2.4 and 3.0 parsers
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.

1 participant