author | groucho <groucho> | 2003-05-07 06:54:33 (UTC) |
---|---|---|
committer | groucho <groucho> | 2003-05-07 06:54:33 (UTC) |
commit | a3c1989c0563c0b16c5a6e722cd8484611622499 (patch) (side-by-side diff) | |
tree | 85d534ba6374cc277dc205399db33dfd82f659f9 /noncore/unsupported | |
parent | 548a605ac7925894ed82ff40207e7814a74f8f67 (diff) | |
download | opie-a3c1989c0563c0b16c5a6e722cd8484611622499.zip opie-a3c1989c0563c0b16c5a6e722cd8484611622499.tar.gz opie-a3c1989c0563c0b16c5a6e722cd8484611622499.tar.bz2 |
Small fix which show attachment icons for downloaded mails also
-rw-r--r-- | noncore/unsupported/mailit/emailhandler.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/noncore/unsupported/mailit/emailhandler.cpp b/noncore/unsupported/mailit/emailhandler.cpp index c7b27a0..62fa64f 100644 --- a/noncore/unsupported/mailit/emailhandler.cpp +++ b/noncore/unsupported/mailit/emailhandler.cpp @@ -197,40 +197,29 @@ bool EmailHandler::parse(QString in, QString lineShift, Email *mail) mail->fromMail.truncate(mail->fromMail.length() - 1); mail->from=mail->fromMail; } } pos=0; //Search for To: after the FROM: attribute to prevent hitting the Delivered-To: while((pos = p.find("TO",':', pos+1, TRUE))!=-1) { QString rec; - if (p.separatorAt(pos-1)!='-') + if (p.separatorAt(pos-1)!='-') //The - separator means that this is a Delivered-To: or Reply-To: { pos++; mail->recipients.append(p.getString(&pos, '\r', TRUE)); } - /*else { - if ((p.separatorAt(pos) == '<')|| (p.separatorAt(pos) == ' ')) //No name.. nasty - pos++; - pos++; - mail->fromMail = p.getString(&pos, 'z', TRUE); - if (mail->fromMail.at(mail->fromMail.length()-1) == '>') - mail->fromMail.truncate(mail->fromMail.length() - 1); - mail->from=mail->fromMail; - } - mail->recipients.append (p.getString(&pos, 'z', TRUE) ); - }*/ } // //if (pos==-1) mail->recipients.append (tr("undisclosed recipients") ); if ((pos = p.find("CC",':', 0, TRUE)) != -1) { pos++; mail->carbonCopies.append (p.getString(&pos, 'z', TRUE) ); } if ((pos = p.find("SUBJECT",':', 0, TRUE)) != -1) { pos++; |