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: 1990
Status: resolved
Priority: 0/
Queue: Mail-Audit

People
Owner: Nobody in particular
Requestors: Philip.Newton [...] gmx.net
Cc:
AdminCc:

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



Subject: Can't add header in non-default position
Mail::Audit 2.1 I can't add an email header in a non-default position. What I'd like to do is call ->put_header("Received", ".....", 0) to insert a new "Received" header right at the top (index 0). However, the last parameter (0) isn't passed along to Mail::Header's add() method since Mail::Audit explicitly passes only $_[1] and $_[2]. (I also can't read an arbitrary header that occurs multiple times because I'd need to pass two parameters to get(), the second one being the index, but only the first of those gets passed on to Mail::Header::get.)
Date: Sun, 26 Jan 2003 13:59:44 -0500
From: Meng Weng Wong <mengwong [...] dumbo.pobox.com>
To: Philip Newton via RT <bug-Mail-Audit [...] rt.cpan.org>
Subject: Re: [cpan #1990] Can't add header in non-default position
RT-Send-Cc:
you can pull out the raw Mail::Header object with a ->head() call. On Sun, Jan 26, 2003 at 11:07:34AM -0500, Philip Newton via RT wrote: | | This message about Mail-Audit was sent to you by PNE <pne@cpan.org> via rt.cpan.org | | Full context and any attached attachments can be found at: | <URL: https://rt.cpan.org/Ticket/Display.html?id=1990 > | | Mail::Audit 2.1 | | I can't add an email header in a non-default position. | What I'd like to do is call ->put_header("Received", ".....", 0) to insert a new "Received" header right at the top (index 0). However, the last parameter (0) isn't passed along to Mail::Header's add() method since Mail::Audit explicitly passes only $_[1] and $_[2]. | | (I also can't read an arbitrary header that occurs multiple times because I'd need to pass two parameters to get(), the second one being the index, but only the first of those gets passed on to Mail::Header::get.) |
[mengwong@dumbo.pobox.com - Sun Jan 26 13:59:49 2003]: Show quoted text
> you can pull out the raw
Mail::Header object with a ->head() call. I subsequently did so (after having a look at the source to see how the method was implemented). Still, I found it a bit awkward that it wasn't supported "directly".
I agree, but it is unlikely that any new functionality will be added, as this module is superseded by Email::Filter. -- rjbs