Android Question Problem with MailParser

peggjones

Active Member
Licensed User
Longtime User
I am picking up Emails from Gmail and trying to use mailparser to extract an attachment from it.

When I look at the email through gmail I can see the attachments.

However when I debug message the relevent part looks this

[Attachments=(ArrayList) [], indicating no attachment.

Any ideas anyone?
 

peggjones

Active Member
Licensed User
Longtime User
I have just discovered that the problem only occurs with emails sent by SMTP.

If I send an email to gmail "manually" everything is OK.

I also notice that the body part of the message is truncated to two characters!
 
Upvote 0

peggjones

Active Member
Licensed User
Longtime User
This line in routine routine "handlepart" is not fulfilled

If Regex.Matcher2("Content-Transfer-Encoding:\s*base64", _

I don't think it's the fault of MailParser though.

When I debug a message coming in that has been sent by SMTP the attachments bit looks like this

Attachments=(ArrayList) [], indicating no attachment.

When I debug a message coming in that has been sent manually to Gmail from my Hotmail account the attachments bit looks like this

Attachments=(ArrayList) [file.txt], indicating an attachment.

Also if I look directly at my Gmail account the attachment is there.
 
Upvote 0
Top