Norman Maurer wrote: > Hi Niklas, > > Niklas Therning schrieb: > >> Norman Maurer wrote: >> >> >>> Hi all, >>> >>> i just looked at the mime4j javadoc and wonder what whould be the best >>> solution to get all attachment names of a given inputstream.. I thought >>> this will maybe give me a better performance then using javamail for >>> this... Im wrong ? >>> >>> >>> >> Mime4j should be faster for this kind of things. See the attachment for >> an example of how to get the filename parameter from the >> Content-Disposition fields using Mime4j. I think you are looking for >> something like this, right? >> >> > > Thx Niklas for this sample code. Its exactly what i was looking for :-) > > >>> The other thing i noticed is that mime4j has no "altering" support. >>> Anything planned here ? >>> >>> >>> >> Nope, nothing planned at the moment. But if you have any ideas of how >> Mime4j could be improved, please share them. >> >> > > Well, I had not much time to look at the code but i think actions like > adding,removing headers, altering the Subject etc should be really easy > to implement. We could do something like parsing the inputstream alter > the Message in memory and write it back with the writeTo(OutputStream) > method. > Sonds like a great plan. Implementing this for the Header class could be a first step, just like you are suggesting. > WDYT ? > > Maybe i can find some time (if you intressted) to help you workin on this... > I would be more than interested! I don't have that much time myself to work on mime4j at the moment. If you find the time I'd be very happy! :)
-- Niklas Therning www.spamdrain.net --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
