Dirk Heinrichs wrote: > Am Dienstag, 19. Juni 2007 schrieb Jan-Hendrik Zab: > > O_o Dunno why it should be different in KMail? > > Hmm, maybe it's confused because of the two separators. It cuts > off after the second one,
KMail by design cuts at the last separator instead of the first. Attached is a patch that changes this. -- Benno
--- kdepim-3.5.1/kmail/kmmessage.cpp.old 2006-01-19 17:55:47.000000000 +0100 +++ kdepim-3.5.1/kmail/kmmessage.cpp 2006-03-03 16:26:48.000000000 +0100 @@ -628,9 +628,9 @@ static QString stripSignature( const QString & msg, bool clearSigned ) { if ( clearSigned ) - return msg.left( msg.findRev( QRegExp( "\n--\\s?\n" ) ) ); + return msg.left( msg.find( QRegExp( "\n--\\s?\n" ) ) ); else - return msg.left( msg.findRev( "\n-- \n" ) ); + return msg.left( msg.find( "\n-- \n" ) ); } QString KMMessage::smartQuote( const QString & msg, int maxLineLength )