Diffstat (limited to 'kmicromail/libmailwrapper/nntpwrapper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kmicromail/libmailwrapper/nntpwrapper.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kmicromail/libmailwrapper/nntpwrapper.cpp b/kmicromail/libmailwrapper/nntpwrapper.cpp index daa128e..f5d7f16 100644 --- a/kmicromail/libmailwrapper/nntpwrapper.cpp +++ b/kmicromail/libmailwrapper/nntpwrapper.cpp | |||
@@ -1,6 +1,7 @@ | |||
1 | // CHANGED 2004-09-31 Lutz Rogowski | ||
1 | #include "nntpwrapper.h" | 2 | #include "nntpwrapper.h" |
2 | #include "logindialog.h" | 3 | #include "logindialog.h" |
3 | #include "mailtypes.h" | 4 | #include "mailtypes.h" |
4 | 5 | ||
5 | #include <qfile.h> | 6 | #include <qfile.h> |
6 | 7 | ||
@@ -95,20 +96,20 @@ RecBodyP NNTPwrapper::fetchBody( const RecMailP &mail ) { | |||
95 | free(message); | 96 | free(message); |
96 | 97 | ||
97 | return body; | 98 | return body; |
98 | } | 99 | } |
99 | 100 | ||
100 | 101 | ||
101 | void NNTPwrapper::listMessages(const QString & which, QValueList<Opie::Core::OSmartPointer<RecMail> > &target ) | 102 | void NNTPwrapper::listMessages(const QString & which, QValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb) |
102 | { | 103 | { |
103 | login(); | 104 | login(); |
104 | if (!m_nntp) | 105 | if (!m_nntp) |
105 | return; | 106 | return; |
106 | uint32_t res_messages,res_recent,res_unseen; | 107 | uint32_t res_messages,res_recent,res_unseen; |
107 | mailsession_status_folder(m_nntp->sto_session,(char*)which.latin1(),&res_messages,&res_recent,&res_unseen); | 108 | mailsession_status_folder(m_nntp->sto_session,(char*)which.latin1(),&res_messages,&res_recent,&res_unseen); |
108 | parseList(target,m_nntp->sto_session,which,true); | 109 | parseList(target,m_nntp->sto_session,which,true, maxSizeInKb); |
109 | } | 110 | } |
110 | 111 | ||
111 | void NNTPwrapper::login() | 112 | void NNTPwrapper::login() |
112 | { | 113 | { |
113 | if (account->getOffline()) | 114 | if (account->getOffline()) |
114 | return; | 115 | return; |