ECVMIMEUtils.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright 2005 - 2016 Zarafa and its licensors
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU Affero General Public License, version 3,
  6. * as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU Affero General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU Affero General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. *
  16. */
  17. #ifndef ECVMIMEUTILS
  18. #define ECVMIMEUTILS
  19. #include <memory>
  20. #include <string>
  21. #include <set>
  22. #include <kopano/zcdefs.h>
  23. #include <vmime/vmime.hpp>
  24. #include <inetmapi/inetmapi.h>
  25. namespace KC {
  26. class _kc_export_dycast ECVMIMESender _kc_final : public ECSender {
  27. private:
  28. _kc_hidden HRESULT HrMakeRecipientsList(LPADRBOOK, LPMESSAGE, vmime::shared_ptr<vmime::message>, vmime::mailboxList &recips, bool allow_everyone, bool always_expand_distlist);
  29. _kc_hidden HRESULT HrExpandGroup(LPADRBOOK, const SPropValue *grp_name, const SPropValue *grp_eid, vmime::mailboxList &recips, std::set<std::wstring> &s_groups, std::set<std::wstring> &s_recips, bool allow_everyone);
  30. _kc_hidden HRESULT HrAddRecipsFromTable(LPADRBOOK, IMAPITable *table, vmime::mailboxList &recips, std::set<std::wstring> &s_groups, std::set<std::wstring> &s_recips, bool allow_everyone, bool always_expand_distlist);
  31. public:
  32. _kc_hidden ECVMIMESender(const std::string &host, int port);
  33. _kc_hidden HRESULT sendMail(LPADRBOOK, LPMESSAGE, vmime::shared_ptr<vmime::message>, bool allow_everyone, bool always_expand_distlist);
  34. };
  35. } /* namespace */
  36. #endif