Diffstat (limited to 'noncore/net/mail/libmailwrapper/imapwrapper.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/imapwrapper.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/net/mail/libmailwrapper/imapwrapper.cpp b/noncore/net/mail/libmailwrapper/imapwrapper.cpp index 0c1e05e..95b317a 100644 --- a/noncore/net/mail/libmailwrapper/imapwrapper.cpp +++ b/noncore/net/mail/libmailwrapper/imapwrapper.cpp | |||
@@ -976,12 +976,17 @@ void IMAPwrapper::statusFolder(folderStat&target_stat,const QString & mailbox) | |||
976 | } | 976 | } |
977 | 977 | ||
978 | void IMAPwrapper::storeMessage(const char*msg,size_t length, const QString&folder) | 978 | void IMAPwrapper::storeMessage(const char*msg,size_t length, const QString&folder) |
979 | { | 979 | { |
980 | login(); | 980 | login(); |
981 | if (!m_imap) return; | 981 | if (!m_imap) return; |
982 | if (!msg) return; | 982 | if (!msg) return; |
983 | int r = mailimap_append(m_imap,(char*)folder.latin1(),0,0,msg,length); | 983 | int r = mailimap_append(m_imap,(char*)folder.latin1(),0,0,msg,length); |
984 | if (r != MAILIMAP_NO_ERROR) { | 984 | if (r != MAILIMAP_NO_ERROR) { |
985 | Global::statusMessage("Error storing mail!"); | 985 | Global::statusMessage("Error storing mail!"); |
986 | } | 986 | } |
987 | } | 987 | } |
988 | |||
989 | const QString&IMAPwrapper::getType()const | ||
990 | { | ||
991 | return account->getType(); | ||
992 | } | ||