author | harlekin <harlekin> | 2003-12-10 01:24:21 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-12-10 01:24:21 (UTC) |
commit | a908d0ffdb5cee72b7823fc411119b8e1e3faad8 (patch) (unidiff) | |
tree | a5c25c3d49373c705fd541a28f25436dc206be4f /noncore/net/mail/viewmail.cpp | |
parent | c244afea4a03d7ae948152b5abac2f059fb1e789 (diff) | |
download | opie-a908d0ffdb5cee72b7823fc411119b8e1e3faad8.zip opie-a908d0ffdb5cee72b7823fc411119b8e1e3faad8.tar.gz opie-a908d0ffdb5cee72b7823fc411119b8e1e3faad8.tar.bz2 |
basis message id handling
Diffstat (limited to 'noncore/net/mail/viewmail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/viewmail.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/net/mail/viewmail.cpp b/noncore/net/mail/viewmail.cpp index 8f9ea07..7969235 100644 --- a/noncore/net/mail/viewmail.cpp +++ b/noncore/net/mail/viewmail.cpp | |||
@@ -2,60 +2,60 @@ | |||
2 | #include <qmessagebox.h> | 2 | #include <qmessagebox.h> |
3 | #include <qaction.h> | 3 | #include <qaction.h> |
4 | #include <qapplication.h> | 4 | #include <qapplication.h> |
5 | 5 | ||
6 | #include "settings.h" | 6 | #include "settings.h" |
7 | #include "composemail.h" | 7 | #include "composemail.h" |
8 | #include "viewmail.h" | 8 | #include "viewmail.h" |
9 | 9 | ||
10 | AttachItem::AttachItem(QListView *parent, AttachItemStore &attachItemStore) | 10 | AttachItem::AttachItem(QListView *parent, AttachItemStore &attachItemStore) |
11 | : QListViewItem(parent), _attachItemStore(attachItemStore) | 11 | : QListViewItem(parent), _attachItemStore(attachItemStore) |
12 | { | 12 | { |
13 | setText(0, _attachItemStore.mimeType()); | 13 | setText(0, _attachItemStore.mimeType()); |
14 | setText(1, _attachItemStore.fileName()); | 14 | setText(1, _attachItemStore.fileName()); |
15 | setText(2, _attachItemStore.description()); | 15 | setText(2, _attachItemStore.description()); |
16 | } | 16 | } |
17 | 17 | ||
18 | AttachItem::AttachItem(QListViewItem *parent, AttachItemStore &attachItemStore) | 18 | AttachItem::AttachItem(QListViewItem *parent, AttachItemStore &attachItemStore) |
19 | : QListViewItem(parent), _attachItemStore(attachItemStore) | 19 | : QListViewItem(parent), _attachItemStore(attachItemStore) |
20 | { | 20 | { |
21 | setText(0, _attachItemStore.mimeType()); | 21 | setText(0, _attachItemStore.mimeType()); |
22 | setText(1, _attachItemStore.fileName()); | 22 | setText(1, _attachItemStore.fileName()); |
23 | setText(2, _attachItemStore.description()); | 23 | setText(2, _attachItemStore.description()); |
24 | } | 24 | } |
25 | 25 | ||
26 | void ViewMail::setMailInfo( const QString & from, const QStringList & to, const QString & subject, const QStringList & cc, const QStringList & bcc, const QString & date, const QString & bodytext ) { | 26 | void ViewMail::setMailInfo( const QString & from, const QStringList & to, const QString & subject, const QStringList & cc, const QStringList & bcc, const QString & date, const QString & bodytext, const QString & messageID ) { |
27 | 27 | ||
28 | m_mail[0] = from; | 28 | m_mail[0] = from; |
29 | m_mail2[0] = to; | 29 | m_mail2[0] = to; |
30 | m_mail[1] = subject; | 30 | m_mail[1] = subject; |
31 | m_mail2[1] = cc; | 31 | m_mail2[1] = cc; |
32 | m_mail2[2] = bcc; | 32 | m_mail2[2] = bcc; |
33 | m_mail[2] = bodytext; | 33 | m_mail[2] = bodytext; |
34 | m_mail[3] = date; | 34 | m_mail[3] = date; |
35 | m_mail[4] = messageID; | ||
35 | 36 | ||
36 | setText(); | 37 | setText(); |
37 | |||
38 | } | 38 | } |
39 | 39 | ||
40 | 40 | ||
41 | ViewMail::ViewMail( QWidget *parent, const char *name, WFlags fl) | 41 | ViewMail::ViewMail( QWidget *parent, const char *name, WFlags fl) |
42 | : ViewMailBase(parent, name, fl), _inLoop(false) | 42 | : ViewMailBase(parent, name, fl), _inLoop(false) |
43 | { | 43 | { |
44 | _gotBody = false; | 44 | _gotBody = false; |
45 | 45 | ||
46 | connect(reply, SIGNAL(activated()), SLOT(slotReply())); | 46 | connect(reply, SIGNAL(activated()), SLOT(slotReply())); |
47 | connect(forward, SIGNAL(activated()), SLOT(slotForward())); | 47 | connect(forward, SIGNAL(activated()), SLOT(slotForward())); |
48 | 48 | ||
49 | attachments->setEnabled(_gotBody); | 49 | attachments->setEnabled(_gotBody); |
50 | 50 | ||
51 | //_handler->iUid("FETCH", QString("%1 (BODY[1])").arg(mail.uid())); | 51 | //_handler->iUid("FETCH", QString("%1 (BODY[1])").arg(mail.uid())); |
52 | //connect(_handler, SIGNAL(gotResponse(IMAPResponse &)), SLOT(slotIMAPUid(IMAPResponse &))); | 52 | //connect(_handler, SIGNAL(gotResponse(IMAPResponse &)), SLOT(slotIMAPUid(IMAPResponse &))); |
53 | } | 53 | } |
54 | 54 | ||
55 | void ViewMail::setText() | 55 | void ViewMail::setText() |
56 | { | 56 | { |
57 | 57 | ||
58 | QString toString; | 58 | QString toString; |
59 | QString ccString; | 59 | QString ccString; |
60 | QString bccString; | 60 | QString bccString; |
61 | 61 | ||