22 #ifndef EMAILIMAPSERVICE_H_
23 #define EMAILIMAPSERVICE_H_
29 #include <vmime/vmime.hpp>
73 class TimeoutHandler :
public vmime::net::timeoutHandler
80 unsigned int getTime()
82 return vmime::platform::getHandler()->getUnixTime();
90 class TimeoutHandlerFactory :
public vmime::net::timeoutHandlerFactory
93 vmime::ref<vmime::net::timeoutHandler> create()
95 return vmime::create<TimeoutHandler>();
143 void loadCerificates();
160 void generateBundle(vmime::ref<vmime::net::message> &msg);
171 void returningMailCheck(vmime::ref<vmime::net::message> &msg);
196 std::string searchString(
const std::string &search,
const std::string &s);
215 vmime::ref<vmime::security::cert::X509Certificate> loadCertificateFromFile(
const std::string &path);
230 vmime::ref<vmime::net::store> _store;
240 vmime::ref<vmime::security::cert::defaultCertificateVerifier> _certificateVerifier;
245 vmime::net::folder::path _path;
250 vmime::ref<vmime::net::folder> _folder;
255 std::list<EMailSmtpService::Task*> _processedTasks;
271 int toInt(std::string s);
280 std::string toString(
int i);
290 vmime::utility::ref<const vmime::attachment> &attachment);
297 InvalidCertificate() {}
298 InvalidCertificate(std::string msg) : Exception(msg) {}
306 InvalidConversion() {}
307 InvalidConversion(std::string msg) : Exception(msg) {}
316 StringNotFound(std::string msg) : Exception(msg) {}
325 BidNotFound(std::string msg) : Exception(msg) {}
334 IMAPException(std::string msg) : Exception(msg) {}