RE: How do I create a news posting

2003-06-24 Thread Noel J. Bergman
> I just downloaded James and was wondering how I can create
> a messages for a newsgroup.

Through an NNTP client.

> I am basically interested in a client version of managing
> news messages.

A news reader?  You could look at the NNTP protocol handler for JavaMail, or
at Jakarta Commons Net (http://jakarta.apache.org/commons/net/).  The latter
has examples, including one in the FAQ.

--- Noel


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



RE: Correct version of the xdocs?

2003-06-24 Thread Noel J. Bergman
> > Actually, those docs SHOULD be for James v2.1.  The only ones
> > that should be off-kilter are the javadocs.  Are you seeing
> > anything else that seems out of synch?

> Yes. That was the reason for the initial question...

> For instance, http://james.apache.org/provided_matchers_2_1.html lists
> "AttachmentFileNameIs" as a provided matcher

Ah ... jumped the gun a bit on committing that change to the web site.
There aren't a lot of those, as you can see from


http://cvs.apache.org/viewcvs/jakarta-james/src/xdocs/?sortby=date#dirlist.

We're going to have to fix some of those names (and add some redirects) when
we do the v2.2 release and update the web site.  Putting versions in the URL
means replication or other problems.

--- Noel


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



How do I create a news posting

2003-06-24 Thread Christian Pich
Hi,

I just downloaded James and was wondering how I can create
a messages for a newsgroup. I found the class NNTPRepositoryImpl
but I am not sure how to create a Configuration.
Is there any example code that tells me how to do that?
I am basically interested in a client version of managing 
news messages.

Thanks
Christian


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



RE: Correct version of the xdocs?

2003-06-24 Thread Steve Brewin
Noel,

> > > Is http://james.apache.org/index.html using pages generated from
> > > the correct version of the xdocs?
>
> As Danny said, we'll be separating the site docs into its own
> repository.
>
> > As a quick fix, how about updating the docs. in the CVS
> head so that the
> > documentation link on the main page reads "Latest
> Development Version"
> > rather than "James 2.1 documentation"
>
> Actually, those docs SHOULD be for James v2.1.  The only ones
> that should be
> off-kilter are the javadocs.  Are you seeing anything else
> that seems out of
> synch?

Yes. That was the reason for the initial question...

http://james.apache.org/provided_matchers_2_1.html lists
<"AttachmentFileNameIs" as a provided matcher, but this is in neither the


Re: 100MB email produces an out of memory exception

2003-06-24 Thread Serge Knystautas
Horsfall, Brian wrote:
We never had a problem with james handling large messages, but we really only use the hostis matcher and our custom mailet.

We are using the IBM 1.3.1.05 JVM with a min heap size of 128 megabytes and a maximum heap size of 256 megabytes.
Added to Wiki.

--
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: 100MB email with debug info

2003-06-24 Thread Noel J. Bergman
> DEBUG spoolmanager.transport: Servicing Mail1056399621032-2 by Local
Delivery Mailet
> ERROR spoolmanager: Exception in JamesSpoolManager.run
> null
> java.lang.OutOfMemoryError

I'm beginning to suspect a particular passage of code, which points the
finger at JavaMail, although presenting options for workarounds.

> please note that i downloaded the latest 'nightly' and built it 'fresh'
> please let me know if we need more log file info to track this issue down.

If you enable heap profiling (and set the trace depth to at least 10), we
could look for the specific internals that are causing memory consumption.
My expectation is that it is going to be underneath where LocalDelivery
invokes javax.mail.internet.MimeMessage, and related to the change we made
for handling the Delivered-To header.

--- Noel


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



Re: MySQL my.cnf file missing

2003-06-24 Thread Serge Knystautas
Kenny Smith wrote:
Hi Mike,

You need to set the max_allowed_packet variable:

[mysqld]
set-variable = max_allowed_packet=12M
Added to Wiki.

--
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: "smtpserver" failed to pass through the Initialization stage.

2003-06-24 Thread Serge Knystautas
Oki DZ wrote:

On Tue, Jun 24, 2003 at 05:13:42PM +0800, Li Xia wrote:

BindException: Address in use: JVM_Bind).


