Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100310 - Evolution ignores the Content-ID header in multipart mail messages
Summary: Evolution ignores the Content-ID header in multipart mail messages
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: GNOME Office (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-25 18:58 UTC by Owen Berry
Modified: 2006-02-15 14:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Email as retrieved from a maildir file from my IMAP server (emailviamaildir,27.14 KB, text/plain)
2006-01-25 16:11 UTC, Owen Berry
Details
Email as retrieved from Evolution by viewing the source (emailviaevolution,27.14 KB, text/plain)
2006-01-25 16:12 UTC, Owen Berry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Owen Berry 2005-07-25 18:58:06 UTC
When viewing a multipart html message in Evolution, it seems to be ignoring the
Content-ID header, and therefore message parts that are supposed to be shown
inline aren't. A "missing image" icon is show in place of where the image (or
whatever) should be.

For example, when viewing the actual file, this is what is in the file:

--=-5haPOFZOZXlceA4PKYkw
Content-ID: <1122332805.4033.0.camel@localhost>
Content-Disposition: attachment; filename="20010924_01 Cats.jpg"
Content-Type: image/jpeg; name="20010924_01 Cats.jpg"
Content-Transfer-Encoding: base64

... but when viewing the source of the email, this is what is shown:

--=-fRjItGD3o5pZKVZVBHmw
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

This used to work properly. I think it broke in 1.2.1. I know it is broken in
1.2.1-r1 and the ~x86 1.2.3.


Reproducible: Always
Steps to Reproduce:
1. Compose a new email. 
2. Click on the Format menu item, and click on HTML, to set the format to be html.
3. Address the email to yourself.
4. An subject will do.
5. Click on the Insert menu item, and choose Image ... to insert an image.
6. Browse for an image off your hard drive, and insert it into the email.
7. Send the email.
8. F9
9. Open the new email.
Actual Results:  
The email shows the image that is supposed to be inline as an attachment
instead, and where it should be displayed is an image indicating a broken link
or attachment.

Expected Results:  
The image should be displayed inline in the text of the email.

# emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r0, 2.6.12-gentoo-r4-odb i686)
=================================================================
System uname: 2.6.12-gentoo-r4-odb i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.8.1-r1, 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-g -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
ftp://130.207.108.136/pub/gentoo http://adelie.polymtl.ca/ http://gentoo.ccccom.com"
LANG="C"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm avi berkdb bitmap-fonts crypt cups curl eds emboss
encode esd fam flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2
gtkhtml guile imap imlib java jpeg libg++ libwww mad mikmod motif mozilla mp3
mpeg ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl png ppds python
quicktime readline samba sasl sdl slang spell ssl svga tcpd tiff truetype
truetype-fonts type1-fonts vorbis xine xml xml2 xmms xv zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Owen Berry 2005-07-26 06:21:36 UTC
(In reply to comment #0)
> ... but when viewing the source of the email, this is what is shown:
> 
> ... but when viewing the source of the email, this is what is shown:
>
> --=-fRjItGD3o5pZKVZVBHmw
> Content-Type: text/html; charset=utf-8
> Content-Transfer-Encoding: 7bit

Oops! That was the wrong part. Here is the correct one:

--=-5haPOFZOZXlceA4PKYkw
Content-Disposition: attachment; filename="20010924_01 Cats.jpg"
Content-Type: image/jpeg; name="20010924_01 Cats.jpg"
Content-Transfer-Encoding: base64
Comment 2 Mike Gardiner (RETIRED) gentoo-dev 2005-11-02 00:43:41 UTC
Works fine for me in 2.4.1, what version of evolution are you running?
Comment 3 Owen Berry 2005-11-02 06:14:16 UTC
(In reply to comment #2)
> Works fine for me in 2.4.1, what version of evolution are you running?

I am running the stable version: 2.2.3-r3. How stable is 2.4.1 (and it's
dependancies) in terms of me testing it to see if this has been resolved?
Comment 4 Mike Gardiner (RETIRED) gentoo-dev 2005-11-04 07:39:27 UTC
2.4.1's stable for me - I haven't experienced any crashes at all, although I
can't say I've been stress-testing it.

To test it out, you'll need to ACCEPT_KEYWORDS="~x86" emerge evolution.
Comment 5 Owen Berry 2005-11-07 06:34:00 UTC
I'll have a go at testing as soon as I have a chance. Takes me a while to
compile as I have a slow machine.
Comment 6 Owen Berry 2005-11-07 13:14:20 UTC
Nope, still broken for me - Evolution seems to be ignoring that Content-ID.
There is no problem with the email created - I viewed it with no problem on
Evolution 2.0.4 on FC3.

Looking at the raw file:

Content-ID: <1131397022.2150.0.camel@localhost>
Content-Disposition: attachment; filename=20011002_08_Noogie.jpg
Content-Type: image/jpeg; name=20011002_08_Noogie.jpg
Content-Transfer-Encoding: base64

Viewing the source in Evolution:

Content-Disposition: attachment; filename=20011002_08_Noogie.jpg
Content-Type: image/jpeg; name=20011002_08_Noogie.jpg
Content-Transfer-Encoding: base64

Is this something that is performed by libgtkhtml? I have tried rebuilding it,
with no change in the problem. Made sure that everything is up to date, with
revdep-rebuild. What else can I do?

Here is an updated emerge info. Let me know if there is anything else I can look at.

Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2,
2.6.13-gentoo-r5-odb-sil0680 i686)
=================================================================
System uname: 2.6.13-gentoo-r5-odb-sil0680 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.8.1-r1, 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
ftp://130.207.108.136/pub/gentoo http://adelie.polymtl.ca/ http://gentoo.ccccom.com"
LANG="C"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm avi berkdb bitmap-fonts bonobo cdr crypt cups curl
eds emboss encode esd fam flac foomaticdb fortran gdbm gif gnome gpm gstreamer
gtk gtk2 gtkhtml guile imagemagick imap imlib java jpeg libg++ libwww mad mikmod
motif mozilla mp3 mpeg ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl
png ppds python quicktime readline samba sasl sdl slang spell ssl svga tcpd tiff
truetype truetype-fonts type1-fonts udev vorbis xine xml xml2 xmms xv zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 7 Mike Gardiner (RETIRED) gentoo-dev 2006-01-24 08:36:54 UTC
Can you please attach a full example to this bug? Thanks.
Comment 8 Owen Berry 2006-01-25 07:03:48 UTC
What kind of example would you like me to attach? I can attach the email file as per my IMAP server, and a file containing the text that evolution shows when I view source. Will that be helpful?
Comment 9 Mike Gardiner (RETIRED) gentoo-dev 2006-01-25 07:28:47 UTC
Yes, sorry I didn't specify, a complete email with the Content-ID header in place. Thanks.
Comment 10 Owen Berry 2006-01-25 16:11:42 UTC
Created attachment 78119 [details]
Email as retrieved from a maildir file from my IMAP server

Note the Content-ID on line 47
Comment 11 Owen Berry 2006-01-25 16:12:48 UTC
Created attachment 78120 [details]
Email as retrieved from Evolution by viewing the source

Note that the Content-ID is missing from line 47.
Comment 12 Owen Berry 2006-01-25 16:16:11 UTC
Here's an updated emerge info. Let me know if I can provide anything else.

# emerge info
Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.8.1-r1, 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://130.207.108.136/pub/gentoo http://adelie.polymtl.ca/ http://gentoo.ccccom.com"
LANG="C"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm audiofile avi berkdb bitmap-fonts bonobo bzip2 cairo cdr crypt cups curl dbus dts eds emboss encode esd exif expat fam ffmpeg flac foomaticdb fortran gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile hal idn imagemagick imap imlib java jpeg lcms libg++ libwww mad mikmod mng motif mozilla mp3 mpeg ncurses nls nptl ogg oggvorbis opengl oss pam pcre pdflib perl png ppds python quicktime readline recode samba sasl sdl slang spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis wmf xine xml xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 13 Owen Berry 2006-02-10 07:01:16 UTC
I also wanted to point out that if you move the message from one folder to another within Evolution, the Content-ID header is actually lost from the email. This is pretty bad ... modifying emails!
Comment 14 Owen Berry 2006-02-15 14:04:49 UTC
I changed my account preferences to use IMAPrev4v1 and now it works fine. I tested this with another IMAP server which is set to use IMAP (*not* IMAP4rev1) and it also works fine, so I'm wondering if it's a problem in the IMAP server I have running - Binc IMAP. On the other hand, the first time I noticed this was after an Evolution upgrade.

Just to make sure, I switched it back to IMAP, and it stopped working again. So it must be a Binc IMAP thing, or maybe an Evolution/Binc IMAP interaction issue. Oh well.