You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Oki DZ <ok...@pindad.com> on 2003/06/24 09:21:15 UTC
Sender is: <>
Hi,
How do you catch messages which have null senders?
It seems that <mailet match="SenderIs=" ...> wouldn't catch them.
TIA,
Oki
---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org
RE: Sender is: <>
Posted by Vincenzo Gianferrari Pini <vi...@praxis.it>.
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:okidz@pindad.com]
> 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: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org
Re: Sender is: <>
Posted by Oki DZ <ok...@pindad.com>.
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: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org
RE: Sender is: <>
Posted by Vincenzo Gianferrari Pini <vi...@praxis.it>.
Ok, I committed it to CVS.
Vincenzo
> -----Original Message-----
> From: Oki DZ [mailto:okidz@pindad.com]
> 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: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org
Re: Sender is: <>
Posted by Oki DZ <ok...@pindad.com>.
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: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org
RE: Sender is: <>
Posted by Vincenzo Gianferrari Pini <vi...@praxis.it>.
Try this one: SenderIsNull. I could commit it to James if useful (it's almost the simplest of all matchers, only All is simpler).
> -----Original Message-----
> From: Oki DZ [mailto:okidz@pindad.com]
> Sent: martedi 24 giugno 2003 9.21
> To: James Users List
> Subject: Sender is: <>
>
>
> Hi,
>
> How do you catch messages which have null senders?
> It seems that <mailet match="SenderIs=" ...> wouldn't catch them.
>
> TIA,
> Oki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>