Commit 1ae49df1 authored by Laurent Montel's avatar Laurent Montel 😁

Fix define language in template

parent c3d1e0a6
......@@ -311,7 +311,16 @@ void TemplateParser::processWithTemplate( const QString &tmpl )
QString q;
int len = parseQuotes( QLatin1String("REM="), cmd, q );
i += len;
} else if ( cmd.startsWith( QLatin1String( "LANGUAGE=" ) ) ) {
QString q;
const int len = parseQuotes( QLatin1String("LANGUAGE="), cmd, q );
i += len;
if (!q.isEmpty()) {
KMime::Headers::Generic *header =
new KMime::Headers::Generic( "X-KMail-Dictionary", mMsg.get(),
q, "utf-8" );
mMsg->setHeader( header );
}
} else if ( cmd.startsWith( QLatin1String( "INSERT=" ) ) || cmd.startsWith( QLatin1String( "PUT=" ) ) ) {
QString q;
int len = 0;
......
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