It seems that you had another MTA running.
Added to Wiki.

--
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Random DNS and/or network issues

2003-06-24 Thread Serge Knystautas
Noel J. Bergman wrote:
I've figured out my 554 problem sending to hotmail, it turns out my
server was using 'localhost' as the outgoing smtp helloName.


Oh that's interesting!  Sounds like a good FAQ item.  :-)

RemoteDelivery uses (or tries to use) the server name defined for the SMTP
service.  This has nothing to do with the autodetection/autodetectip
support.
Good job tracking that problem down!  :-)
Added to Wiki.

--
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: 100MB email success with 1GB of RAM

2003-06-24 Thread Noel J. Bergman
> where shall we go from here

If you would not mind doing that again, except with heap profiling enabled,
perhaps we can quickly spot what is causing memory to be consumed.

--- Noel


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



RE: SMTP

2003-06-24 Thread Vincenzo Gianferrari Pini
Sorry, I forgot :-).

I have this on my Tomcat 4.0 server.xml:



  


Vincenzo


> -Original Message-
> From: David Schwartz [mailto:[EMAIL PROTECTED]
> Sent: martedi 24 giugno 2003 15.33
> To: James Users List
> Subject: RE: SMTP
> 
> 
> 
> 
> -Original Message-
> From: Vincenzo Gianferrari Pini
> [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 19, 2003 1:22 PM
> To: James Users List
> Subject: RE: SMTP
> 
> 
> Sorry, David, I have to rush out. I'll answer you back tomorrow.
> 
> Vincenzo
> 
> > -Original Message-
> > From: David Schwartz [mailto:[EMAIL PROTECTED]
> > Sent: giovedi 19 giugno 2003 19.14
> > To: James Users List
> > Subject: RE: SMTP
> > 
> > 
> > What module did you use for ssl on Tomcat?
> > 
> > -Original Message-
> > From: Vincenzo Gianferrari Pini 
> > [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, June 19, 2003 1:10 PM
> > To: James Users List
> > Subject: RE: SMTP
> > 
> > 
> > > Yes. That's exactly what I want to do. What did you use for ssl on
> > > Tomcat?
> > I wanted to make sure that only authenticated users could use the "web
> 
> > mail client" servlet; as I wanted to have the password used for the 
> > tomcat logon be safe, I activated ssl (https) for the logon itself, 
> > and for the rest of the web mail session.
> > 
> > > Also, can I use my existing ssl certificate on an IP address, not a
> > > domain name?
> > 
> > I don't know that, sorry.
> > 
> > Vincenzo
> >  
> > 
> > 
> > -
> > 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]
> 


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



RE: SMTP

2003-06-24 Thread David Schwartz


-Original Message-
From: Vincenzo Gianferrari Pini
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 19, 2003 1:22 PM
To: James Users List
Subject: RE: SMTP


Sorry, David, I have to rush out. I'll answer you back tomorrow.

Vincenzo

> -Original Message-
> From: David Schwartz [mailto:[EMAIL PROTECTED]
> Sent: giovedi 19 giugno 2003 19.14
> To: James Users List
> Subject: RE: SMTP
> 
> 
> What module did you use for ssl on Tomcat?
> 
> -Original Message-
> From: Vincenzo Gianferrari Pini 
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 19, 2003 1:10 PM
> To: James Users List
> Subject: RE: SMTP
> 
> 
> > Yes. That's exactly what I want to do. What did you use for ssl on
> > Tomcat?
> I wanted to make sure that only authenticated users could use the "web

> mail client" servlet; as I wanted to have the password used for the 
> tomcat logon be safe, I activated ssl (https) for the logon itself, 
> and for the rest of the web mail session.
> 
> > Also, can I use my existing ssl certificate on an IP address, not a
> > domain name?
> 
> I don't know that, sorry.
> 
> Vincenzo
>  
> 
> 
> -
> 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]



RE: Can't display chinese title and sender name

2003-06-24 Thread Vincenzo Gianferrari Pini
I would have a look to rfc2047, that is not in the James cvs, but that you can find 
using google. For example I found http://www.faqs.org/rfcs/rfc2047.html.

Reading there, my understanding is that a mail client should always encode non ascii 
text headers (like a subject) into an encoded word:

encoded-word = "=?" charset "?" encoding "?" encoded-text "?="

like Outlook Express does in your examples:

Subject: =?gb2312?B?1tDOxA==?=

where gb2312 is the charset, and the message travels in such format. The recipient's 
mail client may/should at this point decode using the appropriate graphical 
representation.

Here is a snippet from the introduction of the rfc2047 specification:


   RFC 2045 describes a mechanism for denoting textual body parts which
   are coded in various character sets, as well as methods for encoding
   such body parts as sequences of printable US-ASCII characters.  This
   memo describes similar techniques to allow the encoding of non-ASCII
   text in various portions of a RFC 822 [2] message header, in a manner
   which is unlikely to confuse existing message handling software.

   Like the encoding techniques described in RFC 2045, the techniques
   outlined here were designed to allow the use of non-ASCII characters
   in message headers in a way which is unlikely to be disturbed by the
   quirks of existing Internet mail handling programs.  In particular,
   some mail relaying programs are known to (a) delete some message
   header fields while retaining others, (b) rearrange the order of
   addresses in To or Cc fields, (c) rearrange the (vertical) order of
   header fields, and/or (d) "wrap" message headers at different places
   than those in the original message.  In addition, some mail reading
   programs are known to have difficulty correctly parsing message
   headers which, while legal according to RFC 822, make use of
   backslash-quoting to "hide" special characters such as "<", ",", or
   ":", or which exploit other infrequently-used features of that
   specification.

   While it is unfortunate that these programs do not correctly
   interpret RFC 822 headers, to "break" these programs would cause
   severe operational problems for the Internet mail system.  The
   extensions described in this memo therefore do not rely on little-
   used features of RFC 822.

   Instead, certain sequences of "ordinary" printable ASCII characters
   (known as "encoded-words") are reserved for use as encoded data.  The
   syntax of encoded-words is such that they are unlikely to
   "accidentally" appear as normal text in message headers.
   Furthermore, the characters used in encoded-words are restricted to
   those which do not have special meanings in the context in which the
   encoded-word appears.

   Generally, an "encoded-word" is a sequence of printable ASCII
   characters that begins with "=?", ends with "?=", and has two "?"s in
   between.  It specifies a character set and an encoding method, and
   also includes the original text encoded as graphic ASCII characters,
   according to the rules for that encoding method.

   A mail composer that implements this specification will provide a
   means of inputting non-ASCII text in header fields, but will
   translate these fields (or appropriate portions of these fields) into
   encoded-words before inserting them into the message header.

   A mail reader that implements this specification will recognize
   encoded-words when they appear in certain portions of the message
   header.  Instead of displaying the encoded-word "as is", it will
   reverse the encoding and display the original text in the designated
   character set.


Notes seems to ignore this; sendmail seems to accept anything, so they work together.

Now, does the sentence "A mail composer that implements this specification..." mean 
that a mail composer can not implement it?

Secondly, should James do something to accept a "non compliant message", *if* it is 
not compliant?

Third, is it something that arises at the level of James, or is at the level of 
java.mail?

I don't know, and I "request for comments" :-) from others in this list.

Vincenzo

> -Original Message-
> From: Jeff Cai [mailto:[EMAIL PROTECTED]
> Sent: martedì 24 giugno 2003 8.24
> To: James Users List
> Subject: RE: Can't display chinese title and sender name
> 
> 
> Which RFC I can study?
> 
> Thanks
> 
>  --- "Noel J. Bergman" <[EMAIL PROTECTED]> :> > But
> seems sendmail can handle correctly.
> > 
> > Actually not.  This:
> > 
> > > sendmail+Notes(works)
> > > Subject: 中文
> > 
> > is an RFC violation.
> > 
> > --- Noel
> > 
> > 
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >  
> 
> _
> Do You Yahoo!? 
> 网恋的诠释:真情还是放纵?
> http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.survey

100MB email success with 1GB of RAM

2003-06-24 Thread Andre Bremer
hi

we just completed another 100MB email test with a dedicated server 
setting the JVM to use 1GB RAM.

this time the email was sent and received correctly.

Obviously this is good news, however the real issue remains, for all
James servers running on less memory.
where shall we go from here

cheers

andre




This e-mail message is intended solely for the person to 
whom it is addressed and may contain confidential or 
privileged information. If you have received it in error, 
please notify the [EMAIL PROTECTED]
immediately and destroy this e-mail and any attachments.
In addition, you must not disclose, copy, distribute or take 
any action in reliance on this e-mail or any attachments.

Any views or opinions presented in this e-mail are solely 
those of the author and do not necessarily represent 
those of Wolff Olins. E-mail may be susceptible to 
data corruption, interception, unauthorised amendment,
viruses and unforeseen delays, and we do not accept 
liability for any such data corruption, interception, 
unauthorised amendment, viruses and delays or the 
consequences thereof.  
Accordingly, this e-mail and any attachments
are opened at your own risk.
http://www.wolff-olins.com



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


Re: "smtpserver" failed to pass through the Initialization stage.

2003-06-24 Thread Oki DZ
On Tue, Jun 24, 2003 at 05:13:42PM +0800, Li Xia wrote:
> BindException: Address in use: JVM_Bind).

It seems that you had another MTA running.

Oki


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



Re: "smtpserver" failed to pass through the Initializationstage.

2003-06-24 Thread joni santoso
u have another smtp server running.

if u use windows then it is probably because iis smtp 
server is running.

disable it. if u connect to the internet it can be 
attacked.

On Tue, 24 Jun 2003 17:13:42 +0800
 "Li Xia" <[EMAIL PROTECTED]> wrote:
Hello,

It seems that I cannot get the James server installed. 
When I run "run.bat", the following message will appear:

org.apache.excalibur.containerkit.lifecycle.LifecycleException: 
Component named
"smtpserver" failed to pass through the Initialization 
stage. (Reason: java.net.
BindException: Address in use: JVM_Bind).

Rebooting the machine does not help. I have JRE 1.3.1 
installed and I did not install JDK. Could you please 
help me on this? Many thanks!

_
与联机的朋友进行交流,请使用 MSN Messenger: 
http://messenger.msn.com/cn  

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

===
"TELKOMNet Instan memberikan diskon 40% untuk akses malam hari dari pukul 23.00 sampai 
06.00.
Berlaku untuk wilayah Jawa Timur mulai 1 Mei 2003 sampai 30 Juni 2003."
===
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: 100MB email with debug info

2003-06-24 Thread Andre Bremer
hi guys

thanks for helping

i am sending a 127MB file which submits fine and is spooling the mail as 
175MB. The next step of copying the mail to the user inbox fails with an 
out of memory exception. (works fine with 28MB emails)

- the run.bat has been modified, to set the JVM to 256MB on a dedicated 
server:

"%PHOENIX_JAVACMD%" %DEBUG% "-Djava.ext.dirs=%PHOENIX_HOME%\lib" 
"-Dphoenix.home=%PHOENIX_HOME%" 
"-Djava.security.policy=jar:file:%PHOENIX_HOME%/bin/phoenix-loader.jar!/META-INF/java.policy"
-server -Xmx256m -Xms256m
%PHOENIX_SECURE% -jar "%PHOENIX_HOME%\bin\phoenix-loader.jar" %1 %2 %3 
%4 %5 %6 %7 %8 %9

- the command line reads:

C:\project\james\phoenix-bin\bin>run
Using PHOENIX_HOME:   C:\project\james\phoenix-bin
Using PHOENIX_TMPDIR: C:\project\james\phoenix-bin\temp
Using JAVA_HOME:  C:\j2sdk1.4.2
The filename, directory name, or volume label syntax is incorrect.
Phoenix 4.0.1

James 2.2.0a6
Remote Manager Service started plain:4555
POP3 Service started plain:110
SMTP Service started plain:25
NNTP Service started plain:119
Fetch POP Disabled
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
- the spool manager log has the following interesting entries:

23/06/03 21:23:19 DEBUG spoolmanager.root: Servicing Mail1056399621032-2 
by ToProcessor Mailet
23/06/03 21:23:19 DEBUG spoolmanager: Processed Mail1056399621032-2 
through root
23/06/03 21:23:19 DEBUG spoolmanager: Result was transport
23/06/03 21:23:19 DEBUG spoolmanager:  Begin processing mail 
Mail1056399621032-2
23/06/03 21:23:19 DEBUG spoolmanager: Processing Mail1056399621032-2 
through transport
23/06/03 21:23:19 DEBUG spoolmanager.transport: Servicing mail: 
Mail1056399621032-2
23/06/03 21:23:19 DEBUG spoolmanager.transport: Checking 
Mail1056399621032-2 with 
[EMAIL PROTECTED]
23/06/03 21:23:19 DEBUG spoolmanager.transport: Servicing 
Mail1056399621032-2 by Local Delivery Mailet
23/06/03 21:23:58 ERROR spoolmanager: Exception in JamesSpoolManager.run 
null
java.lang.OutOfMemoryError
23/06/03 21:23:59 DEBUG spoolmanager:  Begin processing mail 
Mail1056399621032-2
23/06/03 21:23:59 DEBUG spoolmanager: Processing Mail1056399621032-2 
through transport
23/06/03 21:23:59 DEBUG spoolmanager.transport: Servicing mail: 
Mail1056399621032-2
23/06/03 21:23:59 DEBUG spoolmanager.transport: Checking 
Mail1056399621032-2 with 
[EMAIL PROTECTED]
23/06/03 21:23:59 DEBUG spoolmanager.transport: Servicing 
Mail1056399621032-2 by Local Delivery Mailet
23/06/03 21:24:14 ERROR spoolmanager: Exception in JamesSpoolManager.run 
null

this goes on for while ;)

i checked the other log files and they looked 'kinda ok' to me, please 
let me know if we need more log file info to track this issue down. Also 
please note that i downloaded the latest 'nightly' and built it 'fresh' 
to see if this one has been fixed already. But

cheers

andre






This e-mail message is intended solely for the person to 
whom it is addressed and may contain confidential or 
privileged information. If you have received it in error, 
please notify the [EMAIL PROTECTED]
immediately and destroy this e-mail and any attachments.
In addition, you must not disclose, copy, distribute or take 
any action in reliance on this e-mail or any attachments.

Any views or opinions presented in this e-mail are solely 
those of the author and do not necessarily represent 
those of Wolff Olins. E-mail may be susceptible to 
data corruption, interception, unauthorised amendment,
viruses and unforeseen delays, and we do not accept 
liability for any such data corruption, interception, 
unauthorised amendment, viruses and delays or the 
consequences thereof.  
Accordingly, this e-mail and any attachments
are opened at your own risk.
http://www.wolff-olins.com



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


"smtpserver" failed to pass through the Initialization stage.

2003-06-24 Thread Li Xia
Hello,

It seems that I cannot get the James server installed. When I run 
"run.bat", the following message will appear:

org.apache.excalibur.containerkit.lifecycle.LifecycleException: Component 
named
"smtpserver" failed to pass through the Initialization stage. (Reason: 
java.net.
BindException: Address in use: JVM_Bind).

Rebooting the machine does not help. I have JRE 1.3.1 installed and I did 
not install JDK. Could you please help me on this? Many thanks!

_
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  

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


RE: Sender is: <>

2003-06-24 Thread Vincenzo Gianferrari Pini
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]



Re: Sender is: <>

2003-06-24 Thread Oki DZ
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: <>

2003-06-24 Thread Vincenzo Gianferrari Pini
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: <>

2003-06-24 Thread Vincenzo Gianferrari Pini
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:[EMAIL PROTECTED]
> 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  wouldn't catch them.
> 
> 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: <>

2003-06-24 Thread Oki DZ
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]



Sender is: <>

2003-06-24 Thread Oki DZ
Hi,

How do you catch messages which have null senders?
It seems that  wouldn't catch them.

TIA,
Oki


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