mobizt / ESP-Mail-Client

The comprehensive Arduino Email Client Library to send and read Email for Arduino devices. The library also supports other network shields or modules e.g., Wi-Fi, Ethernet, and GSM/4G modules.
https://mobizt.github.io/ESP-Mail-Client/
MIT License
194 stars 57 forks source link

IMAP SEARCH Queries involving FROM/TO Header Fields don't work on iCloud Mail Service #278

Closed dkalliv closed 1 year ago

dkalliv commented 1 year ago

Build tool used:

Board used (ESP32/ESP8266/Arudino):

Other Libraries That are used:

Description of problem: IMAP SEARCH Queries involving FROM/TO Header Fields don't work on the iCloud Mail Service because Apple expects a space between the name of the sender/recipient and the e-mail address of the sender/recipient. While RFC 822 allows this space, it does not require it (so basically this is Apple's fault). Basically a search query like this will not work on iCloud without the space:

Share code snippet to reproduce the issue:

HEADER FROM "something@somewhere"

Additional information and things you've tried: I've created a pull request to add the space.

mobizt commented 1 year ago

I request the change to your pr from. appendString(buf2, " ", false, false, esp_mail_string_mark_type_none); to appendSpace(buf2);

dkalliv commented 1 year ago

I updated the pull request as you requested. Sorry for the late reply, but we seem to have a few hours time difference...