Re: Sender is:
I'd like to ask about MailAddress too. When yo do telnet localhost 25 mail from: James would reply OK. Question is, what is the content of the message's MailAddress? I have tried to instantiate one (using bsh) with new MailAddress(), new MailAddress(), but the class wouldn't parse it. TIA, Oki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sender is:
It becomes a java null MailAddress (unless I'm missing something). That's why the SenderIsNull matcher I just sent you just does a: public Collection match(Mail mail) { MailAddress mailAddress = mail.getSender(); if (mailAddress == null) { return mail.getRecipients(); } else { return null; } } Vincenzo -Original Message- From: Oki DZ [mailto:[EMAIL PROTECTED] Sent: martedi 24 giugno 2003 9.42 To: James Users List Subject: Re: Sender is: I'd like to ask about MailAddress too. When yo do telnet localhost 25 mail from: James would reply OK. Question is, what is the content of the message's MailAddress? I have tried to instantiate one (using bsh) with new MailAddress(), new MailAddress(), but the class wouldn't parse it. TIA, Oki - 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]
Re: Sender is:
On Tue, Jun 24, 2003 at 09:46:07AM +0200, Vincenzo Gianferrari Pini wrote: Try this one: SenderIsNull. I could commit it to James if useful (it's almost the simplest of all matchers, only All is simpler). Why don't you just commit it; or, put it at it.praxis.james.jar, that would really be great. I think reinstalling the newer jar is much simpler than compiling the mailet. Oki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sender is:
Ok, I committed it to CVS. Vincenzo -Original Message- From: Oki DZ [mailto:[EMAIL PROTECTED] Sent: martedi 24 giugno 2003 10.18 To: James Users List Subject: Re: Sender is: On Tue, Jun 24, 2003 at 09:46:07AM +0200, Vincenzo Gianferrari Pini wrote: Try this one: SenderIsNull. I could commit it to James if useful (it's almost the simplest of all matchers, only All is simpler). Why don't you just commit it; or, put it at it.praxis.james.jar, that would really be great. I think reinstalling the newer jar is much simpler than compiling the mailet. Oki - 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]