Re: the nntp effort on in james server !!!!

2002-04-03 Thread Harmeet Bedi

From: "Harmeet Bedi" <[EMAIL PROTECTED]>
> > - Making the backend more flexible. Maybe map to SMPT/POP3
> > backend store on
> > the other hand I feel NNTP is nicely decoupled.
>


From: "Danny Angus" <[EMAIL PROTECTED]>
> I think NNTP should use the same avalon framework as POP & SMTP (although
> I'm not volunteering to do this, so I guess my vote isn't really fair..)
> this would mean that it could use file or DB, and share configuration
> information with other blocks.
>


I think it is a given that having the same mechanism for NNTP is a clean and
good thing to do, but here are some advantages for keeping the NNTP
repository separate.
- Faster than the repository for POP & SMTP.
- Streamed. Entire message content is never in memory.
- It is easier to separte NNTP from the other parts. Folks may want to use
NNTP Server but may want to use another mail servers. Such a user would not
need to worry about non-nntp configuration.
- I still don't know what and if there is a gain in functionality. I haven't
heard anyone want a db Backend for newsgroup mail. Why build, if there is no
known advantage ? On the other hand if someone has a real world need that
would be motivation.
- How stable is the POP-SMTP backend ? There have been a few emails about
this. When I looked at the Avalon File Repository, I was a bit nervous. I
think it is based on serialization, and that approach has some problems,
like say schema evolution, speed etc. If SMTP-POP3 repository is not
completly safe, maybe we should continue with NNTP repository for some time
and then revisit.
- The NNTP repository is a lot simpler. Minimal coupling.

What do you think ?

Here is a proposal for your vote:
Have a separate distribution for NNTP Server. All other parts will be
disabled. Advantages are:
- Provides a minimum configuration changes needed package for users that
only need NNTP.
- This help the James brand and increase the number of users.
- I personally feel that POP3-SMTP and NNTP are of interest to
(mostly)separate groups of users. I also feel that the users would want to
try POP3-SMTP and NNTP Server at different times, and are less lilkely to
try them together.  One precedent is INN Server. It includes NNTP Server but
not POP-SMTP Servers. James-NNTP could be targeted as an alternative to INN.

Harmeet


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Send email from an application

2002-04-03 Thread Thomas Singer

Hello,

sorry, if this question was asked before.

I want our application to send bug reports via email directly to our 
support team (if the user approves). If I would build the mail-sending 
stuff with JavaMail, I would still need an SMTP-server. Since James has an 
SMTP server, the straightforward solution would be to pack JavaMail and 
James in the application. But there are too much unused components in 
JavaMail and James for this small task. Is there any easier (more 
lightweight) solution for this problem?

Best regards,
Thomas Singer


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: the nntp effort on in james server !!!!

2002-04-03 Thread Danny Angus


> - I still don't know what and if there is a gain in
> functionality. I haven't
> heard anyone want a db Backend for newsgroup mail. Why build, if
> there is no
> known advantage ? On the other hand if someone has a real world need that
> would be motivation.

> - The NNTP repository is a lot simpler. Minimal coupling.
>
> What do you think ?

Frankly thats a good enough argument for defering it.

>
> Here is a proposal for your vote:
> Have a separate distribution for NNTP Server.

-1 with the following comment.. I agree with your reasoning and I will
change my vote to +1 if we can, instead, provide a single distribution of
James, and an alternative set of configurations which will allow it to run
as NNTP only. (perhaps with a command line installer with options to install
NNTP, MAIL or BOTH)

I would not like to see James fragment into several seperate products, I'd
be happier if we focused this effort on making it simple to enable and
disable blocks.

Alternatively.. we should produce a James container, and seperately
distributable blocks for each protocol..

> All other parts will be
> disabled. Advantages are:
> - Provides a minimum configuration changes needed package for users that
> only need NNTP.
> - This help the James brand and increase the number of users.
> - I personally feel that POP3-SMTP and NNTP are of interest to
> (mostly)separate groups of users. I also feel that the users would want to
> try POP3-SMTP and NNTP Server at different times, and are less lilkely to
> try them together.  One precedent is INN Server. It includes NNTP
> Server but
> not POP-SMTP Servers. James-NNTP could be targeted as an
> alternative to INN.
>
> Harmeet
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




