Diffstat (limited to 'noncore/unsupported/mailit/emailhandler.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mailit/emailhandler.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/noncore/unsupported/mailit/emailhandler.cpp b/noncore/unsupported/mailit/emailhandler.cpp index 03f8a28..f6c6d60 100644 --- a/noncore/unsupported/mailit/emailhandler.cpp +++ b/noncore/unsupported/mailit/emailhandler.cpp | |||
@@ -201,5 +201,5 @@ bool EmailHandler::parse(QString in, QString lineShift, Email *mail) | |||
201 | 201 | ||
202 | //@@@ToDo: Rewrite the parser as To: stops at the first occurence- which is Delivered-To: | 202 | //@@@ToDo: Rewrite the parser as To: stops at the first occurence- which is Delivered-To: |
203 | if (pos = p.find("TO",':', pos, TRUE) != -1) | 203 | if ((pos = p.find("TO",':', 0, TRUE)) != -1) |
204 | { | 204 | { |
205 | pos++; | 205 | pos++; |
@@ -207,5 +207,11 @@ bool EmailHandler::parse(QString in, QString lineShift, Email *mail) | |||
207 | } | 207 | } |
208 | 208 | ||
209 | 209 | //@@@ToDo: Rewrite the parser as To: stops at the first occurence- which is Delivered-To: | |
210 | if ((pos = p.find("CC",':', 0, TRUE)) != -1) | ||
211 | { | ||
212 | pos++; | ||
213 | mail->carbonCopies.append (p.getString(&pos, 'z', TRUE) ); | ||
214 | } | ||
215 | |||
210 | 216 | ||
211 | if ((pos = p.find("SUBJECT",':', 0, TRUE)) != -1) { | 217 | if ((pos = p.find("SUBJECT",':', 0, TRUE)) != -1) { |
@@ -435,4 +441,11 @@ int EmailHandler::encodeMime(Email *mail) | |||
435 | newBody += *it + " "; | 441 | newBody += *it + " "; |
436 | } | 442 | } |
443 | |||
444 | newBody += "\r\nCC: "; | ||
445 | |||
446 | for (QStringList::Iterator it = mail->carbonCopies.begin(); it != mail->carbonCopies.end(); ++it ) { | ||
447 | newBody += *it + " "; | ||
448 | } | ||
449 | |||
437 | newBody += "\r\nSubject: " + mail->subject + "\r\n"; | 450 | newBody += "\r\nSubject: " + mail->subject + "\r\n"; |
438 | 451 | ||