Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getAttachments on mail from IOS #90

Closed
Krzysztof-Pluskota opened this issue Jan 18, 2021 · 11 comments
Closed

getAttachments on mail from IOS #90

Krzysztof-Pluskota opened this issue Jan 18, 2021 · 11 comments
Labels
bug Something isn't working validated

Comments

@Krzysztof-Pluskota
Copy link

Hi,

I have a little problem. This package working fine, but when i try get an email attachment, which was send from ios, and attachment is into text body, then he handled as a text and hasAttachments() return false, or getTextBody() return email content with attachment as a string value.

@Webklex
Copy link
Owner

Webklex commented Jan 18, 2021

Hi @Krzysztof-Pluskota ,
thanks for your report.

Please provide an anonymized version of your mail content:

echo $message->getStructure()->raw;

Also which version are you running?
Are you using a legacy protocol or "imap"?

Best regards,

@Krzysztof-Pluskota
Copy link
Author

Hi @Webklex
Thanks for quickly response.
I send you a dump of $message->getStructure()->raw;
I use 2.4.0 package version and imap protocol
"""
\r\n
--Apple-Mail-CB6C9F65-9FDD-4F33-864A-21E33CD728F0\r\n
Content-Type: text/plain;\r\n
\tcharset=utf-8\r\n
Content-Transfer-Encoding: quoted-printable\r\n
\r\n
\r\n
--Apple-Mail-CB6C9F65-9FDD-4F33-864A-21E33CD728F0\r\n
Content-Type: image/jpeg;\r\n
\tname=IMG_0832.jpg;\r\n
\tx-apple-part-url=BD9FDA9F-8907-4350-AA6B-FA140A45806F\r\n
Content-Disposition: inline;\r\n
\tfilename=IMG_0832.jpg\r\n
Content-Transfer-Encoding: base64\r\n
\r\n
/9j/4AAUSkZJRgABAQEBLAEsAABBTVBG/+EI0kV4aWYAAE1NACoAAAAIAA0BDwACAAAABgAAAKoB\r\n
EAACAAAACgAAALABEgADAAAAAQAGAAABGgAFAAAAAQAAALoBGwAFAAAAAQAAAMIBKAADAAAAAQAC\r\n
AAABMQACAAAABwAAAMoBMgACAAAAFAAAANIBPAACAAAACgAAAOYBQgAEAAAAAQAAAgABQwAEAAAA\r\n

etc

\r\n
--Apple-Mail-CB6C9F65-9FDD-4F33-864A-21E33CD728F0\r\n
Content-Type: text/plain;\r\n
\tcharset=utf-8\r\n
Content-Transfer-Encoding: quoted-printable\r\n
\r\n
\r\n
\r\n
Wys=C5=82ane z iPhone'a=\r\n
\r\n
--Apple-Mail-CB6C9F65-9FDD-4F33-864A-21E33CD728F0--\r\n
"""

@Webklex
Copy link
Owner

Webklex commented Jan 18, 2021

Hi @Krzysztof-Pluskota ,
thanks for the quick followup. Which part / section of it are you expecting to be an attachment?

Best regards,

@Krzysztof-Pluskota
Copy link
Author

Krzysztof-Pluskota commented Jan 18, 2021

@Webklex I'm not sure if you are asking about it, but inside this is a encoded attachment. I cut most of it, becouse it is a really long string

image

Webklex added a commit that referenced this issue Jan 19, 2021
@Webklex
Copy link
Owner

Webklex commented Jan 21, 2021

Hi @Krzysztof-Pluskota ,
please update to the latest release v2.4.3.

Best regards,

@Krzysztof-Pluskota
Copy link
Author

Hi @Webklex
Thx for working on my case. I updated to v2.4.3 but i still have the same issue. I attach a file with all what a i get from $msg->getTextBody()
getTextBody.txt

for example
$msg->hasAttachments() still return false.

@Webklex
Copy link
Owner

Webklex commented Jan 22, 2021

Hi @Krzysztof-Pluskota ,
thanks for testing.

Could you donate a test message to github@webklex.com? This way I can parse it myself and take a closer look at it.

Best regards,

@Krzysztof-Pluskota
Copy link
Author

Krzysztof-Pluskota commented Jan 22, 2021

Hi @Webklex

My boss just send you a test email. His mail: redacted@gmail.com

@Webklex
Copy link
Owner

Webklex commented Jan 22, 2021

Hi @Krzysztof-Pluskota ,
please update to the latest release v2.4.4.

Best regards,

@Krzysztof-Pluskota
Copy link
Author

Hi @Webklex

Thx for help. Now it's working fine.

@Webklex Webklex closed this as completed Jan 25, 2021
@irfan9000
Copy link

irfan9000 commented Apr 23, 2022

@Webklex @Krzysztof-Pluskota @Korko @Max13 @Slauta

IOS attachments are not fetching. Kindly someone helps me. My email is: irfan.iqbal7933@gmail.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working validated
Projects
None yet
Development

No branches or pull requests

3 participants