Changeset View
Changeset View
Standalone View
Standalone View
kmime/kmime_header_parsing.cpp
Show First 20 Lines • Show All 1,202 Lines • ▼ Show 20 Lines | bool parseMailbox( const char* &scursor, const char * const send, | ||||
// second, see if there's a display-name: | // second, see if there's a display-name: | ||||
if ( !parsePhrase( scursor, send, maybeDisplayName, isCRLF ) ) { | if ( !parsePhrase( scursor, send, maybeDisplayName, isCRLF ) ) { | ||||
// failed: reset cursor, note absent display-name | // failed: reset cursor, note absent display-name | ||||
maybeDisplayName.clear(); | maybeDisplayName.clear(); | ||||
scursor = oldscursor; | scursor = oldscursor; | ||||
} else { | } else { | ||||
// succeeded: eat CFWS | // succeeded: eat CFWS | ||||
if (*scursor == '@') { | |||||
maybeDisplayName += QLatin1Char('@'); | |||||
scursor++; | |||||
} | |||||
eatCFWS( scursor, send, isCRLF ); | eatCFWS( scursor, send, isCRLF ); | ||||
if ( scursor == send ) { | if ( scursor == send ) { | ||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
// third, parse the angle-addr: | // third, parse the angle-addr: | ||||
if ( !parseAngleAddr( scursor, send, maybeAddrSpec, isCRLF ) ) { | if ( !parseAngleAddr( scursor, send, maybeAddrSpec, isCRLF ) ) { | ||||
▲ Show 20 Lines • Show All 1,052 Lines • Show Last 20 Lines |