Diffstat (limited to 'noncore/net/mail/libmailwrapper/pop3wrapper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/pop3wrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/mail/libmailwrapper/pop3wrapper.cpp b/noncore/net/mail/libmailwrapper/pop3wrapper.cpp index 075d8c7..4508a95 100644 --- a/noncore/net/mail/libmailwrapper/pop3wrapper.cpp +++ b/noncore/net/mail/libmailwrapper/pop3wrapper.cpp | |||
@@ -302,49 +302,49 @@ void POP3wrapper::login() | |||
302 | logout(); | 302 | logout(); |
303 | return; | 303 | return; |
304 | } | 304 | } |
305 | 305 | ||
306 | qDebug( "POP3: logged in!" ); | 306 | qDebug( "POP3: logged in!" ); |
307 | } | 307 | } |
308 | 308 | ||
309 | void POP3wrapper::logout() | 309 | void POP3wrapper::logout() |
310 | { | 310 | { |
311 | int err = MAILPOP3_NO_ERROR; | 311 | int err = MAILPOP3_NO_ERROR; |
312 | if ( m_pop3 == NULL ) return; | 312 | if ( m_pop3 == NULL ) return; |
313 | err = mailpop3_quit( m_pop3 ); | 313 | err = mailpop3_quit( m_pop3 ); |
314 | mailpop3_free( m_pop3 ); | 314 | mailpop3_free( m_pop3 ); |
315 | m_pop3 = NULL; | 315 | m_pop3 = NULL; |
316 | } | 316 | } |
317 | 317 | ||
318 | 318 | ||
319 | QList<Folder>* POP3wrapper::listFolders() | 319 | QList<Folder>* POP3wrapper::listFolders() |
320 | { | 320 | { |
321 | /* TODO: integrate MH directories | 321 | /* TODO: integrate MH directories |
322 | but not before version 0.1 ;) | 322 | but not before version 0.1 ;) |
323 | */ | 323 | */ |
324 | QList<Folder> * folders = new QList<Folder>(); | 324 | QList<Folder> * folders = new QList<Folder>(); |
325 | folders->setAutoDelete( false ); | 325 | folders->setAutoDelete( false ); |
326 | Folder*inb=new Folder("INBOX"); | 326 | Folder*inb=new Folder("INBOX","/"); |
327 | folders->append(inb); | 327 | folders->append(inb); |
328 | return folders; | 328 | return folders; |
329 | } | 329 | } |
330 | 330 | ||
331 | QString POP3wrapper::fetchTextPart(const RecMail&,const RecPart&) | 331 | QString POP3wrapper::fetchTextPart(const RecMail&,const RecPart&) |
332 | { | 332 | { |
333 | return ""; | 333 | return ""; |
334 | } | 334 | } |
335 | 335 | ||
336 | void POP3wrapper::deleteMail(const RecMail&mail) | 336 | void POP3wrapper::deleteMail(const RecMail&mail) |
337 | { | 337 | { |
338 | login(); | 338 | login(); |
339 | if (!m_pop3) return; | 339 | if (!m_pop3) return; |
340 | int err = mailpop3_dele(m_pop3,mail.getNumber()); | 340 | int err = mailpop3_dele(m_pop3,mail.getNumber()); |
341 | if (err != MAILPOP3_NO_ERROR) { | 341 | if (err != MAILPOP3_NO_ERROR) { |
342 | qDebug("error deleting mail"); | 342 | qDebug("error deleting mail"); |
343 | } | 343 | } |
344 | } | 344 | } |
345 | 345 | ||
346 | void POP3wrapper::answeredMail(const RecMail&) | 346 | void POP3wrapper::answeredMail(const RecMail&) |
347 | { | 347 | { |
348 | } | 348 | } |
349 | 349 | ||
350 | encodedString* POP3wrapper::fetchDecodedPart(const RecMail&,const RecPart&) | 350 | encodedString* POP3wrapper::fetchDecodedPart(const RecMail&,const RecPart&) |