Issue of sharing pdf files from WPS

94 views
Skip to first unread message

Junnan Zhang

unread,
Aug 26, 2015, 6:14:12 AM8/26/15
to K-9 Mail
Hello everyone, my phone is Samsung S6 Edge, Android 5.0.2, rooted. I find that K-9 mail cannot correctly send pdf files shared from WPS. It seems all right when composing, but the pdf attachments cannot be opened (maybe impaired I think) in the inbox. I tried other email clients (like bluemail) with no problem. So I believe it is related to K-9. Does anybody know the reason?

Richard

unread,
Aug 26, 2015, 1:53:47 PM8/26/15
to k-9-...@googlegroups.com
What is "WPS" in this context? It may be something obvious, but not
to me.

When you are having trouble viewing the pdfs (after sending from
K-9), are you trying to view then with K-9 or some other email
client, if so what?

Junnan Zhang

unread,
Aug 29, 2015, 1:47:46 PM8/29/15
to K-9 Mail, lists-...@listmail.innovate.net
I'm sorry for not making it clear. WPS is a pdf/word viewer app, which can be 
downloaded from Play Store. 

I tried to view those pdfs in "sent" folder and succeeded. But in the inbox of 
the email I sent to, they cannot be opened correctly. However, if I add attachments 
in K-9 directly from file explorer, there is no problem. So I think it is a issue related 
to sharing pdfs from WPS to K-9. 

Richard

unread,
Aug 30, 2015, 10:46:32 AM8/30/15
to k-9-...@googlegroups.com
I'm going to suspect that WPS doesn't do the multi-part headers
quite right when trying to attach the pdf to a K-9 message. You
could look at the raw version of messages where you attach using WPS
vs. FileExplorer vs the "sent" mail. My bet, given that "sent" is
ok, is that there's a problem with the "Content-Transfer-Encoding"
part with WPS as that matters when the message goes out through a
mail server while not as much for on-device "sent" mail.


> Date: Saturday, August 29, 2015 10:47:46 -0700
> From: Junnan Zhang <zhangju...@gmail.com>
>
> I'm sorry for not making it clear. WPS is a pdf/word viewer app,
> which can be downloaded from Play Store.
>
> I tried to view those pdfs in "sent" folder and succeeded. But in
> the inbox of the email I sent to, they cannot be opened
> correctly. However, if I add attachments in K-9 directly from
> file explorer, there is no problem. So I think it is a issue
> related to sharing pdfs from WPS to K-9.
>
> On Thursday, August 27, 2015 at 1:53:47 AM UTC+8, Richard wrote:
>>
>>
>> > Date: Wednesday, August 26, 2015 03:14:12 -0700
>> > From: Junnan Zhang <zhangju...@gmail.com <javascript:>>
>> >
>> > Hello everyone, my phone is Samsung S6 Edge, Android 5.0.2,
>> > rooted. I find that K-9 mail cannot correctly send pdf files
>> > shared from WPS. It seems all right when composing, but the
>> > pdf attachments cannot be opened (maybe impaired I think) in
>> > the inbox. I tried other email clients (like bluemail) with
>> > no problem. So I believe it is related to K-9. Does anybody
>> > know the reason?
>>
>> What is "WPS" in this context? It may be something obvious, but
>> not to me.
>>
>> When you are having trouble viewing the pdfs (after sending from
>> K-9), are you trying to view then with K-9 or some other email
>> client, if so what?
>>

------------ End Original Message ------------


Junnan Zhang

unread,
Sep 1, 2015, 12:48:58 AM9/1/15
to k-9-...@googlegroups.com
Yes! You are right! I checked the sources of two test emails I sent, one with 
attachment shared from WPS and one from File Explorer. I found that in the 
"attachment parts" of the sources, their Content-Transfer-Encoding are different!
The Content-Transfer-Encoding of the correctly sent attachment is base64, and 
the other one is 8bit, which is the same as the Content-Transfer-Encoding of
the "message parts" of the emails. 

Is that the reason why the pdfs cannot be correctly sent? So it's WPS's fault?



--
--
You received this message because you are subscribed to the K-9 Mail Users List.
To post to this group, send email to k-9-...@googlegroups.com
To unsubscribe, email k-9-mail+u...@googlegroups.com
To report an issue with K-9 Mail, visit http://code.google.com/p/k9mail/issues/list
For more options, visit this group at http://groups.google.com/group/k-9-mail

---
You received this message because you are subscribed to a topic in the Google Groups "K-9 Mail" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/k-9-mail/gqhel2TTcs8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to k-9-mail+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Richard

unread,
Sep 1, 2015, 6:01:01 AM9/1/15
to k-9-...@googlegroups.com
Yes, the 8bit Content-Transfer-Encoding is the problem. Sending a
pdf between non-like systems that way will end up with a corrupted
document, e.g., in the handling of cr/lf. It would seem that this is
WPS's error/fault.


> Date: Tuesday, September 01, 2015 12:48:52 +0800
> From: Junnan Zhang <zhangju...@gmail.com>
>
> Yes! You are right! I checked the sources of two test emails I
> sent, one with attachment shared from WPS and one from File
> Explorer. I found that in the "attachment parts" of the sources,
> their Content-Transfer-Encoding are different!
>
> The Content-Transfer-Encoding of the correctly sent attachment is
> base64, and the other one is 8bit, which is the same as the
> Content-Transfer-Encoding of the "message parts" of the emails.
>
> Is that the reason why the pdfs cannot be correctly sent? So it's
> WPS's fault?
>

Junnan Zhang

unread,
Sep 1, 2015, 2:57:02 PM9/1/15
to K-9 Mail
Thank you very much! I'm gonna report this issue to WPS.
Reply all
Reply to author
Forward
0 new messages