UserRepository [ was the nntp effort on in james server !!!! ]

2002-04-03 Thread Paul Hammant

Harmeet, folks,

>- How stable is the POP-SMTP backend ? There have been a few emails about
>this. When I looked at the Avalon File Repository, I was a bit nervous. I
>think it is based on serialization, and that approach has some problems,
>
The Avalon repository is file based and uses serialization.  There are 
problems with that strategy.

Choices:

Avalon's FtpServer (Rana CC'd in for this) has a user repsository and 
the overlap between FTP, POP3 & NNTP user requirements are massive.  You 
should all bang heads and make an uberUserRepository that will be useful 
for all of those types of needs, and possibly a few forthcoming 
(telnet/SSH into a Phoenix VM).

At a layer lower (the actual mechanics of storage), there is an up and 
coming project in commons called simple store.  (Gerhard and Juozas CC'd 
in for this) It is beanlike and has multiple implementations.  It has 
been used before in Phoenix VM with Enterprise Object Broker (example3) 
, but not as a block or wrapped in a block...

Lastly, maybe also see if Brian Burton's ex commercial NNTP server 
http://www.burton-computer.com/clnews.html can provide inspiration. 
 Maybe even have another attempt at persuading him to port or donate (to 
Avalon and James respectively).

Regards,

- Paul H


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




FW: problem sending email, body in Rich Text Format / Plain Text

2002-04-03 Thread Kishore Metla


Hi,

I did not get any answer and this is kind of important. Can someone please
help me. 

Thanks in advance
-Kishore

-Original Message-
From: Kishore Metla [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 11:16 AM
To: '[EMAIL PROTECTED]'
Subject: problem sending email, body in Rich Text Format / Plain Text



Hi,

I have James set up. I have a problem when sending an email using Microsoft
Outlook 2000 Plain Text or Rich Text to the James with an attachment but
with no message in the body.

I am choosing the format of the mail in the Outlook by going to Tools >>
Options >> Mail Format >> 'Choose a format for outgoing mail ...'  and
choosing the option as 2 or 3 from the available as listed below 
1. HTML
2. Microsoft Outlook Rich Text
3. Plain Text

When I send an email to the James Server to categorize, choosing HTML (with
or without a message in the body) it works fine. If I send an email choosing
either Plain Text or Rich Text with some message in the body it works fine.
But If no message in the body (sending just an attachment) it fails throwing
an exception (see below).



javax.activation.UnsupportedDataTypeException: no object DCH for MIME type
application/octet-stream; 
name="example.PDF"
at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851) 
at javax.activation.DataHandler.writeTo(DataHandler.java:305) 
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:635)
at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:233)
at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:68)
at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:849)
at javax.activation.DataHandler.writeTo(DataHandler.java:305)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1503)
at org.apache.james.core.MailImpl.writeMessageTo(MailImpl.java:198)
at
org.apache.james.mailrepository.AvalonMailRepository.store(AvalonMailReposit
ory.java:98)
at org.apache.james.James.sendMail(James.java:298)
at org.apache.james.James.sendMail(James.java:278)
at org.apache.james.James.sendMail(James.java:270)
at
org.apache.james.transport.mailets.NotifyPostmaster.service(NotifyPostmaster
.java:167)
at
org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:152)
at
org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:
166)
at
org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:142)
at org.apache.avalon.utils.recycle.pool.Worker.run(Worker.java:113)
Exception in processor 
javax.mail.MessagingException: Exception spooling message: Exception caught
while storing Message Container: javax.activ
ation.UnsupportedDataTypeException: no object DCH for MIME type
application/octet-stream;
name="example.PDF"
at org.apache.james.James.sendMail(James.java:304)
at org.apache.james.James.sendMail(James.java:278)
at org.apache.james.James.sendMail(James.java:270)
at
org.apache.james.transport.mailets.NotifyPostmaster.service(NotifyPostmaster
.java:167)
at
org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:152)
at
org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:
166)
at
org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:142)
at org.apache.avalon.utils.recycle.pool.Worker.run(Worker.java:113)




For your information, I tried to check what it is doing. For the email sent
in HTML (successful case),

