rem: header = header.mid(1,  header.find( "@" ) - 1);
add: if ( header[0] == '<' ) header = header.mid(1,  header.find( "@" ) - 1); else header = header.left( header.find( "@" ) );
context: static QString check_x_mailing_list(const KMMessage  *message,                                    QString &header_name,                                    QString &header_value ){    QString header = message->headerField( "X-Mailing-List");    if ( header.isEmpty() )        return QString::null;    if (header.at( 0 ) != '<' || header.find( "@" ) < 2  ||        header.at( header.length() - 1 ) != '>')        return QString::null;    header_name = "X-Mailing-List";    header_value = header;    header = header.mid(1,  header.find( "@" ) - 1);    return header;}