Hi,

For jSieve to run within a Mailet environment it needs to be able to ask
some questions and perform some actions not currently supported by the
MailetContext in either MAIN or branch_2_1_fcs, namely...

Question: Does the underlying repository support sub-folders? POP3 doesn't,
IMAP does.

Action: Store a MimeMessage in a specified user's sub-folder in the
repository.

Both the question and the action are really directed at the underlying
repository. We could...

1) Add the relevant methods to the MailetContext. My personal choice.
storeMail(...) is already present, we would simply be extending this by
adding a method to say if we can specify a sub-folder and a method to allow
specification of a sub-folder.

2) Take the approach used in MAIN, where the MailetContext can answer the
MailRepository and add the relevant methods to the MailRepository. Well then
MailRepository should be part of the Mailet API, else we have Mailet
solutions dependant on non-Mailet interfaces.

3) Declare this to be beyond the scope of Mailets. The problem here being
that jSieve cannot be deployed as a replacement for the localdelivery Mailet
(or any other) as the intended functionality of Sieve is severley
constrained. Specifically, the fileinto action cannot be supported.

I know a lot of discussion has already taken place regarding how and if the
Mailet API should change, but I don't see where this is covered. It needs to
be resolved to be able to handle both new repositories which support
sub-folders, such as IMAP, and components that can work with them, such as
jSieve.

-- Steve


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

Reply via email to