We need to strip the signature from the message before we remove the quote characters "> " from it and put the quoted text inside a BLOCKQUOTE element. Before this change the text after "-- \n" sequence could be removed as there was no quote character on the beginning of the line.