Bug 168992 - Attachments have a quote after them
Summary: Attachments have a quote after them
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: mime (show other bugs)
Version: SVN trunk (KDE 4)
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2008-08-12 19:55 UTC by Jeff Mitchell
Modified: 2018-09-04 18:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot with the quotes shown (19.94 KB, image/png)
2008-08-12 19:56 UTC, Jeff Mitchell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Mitchell 2008-08-12 19:55:31 UTC
Version:           1.10.0 r845362 (using Devel)
Installed from:    Compiled sources
OS:                Linux

Every time I receive an attachment, it has a quote after it...this quote persists when trying to save the attachment.  See the attached screenshot.
Comment 1 Jeff Mitchell 2008-08-12 19:56:05 UTC
Created attachment 26808 [details]
Screenshot with the quotes shown
Comment 2 Thomas McGuire 2008-08-16 16:56:46 UTC
I don't have that problem, must be something sender-specific.
Can you attach such a message here or send it to me by mail? A small message would be preferable.
Comment 3 Jeff Mitchell 2008-08-19 20:50:46 UTC
I was looking at messages I could send to you, and found something weird.  I was looking at an email that had an embedded small image as an attachment.  First, I can't figure out when it does and when it doesn't happen.  It seems that it doesn't always happen like I had originally thought.

Second, when I hit V to view source, the email seemed to reload -- it switched back to the top of the email instead of scrolled down where I was, and when I scrolled back down, instead of showing the icon for the image plus the extra-quote link, plus a name underneath (as in the screenshot above), the image was rendered instead, and below the rendered image was a link to download the attachment, with no extra quote (and no non-link name underneath).

If I send you an email to test, do you want me to forward it to you, or send you the source, or...?
Comment 4 Thomas McGuire 2008-08-20 17:11:19 UTC
> I was looking at messages I could send to you, and found
> something weird.  I was looking at an email that had an embedded small
> image as an attachment. First, I can't figure out when it does and when it
> doesn't happen.  It seems that it doesn't always happen like I had
> originally thought.
>
> Second, when I hit V to view source, the email seemed to reload -- it
> switched back to the top of the email instead of scrolled down where I was,
> and when I scrolled back down, instead of showing the icon for the image
> plus the extra-quote link, plus a name underneath (as in the screenshot
> above), the image was rendered instead, and below the rendered image was a
> link to download the attachment, with no extra quote (and no non-link name
> underneath).
>
> If I send you an email to test, do you want me to forward it to you, or
> send you the source, or...?

Sounds like something happening with loading attachments on demand. Displaying 
the image when it is loaded is probably the right thing to do, and viewing the 
source triggers the loading. I _think_ that loading a mail part also retrieves 
the name again.
You're using online IMAP, right? This might actually be server specific, but 
send me the mail anyway so I can test. Please forward the mail as attachment, 
this way I can save it without modifing.> I was looking at messages I could send to you, and found
> something weird.  I was looking at an email that had an embedded small
> image as an attachment. First, I can't figure out when it does and when it
> doesn't happen.  It seems that it doesn't always happen like I had
> originally thought.
>
> Second, when I hit V to view source, the email seemed to reload -- it
> switched back to the top of the email instead of scrolled down where I was,
> and when I scrolled back down, instead of showing the icon for the image
> plus the extra-quote link, plus a name underneath (as in the screenshot
> above), the image was rendered instead, and below the rendered image was a
> link to download the attachment, with no extra quote (and no non-link name
> underneath).
>
> If I send you an email to test, do you want me to forward it to you, or
> send you the source, or...?

Sounds like something happening with loading attachments on demand. Displaying 
the image when it is loaded is probably the right thing to do, and viewing the 
source triggers the loading. I _think_ that loading a mail part also retrieves 
the name again.
You're using online IMAP, right? This might actually be server specific, but 
send me the mail anyway so I can test. Please forward the mail as attachment, 
this way I can save it without modifing.
Comment 5 Thomas McGuire 2008-08-20 17:12:00 UTC
Oh, the double-paste bug striked again...
Comment 6 Thomas McGuire 2008-08-23 15:09:12 UTC
If you're using Google IMAP, it might actually a bug in their server. I have just discovered a very similar bug which would make the filename and the content-type invalid:

kio_imap4(14113) KIO::TCPSlaveBase::write:
25 UID FETCH 1 (UID RFC822.SIZE FLAGS BODY.PEEK[2.MIME])
kio_imap4(14113) KIO::TCPSlaveBase::read:
* 1 FETCH (UID 1 RFC822.SIZE 9910 FLAGS (\Seen) BODY[2.MIME] {248}
Content-Type: =?ISO-8859-1?Q?application/pdf;_name=3D"Einstein_R=E4tsel.pdf"?=
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename*0*=ISO-8859-15''%45%69%6E%73%74%65%69%6E%20%52%E4%74%73%65%6C%2E;
 filename*1*=%70%64%66

)

Which clearly is a messed up filename and Content-Type header, I guess I'll report this to them as soon as I find out how I can do this.
Comment 7 Jeff Mitchell 2008-08-24 18:19:44 UTC
I'm not using Google's IMAP server.  It is, unfortunately, Exchange 2007.  I'll try to find one that I can forward soon -- since it's at work I have to find one that isn't company sensitive.
Comment 8 Ruchir Brahmbhatt 2009-04-10 12:32:01 UTC
I can not reproduce on 1.11.2. Even tried same attachment name as reporter. Can you attach problematic mail to check?
Comment 9 Jeff Mitchell 2009-04-10 18:16:05 UTC
No, unfortunately.  Ever since an update to the Exchange server, KMail has had problems with it in various ways (often very, very long delays while updating mailboxes) so I've had to switch of it.  I'll resolve this until (if ever) I can use KMail again and reproduce it again.
Comment 10 Andrew Crouthamel 2018-09-04 18:21:06 UTC
Hello! Sorry to be the bearer of bad news, but this version of Kmail has been unmaintained for many years so I am closing this bug. Please try using the latest version of Kmail to see if your issue persists. If it does, please submit a new bug in "kmail2". Thank you!