Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

It's from Yahoo again

Quote Reply
It's from Yahoo again
Someone sent a mail from yahoo with jpg attachment to gossamer mail account. here is relevant part of header:

MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="0-1043652818-1151094235=:3136"

The mail shows as mail with attachment
However when i open that mail, there is no attachment.

Checked on nessa template also same issue

GM 2.2.4

Any reasons why this could be so?

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [HyperTherm] It's from Yahoo again In reply to
That header looks fine, but what are the headers for the actual image part? Are you using the old yahoo interface or the beta one?

Adrian
Quote Reply
Re: [brewt] It's from Yahoo again In reply to
The image attachment is show fine on yahoo.
It does not show on gossamer mail. Checked on 2.2.4 nessa template also

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [brewt] It's from Yahoo again In reply to
Header as seen in gossamer mail:

Content-Transfer-Encoding: 8bit

This is a multi-part message in MIME format.

--0-1043652818-1151094235=:3136
Content-Type: text/plain; charset=iso-8859-1
Content-Id:
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

--0-1043652818-1151094235=:3136
Content-Type: image/jpeg; name="133-3363_IMG.JPG"
Content-Description: 1077087068-133-3363_IMG.JPG
Content-Disposition: inline; filename="133-3363_IMG.JPG"
Content-Transfer-Encoding: base64

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [HyperTherm] It's from Yahoo again In reply to
I meant to send the e-mail (so I can test it myself).

Adrian
Quote Reply
Re: [brewt] It's from Yahoo again In reply to
Sorry I do not know what the other person used (but i presume that it must be what's there at mail.yahoo.com by default). I desisted from asking him as it would have been embarassing telling him that my webmail is not showing the image attachment for download though the mail itself is being shown as a mail with attachment. So possibly you may have to spend that extra bit of time testing on all versions that you have access to.

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [HyperTherm] It's from Yahoo again In reply to
I tried sending an image attachment from yahoo as well as the beta, and both parsed properly. However, I was testing it with GMail 3.0.1, as I currently don't have any 2.2.4 installs set up right now. Could I get an account to test with?

Adrian
Quote Reply
Re: [brewt] It's from Yahoo again In reply to
PM'd the details.
Sorry for the dlay.

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [HyperTherm] It's from Yahoo again In reply to
It's happening due to a bug where if you have html set as your default display type and you have a text only e-mail, the first attachment is not shown. This was fixed in 3.0. Here's a patch for 2.2.4:
Code:
--- Messages.pm 4 Nov 2004 20:27:22 -0000 1.206.2.3
+++ Messages.pm 8 Jul 2006 01:23:19 -0000
@@ -1895,10 +1895,23 @@
}

# Yahoo! Mail's auto-reply has a 'Content-Type: text' for some odd reason.
+ my ($html_exists, $text_exists);
for (my $i = 0; $i < @attachlist; $i++) {
if ($attachlist[$i]->{msgdata_type} eq 'text') {
$attachlist[$i]->{msgdata_type} = 'text/plain';
}
+ if ($attachlist[$i]->{msgdata_type} eq 'text/plain') {
+ $text_exists++;
+ }
+ elsif ($attachlist[$i]->{msgdata_type} eq 'text/html') {
+ $html_exists++;
+ }
+ }
+ if ($body_type eq 'text' and !$text_exists and $html_exists) {
+ $body_type = 'html';
+ }
+ elsif ($body_type eq 'html' and !$html_exists and $text_exists) {
+ $body_type = 'text';
}

if ($attachlist[0]->{msgs_content} and $attachlist[0]->{msgs_content} =~ /alternative|related/i) {

Adrian
Quote Reply
Re: [brewt] It's from Yahoo again In reply to
Hello,

What i have is:

# Revision : $Id: Messages.pm,v 1.206.2.2 2004/10/26 01:10:40 brewt Exp $

The patch is applicable on this also?

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [HyperTherm] It's from Yahoo again In reply to
Yes

Adrian