[Mimedefang] Storing all bodyparts in an array
Rolf E. Sonneveld
R.E.Sonneveld at sonnection.nl
Tue Aug 2 18:22:26 EDT 2011
Hi, David,
On 8/2/11 8:15 PM, David F. Skoll wrote:
> On Tue, 02 Aug 2011 19:27:43 +0200
> "Rolf E. Sonneveld"<R.E.Sonneveld at sonnection.nl> wrote:
>
>> I was trying to achieve the following. For some reasons of
>> flexbility, I'd like to postpone the final decisions regarding the
>> disposition of all the bodyparts of a message, to the final
>> filter_end stage. So I thought it would be good to build an array
>> containing all bodyparts during the 'filter' phase, so I can access
>> that array during the final filter_end processing.
> You don't need to do that. filter_end is passed an $entity which is a
> reference to a MIME::Entity. You can traverse this entity to do
> whatever you need (though you'll need to traverse it recursively.)
>
> You'll need to carefully read the MIME::Entity, MIME::Head and MIME::Body
> man pages.
thanks for the explanation and the pointers.
/rolf
More information about the MIMEDefang
mailing list