Hi Stefano,
Yes, Mailbox contains the users' mails (just like he sees it in its mail
client, classed by "folder").
Depending on the configuration, the mails are stored in files (maildir:
1 file by mail), database (jpa: headers and body splitted, body as a
blob),...
MailRepository used the james 2.3 technology (file, jdbc,...) to persist
all other mails (non mailbox)
MailRepositoryStore is the list of available MailRepositories in the server.
Naming criteria should be:
- Be distinctive from Mailbox (user/developer must not confuse both,
which is the case now)
- Indicate that it is not for end-user mails but for all the rest (spam,
virussed, undelivered, deadletter,... mails).
- Not break the ToRepository mailet API (if api says ToRepository..., it
should go to a Repository)
- Be nice to read and to code :)
I like the idea of "Registry" as a replacement for "Store". It
represents well some stuff have been registered and are available for use.
I've got mixed feeling on EnvelopeRepository.
On one side, it shows that it contains envelope (closed mails) so "not
to be read".
On the other side, it could let think that it contains the technical
envelope (headers,...) of the end-user mail, so still confusing with the
Mailbox's mails.
Same comment for LetterRepository (and its LetterRepositoryRegistry)...
Tks,
Eric
On 28/12/2010 10:56, Norman Maurer wrote:
Hi there,
Mailbox store kind of simple streams with some metadata (its the
mailbox project stuff). MailRepository is the old one we used in james
2.3 for INBOX and as basis for the SpoolRepository. In the current
james its only used for storing Mails via the ToRepository Mailet..
Bye,
Norman
2010/12/28 Stefano Bagnara<[email protected]>:
What do we store in each one?
Does Mailbox contains Mail objects, javamail MimeMessage, simple streams?
Is MailRepository the "old one" containing Mail objects?
What about renaming MailRepository to EnvelopeRepository and the store
to EnvelopeRepositoryRegistry?
Stefano
2010/12/28 Eric Charles<[email protected]>:
Hi,
MailRepository is ambiguous with Mailbox.
MailRepositoryStore used to list all available MailRepositories is not as
self-explanatory as we would want.
We can continue to used those names and bring documentation to explain them
such as in http://james.apache.org/server/3/feature-persistence.html or we
could try to find new ones.
Some compound name with "Mail" inside (after all, it goes over mails) would
give something like "MailDepot" or "MailBin".
Do you think these are more distinctive from Mailbox?
Have you any other ideas?
Tks,
Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]