Hi Kevin,

short answer its possible. You will need to use james development
version for do this. In this version every POP3 command has its own
class which you could extend. So in your case you would need to write
your own RetrCmdHandler and TopCmdHandler.

Here are the current CmdHandlers:

http://svn.apache.org/viewvc/james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/

The you will need to write your own HandlersPackage class which load
your classes:

http://svn.apache.org/viewvc/james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/CoreCmdHandlerLoader.java?view=markup

This will then get defined in the pop3server.xml.

Feel free to ask if you have more questions.

Bye,
Norman

2010/4/21 Gusnadi Kevin <[email protected]>:
> Hi Norman and Eric , thanks for the replies .
>
> How about this then .
>
> Is there a way for me to make JAMES execute my own custom Java Class ,
> each time email client retrieve an email from JAMES ?
>
> Because from my understanding , JAMES Mailet only executed each time
> there is an email coming to JAMES .
>
> Thanks and Regards,
> Kevin
>
> -----Original Message-----
> From: Norman Maurer [mailto:[email protected]]
> Sent: Wednesday, April 21, 2010 12:13 AM
> To: James Users List
> Subject: Re: read/unread Mail in JAMES
>
> Hi Eric,
>
> thats not always the case. Some POP3 Client don't delete the messages
> from the server after retrieving it and just keep an internal record
> of which messages was already retrieved. So its not possible to know
> which ones was read ..
>
> Bye,
> Norman
>
> 2010/4/20 Eric MacAdie <[email protected]>:
>> My understanding is that if a message is still in the database, it has
> not
>> been read. Right now, James does not support IMAP.
>>
>> Regards,
>> Eric MacAdie
>>
>>
>>
>> Gusnadi Kevin wrote:
>>>
>>> Hi Guys
>>>
>>> Is there a way for me to know which mail has ever/never been
>>> retrieved/read by the client/user ?
>>>
>>> I'm using DB for the mail inbox repository for JAMES
>>>
>>> Thanks & Regards
>>> Kevin
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> 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]

Reply via email to