Commit bf5d0237 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Disable code for the moment. It breaks some email address

parent 7f42d8b9
......@@ -255,7 +255,7 @@ void Structured::from7BitString(const char *s, size_t len)
void Structured::from7BitString(const QByteArray &s)
{
#if 1
#if 0
Q_D(Structured);
//Bug about mailto with space which are replaced by "_" so it failed to parse
//=> we reconvert to correct encoding as RFC2047
......@@ -1874,7 +1874,6 @@ bool ContentType::parse(const char *&scursor, const char *const send,
if (!parseToken(scursor, send, maybeMimeType, ParseTokenNoFlag)) {
return false;
}
// subtype
eatCFWS(scursor, send, isCRLF);
if (scursor == send || *scursor != '/') {
......@@ -1885,7 +1884,6 @@ bool ContentType::parse(const char *&scursor, const char *const send,
if (scursor == send) {
return false;
}
QPair<const char *, int> maybeSubType;
if (!parseToken(scursor, send, maybeSubType, ParseTokenNoFlag)) {
return false;
......@@ -1900,7 +1898,6 @@ bool ContentType::parse(const char *&scursor, const char *const send,
if (scursor == send) {
goto success; // no parameters
}
if (*scursor != ';') {
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment