Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Email-Filter CPAN distribution.

Report information
The Basics
Id: 3126
Status: resolved
Priority: 0/
Queue: Email-Filter

People
Owner: Nobody in particular
Requestors: MARKSTOS [...] cpan.org
Cc:
AdminCc:

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



Subject: piping of just the header should be allowed
One nice feature of Procmail is the ability to Pipe just the headers somewhere. This is useful for the lbdb-fetchaddr program, which gathers addresses out of the mail header. I would like the pipe() syntax to be updated to support this, perhaps by allows you to pipe arbitrary data instead of the mail message. Here's the page on lbdb-fetchaddr for reference: http://www.spinnaker.de/lbdb/lbdb-fetchaddr.html I suppose a workaround exits for the current module by creating a new message object using just the headers you want, and using the pipe command on that. That doesn't seem a clean to me as just updating pipe(), though. Thanks, Mark
On Sat Aug 02 13:46:16 2003, MARKSTOS wrote: Show quoted text
> One nice feature of Procmail is the ability to Pipe just the headers > somewhere. This is useful for the lbdb-fetchaddr program, which > gathers addresses out of the mail header.
I agree. Email::Filter should be able to do this. The problem is the lousy semantics of the pipe method: it takes a list, which means you have to screw around with things like "magic first/last elements" to add options. Why doesn't it take an arrayref or a string as the command, then a hashref of args? Short-sightedness, maybe. pipe should, maybe, be rewritten in terms of something more useful like run_through_program (but with a better name). I will bring this up on the pep list once Email::Filter is the thing getting attention -- unless someone wants to do work on it before I get there!
just added in git release soon -- rjbs