"Julian Mehnle" <[EMAIL PROTECTED]> writes:

> Hi Sam,
>
> now that Courier makes a message's queue ID available to delivery agents
> (like maildrop) through the "Received:" header's "id" sub-field, I wonder
> what the best way might be for a courierfilter to obtain that ID?
>
> Do I, in a courierfilter, really have to parse the message headers and
> obtain the ID from the "Received:" header?  Or am I getting something
> wrong?

Pardon me for interjecting myself into this question that you are asking
Sam, but being the one who wrote the Courier patch for putting the
message ID into the "Received:" header and the one who proposed this
idea in the first place, I think I can give you a meaningful answer:

You indeed have to read that message ID from the "Received:" header,
because there is no other place to get it.  That's the reason and the
prime motivation for my putting forth that proposal and then doing the
work.  I wanted to accomplish exactly what you are working on within
Courier::Filter (that is, to use that ID as a key for storing message
information that can later be retrieved in a subsequent Local Filter
step), and there was no way to do this unless such an ID were to be
included in the message itself.

Fortunately, that ID is guaranteed to always be found within the topmost
"Received:" header, so it should be fairly straightforward to extract it
during an early Courier:Filter processing step.


-- 
 Lloyd Zusman
 [EMAIL PROTECTED]
 God bless you.



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to