Enough-Software / enough_mail

IMAP, POP3 and SMTP clients for Dart developers. Contains both low level as well as a high level API.
Mozilla Public License 2.0
105 stars 55 forks source link

On search with "before" param: BAD Command Argument Error. 11 #238

Open ig-garcia opened 7 months ago

ig-garcia commented 7 months ago

It looks like the querybuilder may be adding too many double quotes to the dates? image

My error:

param: BAD Command Argument Error. 11

My use case:

final cutoffDate =
        (await _localDataSource.getOldestMessage())?.decodeDate()!;
    final List<MimeMessage> newMessages;
    if (cutoffDate != null) {
      final searchResult = await mailClient.searchMessages(
          MailSearch("", SearchQueryType.subject, before: cutoffDate));