mailetContext.isLocalServer(recipient.getHost()) checks if the recipient is a local 
user - it could exist or not: it would return true for "[EMAIL PROTECTED]" in your 
server;

mailetContext.isLocalUser(recipient.getUser()) checks if the local recipient exists: 
it would return false for "[EMAIL PROTECTED]" and true for "[EMAIL PROTECTED]" in your 
server.

Vincenzo

> -----Original Message-----
> From: Marcello Marangio [mailto:[EMAIL PROTECTED]
> Sent: gioved� 4 settembre 2003 18.01
> To: James Developers List
> Subject: is the user existing?
> 
> 
> Hi all
> Now I know how to check if a sender/receiver is a local user (grazie
> Vincenzo)...
> How can I check in a mailet if the recipient is existing?
> Thanks
> Marcello
> 
> 
> ---------------------------------------------------------------------
> 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