[Mimedefang] Storing all bodyparts in an array
David F. Skoll
dfs at roaringpenguin.com
Tue Aug 2 14:15:37 EDT 2011
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.
Regards,
David.
More information about the MIMEDefang
mailing list