hi Serge,

thanks for the info - now I found it...

getId() of MailImpl produces a String consisting of:

"Mail" + System.currentTimeMillis() + "-" + localCount

where localCount is a synchronized counter.

this id is later given to the

org.apache.avalon.cornerstone.services.store.ObjectRepository in

or.put(key, mc);

I tried to base64 decode such a file-name, but I got an exception concerning the length...

so it is probably encoded in a different way...

thanks,

philipp



Serge Knystautas wrote:

astrograph wrote:

hi list,

I looked at the sourcecode for some while now, but I am not sure if I found the way James generates the file names for the mails in repositories...

just how and where is this string generated???

tia

philipp


They are base64 encoding of what's in mail.getId(). Hmm, I'm pretty sure it's base64. Anyway, it's a very simple encoding of mail.getId() in case mail.getId() has characters that are not filesystem friendly.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to