IMAP, POP3 and SMTP clients for Dart developers. Contains both low level as well as a high level API.
Mozilla Public License 2.0
100
stars
56
forks
source link
BUG: getPartWithContentId is tolowercase but not cid #208
Open
Tzanou123 opened 1 year ago
Hello,
I think i found a fix for a bug i get on showing inline attachments.
On https://github.com/Enough-Software/enough_mail/blob/main/lib/src/mime_message.dart
Line 1012 you check if
partCid.toLowerCase() == cid
but cid it is not in toLowerCase so i get a return null even if the part exist.But Line 1008 the variable
contentId = contentId.toLowerCase();
but not usedYou maybe need to use it on line 1012 as follow
partCid.toLowerCase() == contentId