Serge et al,

The Maildir repository implementation appears to be one class. This class
uses a MaildirMessage class (of a type new MailImpl(MaildirMessage) accepts
- only got the binary ATM). This is used purely to load all message info
from a File. (Due to Maildir having info in filenames). The main guts of it
is here:

    private final MaildirMessage getMessageFromInbox(String key, Folder
inbox) throws MessagingException {
        int messageNum = ((Integer)
uniqToMessageNumber.get(key)).intValue();
        MaildirMessage mm = (MaildirMessage) inbox.getMessage(messageNum);
        String uniq = mm.getMaildirFilename().getUniq();
        if (!uniq.equals(key))
            throw new RuntimeException("uniqToMessageNumber is inconsistent.
'" + uniq + "' != '" + key + "'");

        return mm;
    }

And also in the list() method here:

        Folder inbox = openInbox();
        try {
            Message mm[] = inbox.getMessages();
            if (mm == null)
                throw new RuntimeException("inbox.getMessages returned
null");
            uniqToMessageNumber = new Hashtable();
            for (int i = 0; i < mm.length; i++) {
                MaildirMessage maildirMessage = (MaildirMessage) mm[i];
                Integer messageNumber = new
Integer(maildirMessage.getMessageNumber());
                String uniq = maildirMessage.getMaildirFilename().getUniq();
                uniqToMessageNumber.put(uniq, messageNumber);
            }

The only import in this class is for MaildirMessage. This is the only class
that uses anything from javamaildir. (Apart from that class returned from
maildirMessage.getMaildirFilename() but this is the only thing its used
for.) Basically this implementation class maps the message IDs to the unique
number from the Maildir message file name. This allows it to find messages
quicker.

I could quickly hack together a new ASL version. Of course I would do this
without bothering to read the original code to make sure I don't get sued!
8o) ... Alternatively I could just e-mail Alex about it? ;o)

Adam.

> -----Original Message-----
> From: Serge Knystautas [mailto:[EMAIL PROTECTED]
> Sent: 13 May 2004 15:30
> To: James Developers List
> Subject: Re: Alex Zhukov's maildir patch - Licensing...
> 
> 
> Adam Fowler wrote:
> > Just noticed that Alex's patch uses javamaildir 
> (javamaildir.sf.net). This
> > is GNU GPL'ed code, but Alex is the only person on this sf project
> > (proboez). As he's submitted a patch to James (and thus 
> knows the code would
> > be under the ASL) does this difference in license matter?
> 
> Can you be specific with how it's using the code?  Does it 
> look like a 
> copy of the code, is it importing that package, something else?
> 
> If the original author is handing us code and can ack's that 
> this makes 
> it ASL licensed, then we're fine.  If it's creating a dependency on 
> [L]GPL code, then that's a problem.
> 
> -- 
> Serge Knystautas
> President
> Lokitech >> software . strategy . design >> http://www.lokitech.com
> p. 301.656.5501
> e. [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

_________________________________________________________

This email and any files attached is intended for the addressee only and may contain 
information that is confidential and/or legally privileged. Unauthorised use is 
strictly prohibited and may be unlawful. If you are not the addressee, you should not 
read, copy, disclose or otherwise use this message, including any attachment, except 
for the purpose of delivery to the addressee.

We make every effort to keep our network free from viruses. However, you do need to 
verify this e-mail and any attachments to it to be virus free as we can take no 
responsibility for any computer virus which might be transferred by way of this e-mail.

Scanning of this message and addition of this footer is performed by SurfControl 
E-mail Filter software in conjunction with virus detection software.
________________________________________________________




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

Reply via email to