karastojko / mailio

mailio is a cross platform C++ library for MIME format and SMTP, POP3, IMAP protocols. It is based on the standard C++ 17 and Boost library.
Other
382 stars 102 forks source link

Static folder delimiter #93

Closed canyone2015 closed 2 years ago

canyone2015 commented 2 years ago

When changing the imap server, the delimiter remains the same, although it obviously must change.

Please, remove static folder delimiter in imap::folder_delimiter() method:

static string delimiter;

and create field to store the delimiter.

canyone2015 commented 2 years ago

Quick fix:

  1. Remove this line (src/imap.cpp):
    static string delimiter;
  2. Add this line to the end of imap class (include/mailio/imap.hpp):
    /**
    Folder delimiter
    **/
    std::string delimiter;
karastojko commented 2 years ago

Fixed with the latest commit. I have added you to the Contributors section.