thunderbird-android icon indicating copy to clipboard operation
thunderbird-android copied to clipboard

Truncates emailed URLs, adds winmail.dat with upgraded K-9 Mail

Open DiskDoctor opened this issue 4 years ago • 16 comments

Checklist

  • [X] I have used the search function to see if someone else has already submitted the same bug report.
  • [X] I will describe the problem with as much detail as possible.

App version

5.806

Where did you get the app from?

Google Play

Android version

6.01

Device model

No response

Steps to reproduce

Email long URL with Outlook to self and retrieve email on K-9 Mail.

The URL will be a shortened URL with the rest of the link as text following and not cooperative to copy the link as one to use on phone.

Same email sent to gmail, no problem.

Expected behavior

URL should remain as a single link

Actual behavior

Truncates url as described, winmail.dat added.

Logs

No response

DiskDoctor avatar Jan 24 '22 16:01 DiskDoctor

I tried this on the main branch and also on 5.806, could not reproduce. Consensus on the Internet (e.g. https://stackoverflow.com/a/417184/6027 ) seems to be that 2,000 is the longest URL generally supported. I tried with 2000, 1000, and 2300, and didn't see issues in K-9.

Can you be more specific about the length of the string you are using (ideally the exact URL you are using) and the steps you are using to "use" the URL? I.e. are you trying to open it, or copying the URL itself, to try to paste elsewhere, or looking at the text of the URL? Also, which Outlook (Outlook for Mac or PC, which version, etc.)?

parkerfath avatar Jan 26 '22 03:01 parkerfath

This is the URL: https://www.subarupartsdeal.com/parts-list/2008-subaru-outback/body_electronics/electrical_parts_body.html?diagram=04

Sent to my own account so it can be retrieved on my phone, then copy and paste into text to friend.

Sending using Outlook 2016 POP3 (win 10 pro) to K-9 Mail using IMAP. Copy of email retrieved in Outlook is fine with the entire URL intact.

AVG installed on laptop with Outlook, not on cellphone, so not AVG problem. Maybe K-9 Mail has problem reading AVG-processed emails?

Screenshot attached.

K-9 Mail URL Truncated screenshot

DiskDoctor avatar Jan 26 '22 04:01 DiskDoctor

The text probably contains a line break in the middle of the URL. K-9 Mail's link detection will stop at line breaks.

Outlook shouldn't be sending a TNEF message (winmail.dat attachment) when the recipient isn't using Outlook, too. See https://support.microsoft.com/en-us/topic/how-email-message-formats-affect-internet-email-messages-in-outlook-3b2c0536-c1c0-1d68-19f0-8cae13c26722

cketti avatar Jan 26 '22 11:01 cketti

No line break. I've checked that several ways.

First, I can receive a cc or forward of the same message into Outlook and the link is fine. That tells me the message isn't altered, just the Presentation in K-9 is off.

Second, I copied the link from the original message and pasted into notepad++ and it is a single line. I initially suspected some sort of word wrap issue or shortening of URL but haven't found anything like that.

Doesn't mean there isn't some stealth setting in Outlook that I am missing?

This is a new behavior after I applied updates to Outlook, Windows, and new version of K-9 Mail.

I'll look at the Outlook link you posted, just to be sure.

AVG sometimes has problems with its email scanner and it is constantly updated, but since the message is intact in Outlook, even when I grab the original out of the sent email folder and forward it, I don't think it is the issue.

It really narrows down to K-9 Mail, but I'll check or test whatever is helpful to track it down.

PS- I just confirmed the same truncated URL problem exists when formatting message as HTML or Rich Text.

I tried simply forwarding the Github notification for this thread, which contains long URLs in order to rule out composition errors. The links are also truncated on K-9 Mail. Each one is truncated after TWO LINES of URL on my tiny phone display in portrait, ONE LINE in landscape, and at the exact same character- ruling out word wrap in the display on K-9 Mail.

DiskDoctor avatar Jan 26 '22 14:01 DiskDoctor

Can you please use K-9 Mail to forward the message as attachment to [email protected], so I can have a closer look at it.

cketti avatar Jan 26 '22 15:01 cketti

Sure. I just disabled AVG and forwarded the sent message again. Same results.

If I cc the message to my gmail account, gmail displays the link properly on the gmail app.

Message sent.

DiskDoctor avatar Jan 26 '22 15:01 DiskDoctor

Spam blocked the email. [email protected]: host smtpin.rzone.de[81.169.145.97] said: 550 5.7.1 Refused by local policy. No SPAM please! (B-EX 149500::1643209695-0001A767-07597010/10/29087021962) see https://www.strato-hosting.co.uk/faq/product/why-are-my-emails-not-being-delivered (in reply to end of DATA command)

I use Bluehost but my domain is not hacked or blocked, their range of ip addresses maybe?

Do you have an alternate address?

DiskDoctor avatar Jan 26 '22 15:01 DiskDoctor

Final-Recipient: rfc822; [email protected] Original-Recipient: rfc822;[email protected] Action: failed Status: 5.7.1 Remote-MTA: dns; smtpin.rzone.de Diagnostic-Code: smtp; 550 5.7.1 Refused by local policy. No SPAM please! (B-EX 149500::1643210214-00008100-527579DF/10/29087021962) see https://www.strato-hosting.co.uk/faq/product/why-are-my-emails-not-being-delivered

DiskDoctor avatar Jan 26 '22 15:01 DiskDoctor

Try [email protected]

cketti avatar Jan 26 '22 15:01 cketti

Done. I also forwarded it from K-9 Mail, in case you have a filter to look for K-9 header info. So you may get 2 messages.

DiskDoctor avatar Jan 26 '22 15:01 DiskDoctor

I haven't received any of the emails. It might be due to this issue: https://forum.k9mail.app/t/5-8-showing-as-sent-but-not-always-arriving-at-destination/2481

cketti avatar Jan 26 '22 15:01 cketti

Ugh. No errors or returns from K-9 on my phone. I can send you the original message from gmail, but that won't be truncated. You can then send that to your own K-9 email and see if it truncates?

Edit: Sent by gmail. Similar email address for me.

DiskDoctor avatar Jan 26 '22 16:01 DiskDoctor

In order to debug the issue I need access to the source of the message received by K-9 Mail. Ideally K-9 Mail included a feature to save the complete message to a file so you could attach it here. But currently it doesn't. Another way to get the message contents into a file is to use K-9 Mail's "forward as attachment" functionality (this is different from regular "forward"). Now, it looks like you can't send the message to me directly. What you could do, is "forward as attachment" to yourself, then use K-9 Mail to save the attachment and upload it to this issue.

cketti avatar Jan 26 '22 16:01 cketti

I'll see what I can grab. Let me know what exactly you are needing and I'll get it to you shortly. Have some work to get done here, so in a little bit.

DiskDoctor avatar Jan 26 '22 16:01 DiskDoctor

Same issue here. I use Posteo`s email service on my android google pixel 6a with K9. If I send emails from my PC, from outlook, then when I search for the same message on my mobile, I find the email but the attachment changes to winmail.dat. It occurs for all emails.

Seithx avatar Feb 02 '23 08:02 Seithx

I seem to be having a similar issue, but it doesn't happen for all my email accounts.

It's a weird situation: on my phone I have 2 accounts in k-9 mail, mimy email and m wife's email. Both accounts are separate email accounts through the same provider (run box in this case). They're totally separate accounts, not sub accounts or anything. My parents will send an email to both of us (from outlook) with an attachment, and the email in K9 in my email inbox just has a winmail.dat attachment, while the one in my wife's email in K9 has the actual attachment.

Not sure if I have the settings in K9 different, or if the settings in my email provider are different. But if I go to the webmail (either runbox's on in my self hosted roundcube) or thunderbird for those accounts the email attachment is fine in both accounts.

iwismer avatar Aug 12 '23 13:08 iwismer