Diffstat (limited to 'noncore/net/mail/libmailwrapper/mhwrapper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/mhwrapper.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/noncore/net/mail/libmailwrapper/mhwrapper.cpp b/noncore/net/mail/libmailwrapper/mhwrapper.cpp index 403afcf..765a21c 100644 --- a/noncore/net/mail/libmailwrapper/mhwrapper.cpp +++ b/noncore/net/mail/libmailwrapper/mhwrapper.cpp | |||
@@ -19,3 +19,3 @@ MHwrapper::MHwrapper(const QString & mbox_dir,const QString&mbox_name) | |||
19 | } | 19 | } |
20 | odebug << MHPath << oendl; | 20 | odebug << MHPath << oendl; |
21 | QDir dir(MHPath); | 21 | QDir dir(MHPath); |
@@ -36,3 +36,3 @@ void MHwrapper::init_storage() | |||
36 | if (r != MAIL_NO_ERROR) { | 36 | if (r != MAIL_NO_ERROR) { |
37 | odebug << "error initializing storage" << oendl; | 37 | odebug << "error initializing storage" << oendl; |
38 | mailstorage_free(m_storage); | 38 | mailstorage_free(m_storage); |
@@ -44,3 +44,3 @@ void MHwrapper::init_storage() | |||
44 | if (r!=MAIL_NO_ERROR) { | 44 | if (r!=MAIL_NO_ERROR) { |
45 | odebug << "error connecting storage" << oendl; | 45 | odebug << "error connecting storage" << oendl; |
46 | mailstorage_free(m_storage); | 46 | mailstorage_free(m_storage); |
@@ -73,3 +73,3 @@ void MHwrapper::listMessages(const QString & mailbox, QValueList<Opie::Core::OSm | |||
73 | if (r!=MAIL_NO_ERROR) { | 73 | if (r!=MAIL_NO_ERROR) { |
74 | odebug << "listMessages: error selecting folder!" << oendl; | 74 | odebug << "listMessages: error selecting folder!" << oendl; |
75 | return; | 75 | return; |
@@ -93,3 +93,3 @@ QValueList<Opie::Core::OSmartPointer<Folder> >* MHwrapper::listFolders() | |||
93 | if (r != MAIL_NO_ERROR || !flist) { | 93 | if (r != MAIL_NO_ERROR || !flist) { |
94 | odebug << "error getting folder list" << oendl; | 94 | odebug << "error getting folder list" << oendl; |
95 | return folders; | 95 | return folders; |
@@ -113,3 +113,3 @@ void MHwrapper::deleteMail(const RecMailP&mail) | |||
113 | if (r!=MAIL_NO_ERROR) { | 113 | if (r!=MAIL_NO_ERROR) { |
114 | odebug << "error selecting folder!" << oendl; | 114 | odebug << "error selecting folder!" << oendl; |
115 | return; | 115 | return; |
@@ -118,3 +118,3 @@ void MHwrapper::deleteMail(const RecMailP&mail) | |||
118 | if (r != MAIL_NO_ERROR) { | 118 | if (r != MAIL_NO_ERROR) { |
119 | odebug << "error deleting mail" << oendl; | 119 | odebug << "error deleting mail" << oendl; |
120 | } | 120 | } |
@@ -143,3 +143,3 @@ RecBodyP MHwrapper::fetchBody( const RecMailP &mail ) | |||
143 | if (r != MAIL_NO_ERROR) { | 143 | if (r != MAIL_NO_ERROR) { |
144 | odebug << "Error fetching mail " << mail->getNumber() << "" << oendl; | 144 | odebug << "Error fetching mail " << mail->getNumber() << "" << oendl; |
145 | return body; | 145 | return body; |
@@ -153,3 +153,3 @@ void MHwrapper::mbox_progress( size_t current, size_t maximum ) | |||
153 | { | 153 | { |
154 | odebug << "MH " << current << " von " << maximum << "" << oendl; | 154 | odebug << "MH " << current << " von " << maximum << "" << oendl; |
155 | } | 155 | } |
@@ -186,9 +186,9 @@ int MHwrapper::createMbox(const QString&folder,const FolderP&pfolder,const QStri | |||
186 | } | 186 | } |
187 | odebug << f << oendl; | 187 | odebug << f << oendl; |
188 | int r = mailsession_create_folder(m_storage->sto_session,(char*)f.latin1()); | 188 | int r = mailsession_create_folder(m_storage->sto_session,(char*)f.latin1()); |
189 | if (r != MAIL_NO_ERROR) { | 189 | if (r != MAIL_NO_ERROR) { |
190 | odebug << "error creating folder " << r << "" << oendl; | 190 | odebug << "error creating folder " << r << "" << oendl; |
191 | return 0; | 191 | return 0; |
192 | } | 192 | } |
193 | odebug << "Folder created" << oendl; | 193 | odebug << "Folder created" << oendl; |
194 | return 1; | 194 | return 1; |
@@ -205,3 +205,3 @@ void MHwrapper::storeMessage(const char*msg,size_t length, const QString&Folder) | |||
205 | if (r!=MAIL_NO_ERROR) { | 205 | if (r!=MAIL_NO_ERROR) { |
206 | odebug << "error selecting folder!" << oendl; | 206 | odebug << "error selecting folder!" << oendl; |
207 | return; | 207 | return; |
@@ -210,3 +210,3 @@ void MHwrapper::storeMessage(const char*msg,size_t length, const QString&Folder) | |||
210 | if (r!=MAIL_NO_ERROR) { | 210 | if (r!=MAIL_NO_ERROR) { |
211 | odebug << "error storing mail" << oendl; | 211 | odebug << "error storing mail" << oendl; |
212 | } | 212 | } |
@@ -227,3 +227,3 @@ encodedString* MHwrapper::fetchRawBody(const RecMailP&mail) | |||
227 | if (r!=MAIL_NO_ERROR) { | 227 | if (r!=MAIL_NO_ERROR) { |
228 | odebug << "error selecting folder!" << oendl; | 228 | odebug << "error selecting folder!" << oendl; |
229 | return result; | 229 | return result; |
@@ -251,3 +251,3 @@ void MHwrapper::deleteMails(const QString & mailbox,const QValueList<RecMailP> & | |||
251 | if (r!=MAIL_NO_ERROR) { | 251 | if (r!=MAIL_NO_ERROR) { |
252 | odebug << "deleteMails: error selecting folder!" << oendl; | 252 | odebug << "deleteMails: error selecting folder!" << oendl; |
253 | return; | 253 | return; |
@@ -258,3 +258,3 @@ void MHwrapper::deleteMails(const QString & mailbox,const QValueList<RecMailP> & | |||
258 | if (r != MAIL_NO_ERROR) { | 258 | if (r != MAIL_NO_ERROR) { |
259 | odebug << "error deleting mail" << oendl; | 259 | odebug << "error deleting mail" << oendl; |
260 | break; | 260 | break; |
@@ -274,3 +274,3 @@ int MHwrapper::deleteAllMail(const FolderP&tfolder) | |||
274 | if (r!=MAIL_NO_ERROR) { | 274 | if (r!=MAIL_NO_ERROR) { |
275 | odebug << "error selecting folder!" << oendl; | 275 | odebug << "error selecting folder!" << oendl; |
276 | return 0; | 276 | return 0; |
@@ -280,3 +280,3 @@ int MHwrapper::deleteAllMail(const FolderP&tfolder) | |||
280 | if (r != MAIL_NO_ERROR) { | 280 | if (r != MAIL_NO_ERROR) { |
281 | odebug << "Error message list" << oendl; | 281 | odebug << "Error message list" << oendl; |
282 | res = 0; | 282 | res = 0; |
@@ -311,3 +311,3 @@ int MHwrapper::deleteMbox(const FolderP&tfolder) | |||
311 | if (r != MAIL_NO_ERROR) { | 311 | if (r != MAIL_NO_ERROR) { |
312 | odebug << "error deleting mail box" << oendl; | 312 | odebug << "error deleting mail box" << oendl; |
313 | return 0; | 313 | return 0; |
@@ -329,6 +329,6 @@ int MHwrapper::deleteMbox(const FolderP&tfolder) | |||
329 | if(!process->start(OProcess::Block, OProcess::All) ) { | 329 | if(!process->start(OProcess::Block, OProcess::All) ) { |
330 | odebug << "could not start process" << oendl; | 330 | odebug << "could not start process" << oendl; |
331 | return 0; | 331 | return 0; |
332 | } | 332 | } |
333 | odebug << "mail box deleted" << oendl; | 333 | odebug << "mail box deleted" << oendl; |
334 | return 1; | 334 | return 1; |
@@ -381,3 +381,3 @@ void MHwrapper::mvcpMail(const RecMailP&mail,const QString&targetFolder,Abstract | |||
381 | if (targetWrapper != this) { | 381 | if (targetWrapper != this) { |
382 | odebug << "Using generic" << oendl; | 382 | odebug << "Using generic" << oendl; |
383 | Genericwrapper::mvcpMail(mail,targetFolder,targetWrapper,moveit); | 383 | Genericwrapper::mvcpMail(mail,targetFolder,targetWrapper,moveit); |
@@ -385,3 +385,3 @@ void MHwrapper::mvcpMail(const RecMailP&mail,const QString&targetFolder,Abstract | |||
385 | } | 385 | } |
386 | odebug << "Using internal routines for move/copy" << oendl; | 386 | odebug << "Using internal routines for move/copy" << oendl; |
387 | QString tf = buildPath(targetFolder); | 387 | QString tf = buildPath(targetFolder); |
@@ -389,3 +389,3 @@ void MHwrapper::mvcpMail(const RecMailP&mail,const QString&targetFolder,Abstract | |||
389 | if (r != MAIL_NO_ERROR) { | 389 | if (r != MAIL_NO_ERROR) { |
390 | odebug << "Error selecting source mailbox" << oendl; | 390 | odebug << "Error selecting source mailbox" << oendl; |
391 | return; | 391 | return; |
@@ -398,3 +398,3 @@ void MHwrapper::mvcpMail(const RecMailP&mail,const QString&targetFolder,Abstract | |||
398 | if (r != MAIL_NO_ERROR) { | 398 | if (r != MAIL_NO_ERROR) { |
399 | odebug << "Error copy/moving mail internal (" << r << ")" << oendl; | 399 | odebug << "Error copy/moving mail internal (" << r << ")" << oendl; |
400 | } | 400 | } |
@@ -410,3 +410,3 @@ void MHwrapper::mvcpAllMails(const FolderP&fromFolder, | |||
410 | if (targetWrapper != this) { | 410 | if (targetWrapper != this) { |
411 | odebug << "Using generic" << oendl; | 411 | odebug << "Using generic" << oendl; |
412 | Genericwrapper::mvcpAllMails(fromFolder,targetFolder,targetWrapper,moveit); | 412 | Genericwrapper::mvcpAllMails(fromFolder,targetFolder,targetWrapper,moveit); |
@@ -417,3 +417,3 @@ void MHwrapper::mvcpAllMails(const FolderP&fromFolder, | |||
417 | if (r!=MAIL_NO_ERROR) { | 417 | if (r!=MAIL_NO_ERROR) { |
418 | odebug << "error selecting source folder!" << oendl; | 418 | odebug << "error selecting source folder!" << oendl; |
419 | return; | 419 | return; |
@@ -424,3 +424,3 @@ void MHwrapper::mvcpAllMails(const FolderP&fromFolder, | |||
424 | if (r != MAIL_NO_ERROR) { | 424 | if (r != MAIL_NO_ERROR) { |
425 | odebug << "Error message list" << oendl; | 425 | odebug << "Error message list" << oendl; |
426 | } | 426 | } |
@@ -437,3 +437,3 @@ void MHwrapper::mvcpAllMails(const FolderP&fromFolder, | |||
437 | if (r != MAIL_NO_ERROR) { | 437 | if (r != MAIL_NO_ERROR) { |
438 | odebug << "Error copy/moving mail internal (" << r << ")" << oendl; | 438 | odebug << "Error copy/moving mail internal (" << r << ")" << oendl; |
439 | break; | 439 | break; |