..
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: multipart/mixed;
boundary="_=_NextPart_000_01C1D763.B43A2C50"
Status:   
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--_=_NextPart_000_01C1D763.B43A2C50
Content-Type: multipart/alternative;
boundary="_=_NextPart_001_01C1D763.B43A2C50"
--_=_NextPart_001_01C1D763.B43A2C50
Content-Type: text/plain;
charset="iso-8859-1"
--_=_NextPart_001_01C1D763.B43A2C50
Content-Type: text/html;
charset="iso-8859-1"





 
--_=_NextPart_001_01C1D763.B43A2C50--
--_=_NextPart_000_01C1D763.B43A2C50
Content-Type: application/msword;
name="1014671916703Test1.doc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="1014671916703Test1.doc"
.


But when I did the same for the non-working case, it skips part of it.

Any help would be greatly appreciat

Re: FW: problem sending email, body in Rich Text Format / Plain Text

2002-04-03 Thread Serge Knystautas

Kishore,

This is a bug in JavaMail.  I see this error message occassionally in my 
logs but never had the email source that was causing it.  You'll have to 
follow-up with Sun on this one as we're rather dependent on their 
library for MIME parsing and writing.  I think JavaMail 1.3 is about to 
come out (or maybe already has) so you could test that it could read and 
write that message.  Once JavaMail 1.3 FCS is out, we'll need to upgrade 
James to use this new version of JavaMail, irregardless.
-- 
Serge Knystautas
Loki Technologies - Unstoppable Websites
http://www.lokitech.com/
Kishore Metla wrote:
> Hi,
> 
> I did not get any answer and this is kind of important. Can someone please
> help me. 
> 
> Thanks in advance
> -Kishore
> 
> -Original Message-
> From: Kishore Metla [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 01, 2002 11:16 AM
> To: '[EMAIL PROTECTED]'
> Subject: problem sending email, body in Rich Text Format / Plain Text
> 
> 
> 
> Hi,
> 
> I have James set up. I have a problem when sending an email using Microsoft
> Outlook 2000 Plain Text or Rich Text to the James with an attachment but
> with no message in the body.
> 
> I am choosing the format of the mail in the Outlook by going to Tools >>
> Options >> Mail Format >> 'Choose a format for outgoing mail ...'  and
> choosing the option as 2 or 3 from the available as listed below 
> 1. HTML
> 2. Microsoft Outlook Rich Text
> 3. Plain Text
> 
> When I send an email to the James Server to categorize, choosing HTML (with
> or without a message in the body) it works fine. If I send an email choosing
> either Plain Text or Rich Text with some message in the body it works fine.
> But If no message in the body (sending just an attachment) it fails throwing
> an exception (see below).
> 
> 
> 
> javax.activation.UnsupportedDataTypeException: no object DCH for MIME type
> application/octet-stream; 
> name="example.PDF"
> at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851) 
> at javax.activation.DataHandler.writeTo(DataHandler.java:305) 
> at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
> at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:635)
> at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:233)
> at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:68)
> at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:849)
> at javax.activation.DataHandler.writeTo(DataHandler.java:305)
> at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
> at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527)
> at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1503)
> at org.apache.james.core.MailImpl.writeMessageTo(MailImpl.java:198)
> at
> org.apache.james.mailrepository.AvalonMailRepository.store(AvalonMailReposit
> ory.java:98)
> at org.apache.james.James.sendMail(James.java:298)
> at org.apache.james.James.sendMail(James.java:278)
> at org.apache.james.James.sendMail(James.java:270)
> at
> org.apache.james.transport.mailets.NotifyPostmaster.service(NotifyPostmaster
> .java:167)
> at
> org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:152)
> at
> org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:
> 166)
> at
> org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:142)
> at org.apache.avalon.utils.recycle.pool.Worker.run(Worker.java:113)
> Exception in processor 
> javax.mail.MessagingException: Exception spooling message: Exception caught
> while storing Message Container: javax.activ
> ation.UnsupportedDataTypeException: no object DCH for MIME type
> application/octet-stream;
> name="example.PDF"
> at org.apache.james.James.sendMail(James.java:304)
> at org.apache.james.James.sendMail(James.java:278)
> at org.apache.james.James.sendMail(James.java:270)
> at
> org.apache.james.transport.mailets.NotifyPostmaster.service(NotifyPostmaster
> .java:167)
> at
> org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:152)
> at
> org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:
> 166)
> at
> org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:142)
> at org.apache.avalon.utils.recycle.pool.Worker.run(Worker.java:113)
> 
> 
> 
> 
> For your information, I tried to check what it is doing. For the email sent
> in HTML (successful case),
> 
> ..
> MIME-Version: 1.0
> X-Mailer: Internet Mail Service (5.5.2653.19)
> Content-Type: multipart/mixed;
>   boundary="_=_NextPart_000_01C1D763.B43A2C50"
> Status:   
> This message is in MIME format. Since your

