Switch to unified view

a/src/bincimapmime/convert.h b/src/bincimapmime/convert.h
...
...
239
  }
239
  }
240
240
241
  //----------------------------------------------------------------------
241
  //----------------------------------------------------------------------
242
  inline std::string toCanonMailbox(const std::string &s_in)
242
  inline std::string toCanonMailbox(const std::string &s_in)
243
  {
243
  {
244
    if (s_in.find("..") != std::string::npos) return string();
244
    if (s_in.find("..") != std::string::npos) return std::string();
245
245
246
    if (s_in.length() >= 5) {
246
    if (s_in.length() >= 5) {
247
      std::string a = s_in.substr(0, 5);
247
      std::string a = s_in.substr(0, 5);
248
      uppercase(a);
248
      uppercase(a);
249
      return a == "INBOX" ?
249
      return a == "INBOX" ?
250
    a + (s_in.length() > 5 ? s_in.substr(5) : string() : s_in;
250
    a + (s_in.length() > 5 ? s_in.substr(5) : std::string()) : s_in;
251
    }
251
    }
252
    
252
    
253
    return s_in;
253
    return s_in;
254
  }
254
  }
255
255