Lloyd Zusman wrote: > If possible, I'd like Courier::Filter to only read the set of headers > for each message, and to never attempt to read any of the bodies.
Well, the message text is only read into memory when any of the text(), header(), or body() methods of a Courier::Message object are called. text() reads the complete message text, but doesn't parse it. Both header() and body() separate the message text into header and body and parse the header into header fields. Courier::Filter::Module::Header calls the header() method and thus causes the whole message text to be read into memory. I can make Courier::Message more intelligent, but it will take a month or two. For now, you can always write a filter module that bypasses the header() convenience method and reads and parses the message text itself using the file name stored in $message->file_name -- a perfectly valid practice. Julian. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