RE: problem sending email, body in Rich Text Format / Plain Text

2002-04-03 Thread Danny Angus

It seems strange, but may be because "application/octet-stream" is the
lowest common denominator content type used for any unknown content-type, it
basically translates as "this type is unknown, treat it as a raw binary and
let someone else figure it out"

It would appear that javax.mail cannot cope with an email who's only part is
either a) Disposition: attachment or b) Content-type:
application/octet-stream

Probably because it (or some guy at sun) believes that it cannot create a
complete mail message from it.

HTML email in Outlook is actually Content-type: multipart/alternative,
Attachments are always sent as Content-type: multipart/mixed , but plain
text is not usually multipart at all unless it has an attachment, I don't
know about M$ rtf.
I think HTML email works because it contains the framework of a multipart
message already, even if it is empty of content.

I don't yet know for sure what the reason for your error is, but I bet its
related to the issues above, and that means that its not our bug, but a bug
in javax.mail from sun.

:-(

d.


> -Original Message-
> From: Kishore Metla [mailto:[EMAIL PROTECTED]]
> Sent: 03 April 2002 19:49
> To: '[EMAIL PROTECTED]'
> Subject: FW: problem sending email, body in Rich Text Format / Plain
> Text
>
>
>
> Hi,
>
> I did not get any answer and this is kind of important. Can someone please
> help me.
>
> Thanks in advance
> -Kishore
>
> -Original Message-
> From: Kishore Metla [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 01, 2002 11:16 AM
> To: '[EMAIL PROTECTED]'
> Subject: problem sending email, body in Rich Text Format / Plain Text
>
>
>
> Hi,
>
> I have James set up. I have a problem when sending an email using
> Microsoft
> Outlook 2000 Plain Text or Rich Text to the James with an attachment but
> with no message in the body.
>
> I am choosing the format of the mail in the Outlook by going to Tools >>
> Options >> Mail Format >> 'Choose a format for outgoing mail ...'  and
> choosing the option as 2 or 3 from the available as listed below
> 1. HTML
> 2. Microsoft Outlook Rich Text
> 3. Plain Text
>
> When I send an email to the James Server to categorize, choosing
> HTML (with
> or without a message in the body) it works fine. If I send an
> email choosing
> either Plain Text or Rich Text with some message in the body it
> works fine.
> But If no message in the body (sending just an attachment) it
> fails throwing
> an exception (see below).
> --
> --
> --
> --
> 
> javax.activation.UnsupportedDataTypeException: no object DCH for MIME type
> application/octet-stream;
> name="example.PDF"
> at
> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851)
> at javax.activation.DataHandler.writeTo(DataHandler.java:305)
> at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
> at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:635)
> at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:233)
> at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:68)
> at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:849)
> at javax.activation.DataHandler.writeTo(DataHandler.java:305)
> at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
> at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527)
> at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1503)
> at org.apache.james.core.MailImpl.writeMessageTo(MailImpl.java:198)
> at
> org.apache.james.mailrepository.AvalonMailRepository.store(AvalonM
> ailReposit
> ory.java:98)
> at org.apache.james.James.sendMail(James.java:298)
> at org.apache.james.James.sendMail(James.java:278)
> at org.apache.james.James.sendMail(James.java:270)
> at
> org.apache.james.transport.mailets.NotifyPostmaster.service(Notify
> Postmaster
> .java:167)
> at
> org.apache.james.transport.LinearProcessor.service(LinearProcessor
> .java:152)
> at
> org.apache.james.transport.JamesSpoolManager.process(JamesSpoolMan
> ager.java:
> 166)
> at
> org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager
> .java:142)
> at org.apache.avalon.utils.recycle.pool.Worker.run(Worker.java:113)
> Exception in processor 
> javax.mail.MessagingException: Exception spooling message:
> Exception caught
> while storing Message Container: javax.activ
> ation.UnsupportedDataTypeException: no object DCH for MIME type
> application/octet-stream;
> name="example.PDF"
> at org.apache.james.James.sendMail(James.java:304)
> at org.apache.james.James.sendMail(James.java:278)
> at org.apache.james.James.sendMail(James.java:270)
> at
> org.apache.james.transport.mailets.NotifyPostmaster.service(Notify
> Postmaster
> .java:167)
> at
> org.apache.james.transport.LinearProcessor.service(LinearProcessor
> .java:152)
> at
> org.apache.james.transport.JamesSpoolManager.process(JamesSpo

Return-Path patch

2002-04-03 Thread Jeff Keyser

I apologize for sending this directly to the developer's list, but the bug
database web site isn't working at the moment.  (Or maybe I just can't get
to it from my ISP - I'm not sure which.)

This proposed patch is in response to the repeated bounced e-mail from
lokitech.com yesterday.  The problem was that their James server was
bouncing the e-mail to the sender (the mailing list), and not the address in
the Return-Path header as it was supposed to.  The attached file is intended
to fix that problem.


Index: src/java/org/apache/james/James.java
===
RCS file: /home/cvspublic/jakarta-james/src/java/org/apache/james/James.java,v
retrieving revision 1.19
diff -u -r1.19 James.java
--- src/java/org/apache/james/James.java27 Feb 2002 05:05:53 -  1.19
+++ src/java/org/apache/james/James.java4 Apr 2002 02:19:23 -
@@ -347,6 +347,11 @@
 MimeMessage orig = mail.getMessage();
 //Create the reply message
 MimeMessage reply = (MimeMessage) orig.reply(false);
+//If there is a Return-Path header,
+if (orig.getHeader("Return-Path") != null) {
+//Return the message to that address, not to the Reply-To address
+reply.setRecipient(MimeMessage.RecipientType.TO, new 
+InternetAddress(orig.getHeader("Return-Path")[0]));
+}
 //Create the list of recipients in our MailAddress format
 Collection recipients = new HashSet();
 Address addresses[] = reply.getAllRecipients();



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: Return-Path patch

2002-04-03 Thread Serge Knystautas

Thank you very much, and I'm really sorry to everyone for having filled 
inboxes with that crap.  Our Netscape IMAP server crashed and I couldn't 
get it restarted for many hours.  I'll get this patch applied shortly 
and deployed on our server.

Serge Knystautas
Loki Technologies
http://www.lokitech.com/

Jeff Keyser wrote:
> I apologize for sending this directly to the developer's list, but the bug
> database web site isn't working at the moment.  (Or maybe I just can't get
> to it from my ISP - I'm not sure which.)
> 
> This proposed patch is in response to the repeated bounced e-mail from
> lokitech.com yesterday.  The problem was that their James server was
> bouncing the e-mail to the sender (the mailing list), and not the address in
> the Return-Path header as it was supposed to.  The attached file is intended
> to fix that problem.
> 
> 
> 
> 
> Index: src/java/org/apache/james/James.java
> ===
> RCS file: /home/cvspublic/jakarta-james/src/java/org/apache/james/James.java,v
> retrieving revision 1.19
> diff -u -r1.19 James.java
> --- src/java/org/apache/james/James.java  27 Feb 2002 05:05:53 -  1.19
> +++ src/java/org/apache/james/James.java  4 Apr 2002 02:19:23 -
> @@ -347,6 +347,11 @@
>  MimeMessage orig = mail.getMessage();
>  //Create the reply message
>  MimeMessage reply = (MimeMessage) orig.reply(false);
> +//If there is a Return-Path header,
> +if (orig.getHeader("Return-Path") != null) {
> +//Return the message to that address, not to the Reply-To address
> +reply.setRecipient(MimeMessage.RecipientType.TO, new 
>InternetAddress(orig.getHeader("Return-Path")[0]));
> +}
>  //Create the list of recipients in our MailAddress format
>  Collection recipients = new HashSet();
>  Address addresses[] = reply.getAllRecipients();


--
To unsubscribe, e-mail:   
For additional commands, e-mail: