Android Question quoted-printable EN attachments

peacemaker

Expert
Licensed User
Longtime User
How to save from emails ?

If my Android app allows the user to send an email (intent) with attached .CSV - why attachments are _sometimes_ quote-printable ? Not all the time are base64, as expected. I need to reveive these emails by the app and get CSV attached for sure.
 
Last edited:

peacemaker

Expert
Licensed User
Longtime User
If to send CSV as ZIPped - will they be always base64 ?
How to make sure in base64 to get them ?
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
OK, thanks, Erel, for reply.
But if to back to the question - is there any worth to try to parse quoted-printable email body ?
Even if only EN CSV are supposed.
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
What part of the text is important?

B4X:
Date: Fri, 10 Oct 2014 11:57:24 +0400
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_NextPart_000_01FE_01CFE481.5B4004B0"
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Mailer: Microsoft Windows Live Mail 16.4.3528.331
X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331

Ýòî — ñîîáùåíèå èç íåñêîëüêèõ ÷àñòåé â ôîðìàòå MIME.

------=_NextPart_000_01FE_01CFE481.5B4004B0
Content-Type: text/plain;
format=flowed;
charset="koi8-r";
reply-type=original
Content-Transfer-Encoding: 7bit

ChosenCityF8B7FFFF251B96A50E6B8B9DFE841584DEB8EC7186C23AA174D8EF2C47D5B21FChosenCity



------=_NextPart_000_01FE_01CFE481.5B4004B0
Content-Type: image/jpeg;
name="photo_35259606037202.jpg"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="photo_35259606037202.jpg"

/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcU

--------------manual skip----------------

------=_NextPart_000_01FE_01CFE481.5B4004B0
Content-Type: application/vnd.ms-excel;
name="data_35259606037202.csv"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="data_35259606037202.csv"

photo_35259606037202.jpg;35259606037202;0;Wireless =
Sales;null;Family;Name;363585600000;City;55509090909;email@gmail.=
com;Wireless Expert who excels at analyzing, prioritizing and completing =
tasks in a professional manner. Enthusiastic sale professional with 2 =
years experience. Consistently recognized for sales growth. Strong =
organizational, technical and analytical skills.  Tech-savvy =
professional with a strong background in android, =
apple.;sales;-1;-1;Mircosoft: Expert Sales: Advanced Team Leadership: =
Advanced Time Management: Advanced Teamwork: Advanced Sales Management: =
Advanced Team Leadership: Advanced Inventory Management: Advanced Time =
Management: Advanced Social Networking: Advanced;
------=_NextPart_000_01FE_01CFE481.5B4004B0
Content-Type: application/vnd.ms-excel;
name="experience_35259606037202.csv"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="experience_35259606037202.csv"

Grainger Honda;001398916800000;001409544000000;Car Sales;Solution =
Specialist;Collaborated with other team members on special projects and =
__________________skipped____________
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
As an idea - rename .CSV into, say, .PNG - maybe always will be sent as Base64, like .JPG ?
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
renaming it to .bin might help aswell since that was a binary format in the old days.

but the text seems to be alright.
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Why old days, firmware is usually so, but , i think, .BIN might be removed by mail-servers, as dangerous.
 
Upvote 0
Top