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 @@ -18,5 +18,5 @@ MHwrapper::MHwrapper(const QString & mbox_dir,const QString&mbox_name) MHPath=MHPath.left(MHPath.length()-1); } - odebug << MHPath << oendl; + odebug << MHPath << oendl; QDir dir(MHPath); if (!dir.exists()) { @@ -35,5 +35,5 @@ void MHwrapper::init_storage() r = mh_mailstorage_init(m_storage,(char*)pre.latin1(),0,0,0); if (r != MAIL_NO_ERROR) { - odebug << "error initializing storage" << oendl; + odebug << "error initializing storage" << oendl; mailstorage_free(m_storage); m_storage = 0; @@ -43,5 +43,5 @@ void MHwrapper::init_storage() r = mailstorage_connect(m_storage); if (r!=MAIL_NO_ERROR) { - odebug << "error connecting storage" << oendl; + odebug << "error connecting storage" << oendl; mailstorage_free(m_storage); m_storage = 0; @@ -72,5 +72,5 @@ void MHwrapper::listMessages(const QString & mailbox, QValueList<Opie::Core::OSm int r = mailsession_select_folder(m_storage->sto_session,(char*)f.latin1()); if (r!=MAIL_NO_ERROR) { - odebug << "listMessages: error selecting folder!" << oendl; + odebug << "listMessages: error selecting folder!" << oendl; return; } @@ -92,5 +92,5 @@ QValueList<Opie::Core::OSmartPointer<Folder> >* MHwrapper::listFolders() int r = mailsession_list_folders(m_storage->sto_session,NULL,&flist); if (r != MAIL_NO_ERROR || !flist) { - odebug << "error getting folder list" << oendl; + odebug << "error getting folder list" << oendl; return folders; } @@ -112,10 +112,10 @@ void MHwrapper::deleteMail(const RecMailP&mail) int r = mailsession_select_folder(m_storage->sto_session,(char*)mail->getMbox().latin1()); if (r!=MAIL_NO_ERROR) { - odebug << "error selecting folder!" << oendl; + odebug << "error selecting folder!" << oendl; return; } r = mailsession_remove_message(m_storage->sto_session,mail->getNumber()); if (r != MAIL_NO_ERROR) { - odebug << "error deleting mail" << oendl; + odebug << "error deleting mail" << oendl; } } @@ -142,5 +142,5 @@ RecBodyP MHwrapper::fetchBody( const RecMailP &mail ) r = mailsession_get_message(m_storage->sto_session, mail->getNumber(), &msg); if (r != MAIL_NO_ERROR) { - odebug << "Error fetching mail " << mail->getNumber() << "" << oendl; + odebug << "Error fetching mail " << mail->getNumber() << "" << oendl; return body; } @@ -152,5 +152,5 @@ RecBodyP MHwrapper::fetchBody( const RecMailP &mail ) void MHwrapper::mbox_progress( size_t current, size_t maximum ) { - odebug << "MH " << current << " von " << maximum << "" << oendl; + odebug << "MH " << current << " von " << maximum << "" << oendl; } @@ -185,11 +185,11 @@ int MHwrapper::createMbox(const QString&folder,const FolderP&pfolder,const QStri f+=folder; } - odebug << f << oendl; + odebug << f << oendl; int r = mailsession_create_folder(m_storage->sto_session,(char*)f.latin1()); if (r != MAIL_NO_ERROR) { - odebug << "error creating folder " << r << "" << oendl; + odebug << "error creating folder " << r << "" << oendl; return 0; } - odebug << "Folder created" << oendl; + odebug << "Folder created" << oendl; return 1; } @@ -204,10 +204,10 @@ void MHwrapper::storeMessage(const char*msg,size_t length, const QString&Folder) int r = mailsession_select_folder(m_storage->sto_session,(char*)f.latin1()); if (r!=MAIL_NO_ERROR) { - odebug << "error selecting folder!" << oendl; + odebug << "error selecting folder!" << oendl; return; } r = mailsession_append_message(m_storage->sto_session,(char*)msg,length); if (r!=MAIL_NO_ERROR) { - odebug << "error storing mail" << oendl; + odebug << "error storing mail" << oendl; } return; @@ -226,5 +226,5 @@ encodedString* MHwrapper::fetchRawBody(const RecMailP&mail) int r = mailsession_select_folder(m_storage->sto_session,(char*)mail->getMbox().latin1()); if (r!=MAIL_NO_ERROR) { - odebug << "error selecting folder!" << oendl; + odebug << "error selecting folder!" << oendl; return result; } @@ -250,5 +250,5 @@ void MHwrapper::deleteMails(const QString & mailbox,const QValueList<RecMailP> & int r = mailsession_select_folder(m_storage->sto_session,(char*)f.latin1()); if (r!=MAIL_NO_ERROR) { - odebug << "deleteMails: error selecting folder!" << oendl; + odebug << "deleteMails: error selecting folder!" << oendl; return; } @@ -257,5 +257,5 @@ void MHwrapper::deleteMails(const QString & mailbox,const QValueList<RecMailP> & r = mailsession_remove_message(m_storage->sto_session,(*it)->getNumber()); if (r != MAIL_NO_ERROR) { - odebug << "error deleting mail" << oendl; + odebug << "error deleting mail" << oendl; break; } @@ -273,5 +273,5 @@ int MHwrapper::deleteAllMail(const FolderP&tfolder) int r = mailsession_select_folder(m_storage->sto_session,(char*)tfolder->getName().latin1()); if (r!=MAIL_NO_ERROR) { - odebug << "error selecting folder!" << oendl; + odebug << "error selecting folder!" << oendl; return 0; } @@ -279,5 +279,5 @@ int MHwrapper::deleteAllMail(const FolderP&tfolder) r = mailsession_get_messages_list(m_storage->sto_session,&l); if (r != MAIL_NO_ERROR) { - odebug << "Error message list" << oendl; + odebug << "Error message list" << oendl; res = 0; } @@ -310,5 +310,5 @@ int MHwrapper::deleteMbox(const FolderP&tfolder) if (r != MAIL_NO_ERROR) { - odebug << "error deleting mail box" << oendl; + odebug << "error deleting mail box" << oendl; return 0; } @@ -328,8 +328,8 @@ int MHwrapper::deleteMbox(const FolderP&tfolder) removeMboxfailed = false; if(!process->start(OProcess::Block, OProcess::All) ) { - odebug << "could not start process" << oendl; + odebug << "could not start process" << oendl; return 0; } - odebug << "mail box deleted" << oendl; + odebug << "mail box deleted" << oendl; return 1; } @@ -380,13 +380,13 @@ void MHwrapper::mvcpMail(const RecMailP&mail,const QString&targetFolder,Abstract } if (targetWrapper != this) { - odebug << "Using generic" << oendl; + odebug << "Using generic" << oendl; Genericwrapper::mvcpMail(mail,targetFolder,targetWrapper,moveit); return; } - odebug << "Using internal routines for move/copy" << oendl; + odebug << "Using internal routines for move/copy" << oendl; QString tf = buildPath(targetFolder); int r = mailsession_select_folder(m_storage->sto_session,(char*)mail->getMbox().latin1()); if (r != MAIL_NO_ERROR) { - odebug << "Error selecting source mailbox" << oendl; + odebug << "Error selecting source mailbox" << oendl; return; } @@ -397,5 +397,5 @@ void MHwrapper::mvcpMail(const RecMailP&mail,const QString&targetFolder,Abstract } if (r != MAIL_NO_ERROR) { - odebug << "Error copy/moving mail internal (" << r << ")" << oendl; + odebug << "Error copy/moving mail internal (" << r << ")" << oendl; } } @@ -409,5 +409,5 @@ void MHwrapper::mvcpAllMails(const FolderP&fromFolder, } if (targetWrapper != this) { - odebug << "Using generic" << oendl; + odebug << "Using generic" << oendl; Genericwrapper::mvcpAllMails(fromFolder,targetFolder,targetWrapper,moveit); return; @@ -416,5 +416,5 @@ void MHwrapper::mvcpAllMails(const FolderP&fromFolder, int r = mailsession_select_folder(m_storage->sto_session,(char*)fromFolder->getName().latin1()); if (r!=MAIL_NO_ERROR) { - odebug << "error selecting source folder!" << oendl; + odebug << "error selecting source folder!" << oendl; return; } @@ -423,5 +423,5 @@ void MHwrapper::mvcpAllMails(const FolderP&fromFolder, r = mailsession_get_messages_list(m_storage->sto_session,&l); if (r != MAIL_NO_ERROR) { - odebug << "Error message list" << oendl; + odebug << "Error message list" << oendl; } unsigned j = 0; @@ -436,5 +436,5 @@ void MHwrapper::mvcpAllMails(const FolderP&fromFolder, } if (r != MAIL_NO_ERROR) { - odebug << "Error copy/moving mail internal (" << r << ")" << oendl; + odebug << "Error copy/moving mail internal (" << r << ")" << oendl; break; } |