Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Mail-Audit CPAN distribution.

Report information
The Basics
Id: 114
Status: open
Priority: 0/
Queue: Mail-Audit

People
Owner: Nobody in particular
Requestors: yooden [...] vranx.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Date: Fri, 4 Jan 2002 00:55:43 +0100
From: Thorsten Haude <yooden [...] vranx.de>
To: Simon Cozens <simon [...] cpan.org>
Subject: Another Suggestion for Mail::Audit
Hi Simon, I just had a problem that can be fixed in Mail::Audit. I try to find encrypted mail with the following lines: - - - Schnipp - - - my $contentType = $mail->get("content-type"); if (($contentType =~ ?multipart/(encrypted|signed)?) or ($contentType =~ ?application/pgp?)) - - - Schnapp - - - However, if the mail is changed mith fix_pgp_headers() before that, the Content-type: header is only /added/, not replaced, leaving the old text/plain header intact. I therefore propose to replace the put_header() in fix_pgp_headers() with replace_header(). Thorsten -- The true danger is when liberty is nibbled away for expedients. - Edmund Burke
Subject: PGP markup from text/plain
From: mengwong [...] pobox.com
[yooden@vranx.de - Thu Jan 3 19:00:11 2002]: Show quoted text
> if the mail is changed mith fix_pgp_headers() before that, > the Content-type: header is only /added/, not replaced, leaving the > old text/plain header intact. > > I therefore propose to replace the put_header() in fix_pgp_headers() > with replace_header(). >
I am developing v2.1 of Mail::Audit. I have added MIME support. Before I proceed with the above suggestion, let me confirm that the intent of the above code is: 1) if the message is not MIME, upgrade it to mime by adding a MIME-Version header. 2) if the message is MIME and has only one part whose content-type is plain/text, but contains a PGP message, 3) mark it up with the appropriate MIME headers to indicate PGP content. is that correct?
Date: Tue, 15 Jan 2002 13:50:14 +0100
From: Thorsten Haude <yooden [...] vranx.de>
To: Meng Wong Wong via RT <bug-Mail-Audit [...] rt.cpan.org>
Subject: Re: [cpan #114] PGP markup from text/plain
Hi, * Meng Wong Wong via RT <bug-Mail-Audit@rt.cpan.org> [02-01-15 07:26]: Show quoted text
>[yooden@vranx.de - Thu Jan 3 19:00:11 2002]: >
>> if the mail is changed mith fix_pgp_headers() before that, >> the Content-type: header is only /added/, not replaced, leaving the >> old text/plain header intact. >> >> I therefore propose to replace the put_header() in fix_pgp_headers() >> with replace_header(). >>
> >I am developing v2.1 of Mail::Audit. I have added MIME support.
Would that include RFC 2015? Do you know about my patch to ignore RFC 2015 compliant mails in Mail::Audit::PGP? We're talking about encrypted mails here, and my limited knowledge about MIME is mostly about the structure of encrypted mails, and patchy at that. What happens is that Mail::Audit::PGP adds a Content-Type header that says 'application/pgp'. The problem is the 'add', because the Mail::Audit::get() (using Mail::Header::get()) returns the first Content-Type header it finds, which is the original one. (It is also possible that it returns an undetermined header, sometimes the first, sometimes another one, which wouldn't help.) Mail::Audit::PGP adds a second Content-Type header, which may even be legal, but is a bad idea in any case. Show quoted text
>1) if the message is not MIME, upgrade it to mime by adding a MIME-Version header.
I guess it needs more than a header to make a mail MIME. Show quoted text
>2) if the message is MIME and has only one part whose content-type is plain/text, but contains a PGP message, > >3) mark it up with the appropriate MIME headers to indicate PGP content.
That would be the easiest case, and that would work. There will probably be problems with encrypted attachements or more complicated MIME structures. Please tell me if I can be of any help. Thorsten -- The privacy of correspondence, posts and telecommunications shall be inviolable. - Grundgesetz, Artikel 10, Abs. 1
Subject: Re: [rt.cpan.org #114] Resolved: Another Suggestion for Mail::Audit
Date: Mon, 5 Jun 2006 00:03:01 +0200
To: Ricardo Signes via RT <bug-Mail-Audit [...] rt.cpan.org>
From: Thorsten Haude <yooden [...] vranx.de>
Hi, * Ricardo Signes via RT wrote (2006-06-04 15:52): Show quoted text
><URL: http://rt.cpan.org/Ticket/Display.html?id=114 > > >According to our records, your request has been resolved. If you have any >further questions or concerns, please respond to this message.
From what I can see this is still not fixed. Thorsten -- As we enjoy great advantages from the inventions of others we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously. - Benjamin Franklin
Download (untitled)
application/pgp-signature 189b

Message body not shown because it is not plain text.