author | alwin <alwin> | 2004-10-26 01:08:58 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-10-26 01:08:58 (UTC) |
commit | cd3245ade209b4672ab5c51003aa66b5908c67a1 (patch) (unidiff) | |
tree | dfd4246557ff5d8804204387660de7e0afbd4032 /noncore/net/mail/viewmail.cpp | |
parent | 9e97864f04686ca8fc672de950cbbef4ff6a5ec6 (diff) | |
download | opie-cd3245ade209b4672ab5c51003aa66b5908c67a1.zip opie-cd3245ade209b4672ab5c51003aa66b5908c67a1.tar.gz opie-cd3245ade209b4672ab5c51003aa66b5908c67a1.tar.bz2 |
Resolved a feature request:
unique display of date-time of a mail
maillist now sorted for mail-date as default, user can switch sort order
to all other items (subject, author, size)
Diffstat (limited to 'noncore/net/mail/viewmail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/viewmail.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/net/mail/viewmail.cpp b/noncore/net/mail/viewmail.cpp index ce694d5..d5f9b7f 100644 --- a/noncore/net/mail/viewmail.cpp +++ b/noncore/net/mail/viewmail.cpp | |||
@@ -141,13 +141,13 @@ void ViewMail::setBody(const RecBodyP&body ) | |||
141 | { | 141 | { |
142 | filename = ""; | 142 | filename = ""; |
143 | type = body->Parts()[i]->Type()+"/"+body->Parts()[i]->Subtype(); | 143 | type = body->Parts()[i]->Type()+"/"+body->Parts()[i]->Subtype(); |
144 | part_plist_t::ConstIterator it = body->Parts()[i]->Parameters().begin(); | 144 | part_plist_t::ConstIterator it = body->Parts()[i]->Parameters().begin(); |
145 | for (;it!=body->Parts()[i]->Parameters().end();++it) | 145 | for (;it!=body->Parts()[i]->Parameters().end();++it) |
146 | { | 146 | { |
147 | odebug << it.key() << oendl; | 147 | odebug << it.key() << oendl; |
148 | if (it.key().lower()=="name") | 148 | if (it.key().lower()=="name") |
149 | { | 149 | { |
150 | filename=it.data(); | 150 | filename=it.data(); |
151 | } | 151 | } |
152 | } | 152 | } |
153 | s = body->Parts()[i]->Size(); | 153 | s = body->Parts()[i]->Size(); |
@@ -244,13 +244,13 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int | |||
244 | delete content; | 244 | delete content; |
245 | } | 245 | } |
246 | } | 246 | } |
247 | } | 247 | } |
248 | break ; | 248 | break ; |
249 | 249 | ||
250 | case 2: | 250 | case 2: |
251 | { | 251 | { |
252 | QString tmpfile = "/tmp/opiemail-image"; | 252 | QString tmpfile = "/tmp/opiemail-image"; |
253 | encodedString*content = m_recMail->Wrapper()->fetchDecodedPart( m_recMail, m_body->Parts()[ ( ( AttachItem* )item )->Partnumber() ] ); | 253 | encodedString*content = m_recMail->Wrapper()->fetchDecodedPart( m_recMail, m_body->Parts()[ ( ( AttachItem* )item )->Partnumber() ] ); |
254 | if (content) { | 254 | if (content) { |
255 | QFile output(tmpfile); | 255 | QFile output(tmpfile); |
256 | output.open(IO_WriteOnly); | 256 | output.open(IO_WriteOnly); |
@@ -286,13 +286,13 @@ void ViewMail::setMail(const RecMailP&mail ) | |||
286 | { | 286 | { |
287 | 287 | ||
288 | m_recMail = mail; | 288 | m_recMail = mail; |
289 | 289 | ||
290 | m_mail[0] = mail->getFrom(); | 290 | m_mail[0] = mail->getFrom(); |
291 | m_mail[1] = mail->getSubject(); | 291 | m_mail[1] = mail->getSubject(); |
292 | m_mail[3] = mail->getDate(); | 292 | m_mail[3] = mail->getStringDate(); |
293 | m_mail[4] = mail->Msgid(); | 293 | m_mail[4] = mail->Msgid(); |
294 | 294 | ||
295 | m_mail2[0] = mail->To(); | 295 | m_mail2[0] = mail->To(); |
296 | m_mail2[1] = mail->CC(); | 296 | m_mail2[1] = mail->CC(); |
297 | m_mail2[2] = mail->Bcc(); | 297 | m_mail2[2] = mail->Bcc(); |
298 | 298 | ||