Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

email mime parsing failure

Status
Not open for further replies.

MrCBofBCinTX

Technical User
Dec 24, 2003
164
US
I have a forum section that displays emails from a mailing list.
The script fails to properly work with an emailer that uses PGP signature.asc.
I suspected that that was the problem and I requested an email from someone else who uses PGP too. That email ran just fine.

That email was application/pgp
The problem email has another set of boundaries inside of a multipart/mixed section.

The email gets stripped of all content except last section that mailing list software adds on.

I get nothing section, then

--------------------------
blah blah mailing list
yakety-yak.html

The script uses MIME::parser
I got a copy of demime, get same result

Will post copy of not working and working email sources shortly
 
Sorry took me so long, but discovered 2 more emailers that failed also. They were failing with MIME::parser but run through demime perfectly. All are mixes of multipart/mixed and multipart/alternative.

But the following message source fails both:
Code:
From - Tue Mar  4 17:53:26 2008
X-Account-Key: account2
X-UIDL: 1204674690.678865.m1gemini00-04.prod.mesa1.1106721120
X-Mozilla-Status: 0011
X-Mozilla-Status2: 10000000
Received: (qmail 16168 invoked from network); 4 Mar 2008 23:16:06 -0000
Received: from unknown (HELO pre-smtp17-01.prod.mesa1.secureserver.net) ([64.202.166.71])
          (envelope-sender <ledger-smb-devel-bounces@lists.sourceforge.net>)
          by smtp12-02.prod.mesa1.secureserver.net (qmail-1.03) with SMTP
          for <x@x.biz>; 4 Mar 2008 23:16:06 -0000
Received: (qmail 22833 invoked from network); 4 Mar 2008 23:15:04 -0000
Received: from unknown (HELO lists-outbound.sourceforge.net) ([66.35.250.225])
          (envelope-sender <ledger-smb-devel-bounces@lists.sourceforge.net>)
          by pre-smtp17-01.prod.mesa1.secureserver.net (qmail-ldap-1.03) with SMTP
          for <x@x.biz>; 4 Mar 2008 23:15:04 -0000
Received: from sc8-sf-list1-new.sourceforge.net (sc8-sf-list1-new-b.sourceforge.net [10.3.1.93])
	by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP
	id 3FA0EFD66; Tue,  4 Mar 2008 15:15:02 -0800 (PST)
Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91]
	helo=mail.sourceforge.net)
	by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43)
	id 1JWgLb-0005kx-AF for ledger-smb-devel@lists.sourceforge.net;
	Tue, 04 Mar 2008 15:14:59 -0800
Received: from lax-green-bigip-5.dreamhost.com ([208.113.200.5]
	helo=swarthymail-a3.g.dreamhost.com)
	by mail.sourceforge.net with esmtp (Exim 4.44) id 1JWgLZ-0004Qq-NS
	for ledger-smb-devel@lists.sourceforge.net;
	Tue, 04 Mar 2008 15:14:59 -0800
Received: from lapcat (unknown [66.178.130.205])
	by swarthymail-a3.g.dreamhost.com (Postfix) with ESMTP id EA63E7F018
	for <ledger-smb-devel@lists.sourceforge.net>;
	Tue,  4 Mar 2008 15:14:56 -0800 (PST)
From: turtle <x@x.com>
To: Development discussion for LedgerSMB <ledger-smb-devel@lists.sourceforge.net>
Date: Tue, 4 Mar 2008 15:15:16 -0800
User-Agent: KMail/1.9.7
References: <200803032001.41227.x@x.com>
	<097E7D12-F0D2-4F19-B61A-674BAA3D50AE@myrealbox.com>
	<1204635148.10063.30.camel@localhost>
In-Reply-To: <1204635148.10063.30.camel@localhost>
MIME-Version: 1.0
Message-Id: <200803041515.27441.x@x.com>
X-Spam-Score: 0.0 (/)
X-Spam-Report: Spam Filtering performed by sourceforge.net.
	See [URL unfurl="true"]http://spamassassin.org/tag/[/URL] for more details.
	Report problems to
	[URL unfurl="true"]http://sf.net/tracker/?func=add&group_id=1&atid=200001[/URL]
Subject: Re: [Ledger-smb-devel] Gentoo ebuild
X-BeenThere: ledger-smb-devel@lists.sourceforge.net
X-Mailman-Version: 2.1.8
Precedence: list
Reply-To: Development discussion for LedgerSMB <ledger-smb-devel@lists.sourceforge.net>
List-Id: Development discussion for LedgerSMB
	<ledger-smb-devel.lists.sourceforge.net>
