summaryrefslogtreecommitdiff
authorharlekin <harlekin>2003-12-10 01:24:21 (UTC)
committer harlekin <harlekin>2003-12-10 01:24:21 (UTC)
commita908d0ffdb5cee72b7823fc411119b8e1e3faad8 (patch) (unidiff)
treea5c25c3d49373c705fd541a28f25436dc206be4f
parentc244afea4a03d7ae948152b5abac2f059fb1e789 (diff)
downloadopie-a908d0ffdb5cee72b7823fc411119b8e1e3faad8.zip
opie-a908d0ffdb5cee72b7823fc411119b8e1e3faad8.tar.gz
opie-a908d0ffdb5cee72b7823fc411119b8e1e3faad8.tar.bz2
basis message id handling
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/mainwindow.cpp2
-rw-r--r--noncore/net/mail/viewmail.cpp4
-rw-r--r--noncore/net/mail/viewmail.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/noncore/net/mail/mainwindow.cpp b/noncore/net/mail/mainwindow.cpp
index f19f93d..3edfff1 100644
--- a/noncore/net/mail/mainwindow.cpp
+++ b/noncore/net/mail/mainwindow.cpp
@@ -152,17 +152,17 @@ void MainWindow::displayMail(QListViewItem*item)
152{ 152{
153 if (!item) return; 153 if (!item) return;
154 qDebug("View mail"); 154 qDebug("View mail");
155 RecMail mail = ((MailListViewItem*)item)->data(); 155 RecMail mail = ((MailListViewItem*)item)->data();
156 RecBody body = folderView->fetchBody(mail); 156 RecBody body = folderView->fetchBody(mail);
157 157
158 ViewMail readMail( this ); 158 ViewMail readMail( this );
159 159
160 readMail.setMailInfo( mail.getFrom(), mail.To(), mail.getSubject(), mail.CC(), mail.Bcc(), mail.getDate(), body.Bodytext() ); 160 readMail.setMailInfo( mail.getFrom(), mail.To(), mail.getSubject(), mail.CC(), mail.Bcc(), mail.getDate(), body.Bodytext(), mail.Msgid() );
161 readMail.showMaximized(); 161 readMail.showMaximized();
162 readMail.exec(); 162 readMail.exec();
163} 163}
164 164
165MailListViewItem::MailListViewItem(QListView * parent, MailListViewItem * after ) 165MailListViewItem::MailListViewItem(QListView * parent, MailListViewItem * after )
166 :QListViewItem(parent,after),mail_data() 166 :QListViewItem(parent,after),mail_data()
167{ 167{
168} 168}
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
@@ -18,28 +18,28 @@ AttachItem::AttachItem(QListView *parent, AttachItemStore &attachItemStore)
18AttachItem::AttachItem(QListViewItem *parent, AttachItemStore &attachItemStore) 18AttachItem::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
26void ViewMail::setMailInfo( const QString & from, const QStringList & to, const QString & subject, const QStringList & cc, const QStringList & bcc, const QString & date, const QString & bodytext ) { 26void 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
28m_mail[0] = from; 28m_mail[0] = from;
29m_mail2[0] = to; 29m_mail2[0] = to;
30m_mail[1] = subject; 30m_mail[1] = subject;
31m_mail2[1] = cc; 31m_mail2[1] = cc;
32m_mail2[2] = bcc; 32m_mail2[2] = bcc;
33m_mail[2] = bodytext; 33m_mail[2] = bodytext;
34m_mail[3] = date; 34m_mail[3] = date;
35m_mail[4] = messageID;
35 36
36setText(); 37setText();
37
38} 38}
39 39
40 40
41ViewMail::ViewMail( QWidget *parent, const char *name, WFlags fl) 41ViewMail::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
diff --git a/noncore/net/mail/viewmail.h b/noncore/net/mail/viewmail.h
index 615939a..258c09b 100644
--- a/noncore/net/mail/viewmail.h
+++ b/noncore/net/mail/viewmail.h
@@ -45,17 +45,17 @@ class ViewMail : public ViewMailBase
45 45
46public: 46public:
47 ViewMail( QWidget *parent = 0, const char *name = 0, WFlags fl = Qt::WType_Modal); 47 ViewMail( QWidget *parent = 0, const char *name = 0, WFlags fl = Qt::WType_Modal);
48 ~ViewMail(); 48 ~ViewMail();
49 49
50 void hide(); 50 void hide();
51 void exec(); 51 void exec();
52 static QString appName() { return QString::fromLatin1("mail"); } 52 static QString appName() { return QString::fromLatin1("mail"); }
53 void setMailInfo( const QString & from, const QStringList & to, const QString & subject, const QStringList & cc, const QStringList & bcc,const QString & date, const QString & bodytext ); 53 void 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 );
54 54
55protected: 55protected:
56 //void fillList(IMAPResponseBODYSTRUCTURE &structure); 56 //void fillList(IMAPResponseBODYSTRUCTURE &structure);
57 QString deHtml(const QString &string); 57 QString deHtml(const QString &string);
58 58
59protected slots: 59protected slots:
60 void slotReply(); 60 void slotReply();
61 void slotForward(); 61 void slotForward();