List-Unsubscribe: <[URL unfurl="true"]https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel>,[/URL]
	<mailto:ledger-smb-devel-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive: <[URL unfurl="true"]http://sourceforge.net/mailarchive/forum.php?forum_name=ledger-smb-devel>[/URL]
List-Post: <mailto:ledger-smb-devel@lists.sourceforge.net>
List-Help: <mailto:ledger-smb-devel-request@lists.sourceforge.net?subject=help>
List-Subscribe: <[URL unfurl="true"]https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel>,[/URL]
	<mailto:ledger-smb-devel-request@lists.sourceforge.net?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1578151514=="
Sender: ledger-smb-devel-bounces@lists.sourceforge.net
Errors-To: ledger-smb-devel-bounces@lists.sourceforge.net
X-Nonspam: Statistical 61%

--===============1578151514==
Content-Type: multipart/signed; boundary="nextPart2490701.sITPA8di3d";
	protocol="application/pgp-signature"; micalg=pgp-sha1
Content-Transfer-Encoding: 7bit

--nextPart2490701.sITPA8di3d
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Tuesday 04 March 2008 04:52:28 Pongracz Istvan wrote:
> 2008. 03. 4, kedd keltez=C3=A9ssel 12.37-kor Stroller ezt =C3=ADrta:
> > On 4 Mar 2008, at 07:05, Pongracz Istvan wrote:
> > > 2008. 03. 3, h=C3=A9tf=C5=91 keltez=C3=A9ssel 20.01-kor turtle ezt =
=C3=ADrta:
> > >> There has been some discusson of the Gentoo webapp-experimantal
> > >> overlay ebuild
> > >> and installing in general on Gentoo at
> > >> [URL unfurl="true"]http://forums.gentoo.org/viewtopic-t-570277-start-0-postdays-0-[/URL]
> > >> postorder-asc-highlight-.html
> > >> ...
> > >> Need to find out how to make an ebuild deal interactively with g-
> > >> cpan modules ...
> > >
> > > AFAIK the required perl modules are exist in the overlay.
> >
> > Which overlay, please?
> >
> > I wasn't aware of a Gentoo ebuild, experimental or otherwise. On my
> > system ledger-smb (and previously sql-ledger) is installed from the
> > tarball; some Perl modules are installed using app-portage/g-cpan.
> >
> >   $ sudo g-cpan -l
> >   * No CPAN Config found, auto-generating a basic one
> > mkdir /home/stroller/.cpan
> > mkdir /home/stroller/.cpan/CPAN
> >   * OVERLAY: /usr/local/portage/perl-gcpan
> >   * perl-gcpan/Config-Std
> >   * perl-gcpan/Class-Std
> >   * perl-gcpan/Data-Dumper
> > $
> >
> > Stroller.
>
> Hi,
>
> I guess, the webapps-experimental.
> I also has this overlay.
>
> My experience is, Class-Std doesn't installed even with g-cpan.
> Do not ask why, but I have this issue with two different machines, one
> of them totally built from scratch.
>
> Cheers,
> Istv=C3=A1n

Yes it is the webapps-experimental overlay I am working on a how to in this=
=20
portion of that thread:
[URL unfurl="true"]http://forums.gentoo.org/viewtopic-p-4568135.html#4568135[/URL]
G-cpan needs to be the first overlay in /etc/make.conf  like:
PORTDIR_OVERLAY=3D"/usr/local/portage/ /usr/portage/local/layman"=20
My g-cpan is in /usr/local/portage/perl-gcpan or something like that.
layman installs in /usr/local/layman.



=2D-=20
Cheers
Turtle


--nextPart2490701.sITPA8di3d
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iD8DBQBHzdgPMhmS0bGwpM0RAlsyAKCpPQSBj+DT+4y7qD648Lq/5k3naQCgyfXG
5aeTo6+3FwPnPYCw9F2Umrw=
=9Rud
-----END PGP SIGNATURE-----

--nextPart2490701.sITPA8di3d--


--===============1578151514==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
[URL unfurl="true"]http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/[/URL]
--===============1578151514==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ledger-smb-devel mailing list
Ledger-smb-devel@lists.sourceforge.net
[URL unfurl="true"]https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel[/URL]

--===============1578151514==--

Any ideas on why this fails? Is there another parser that will work better? I was going to add demime in front of MIME::parser, but it seems that will help, but not solve all problems.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top