You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bu...@apache.org on 2005/05/11 21:48:50 UTC
DO NOT REPLY [Bug 15755] -
javax.mail.internet.ParseException
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=15755>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=15755
sudip_s_s@hotmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
------- Additional Comments From sudip_s_s@hotmail.com 2005-05-11 21:48 -------
I was able to replicate this bug in version 2.2.0a8
javax.mail.MessagingException: Exception spooling message: Exception caught
while storing Message Container: javax.mail.internet.ParseException;
nested exception is:
java.lang.RuntimeException: Exception caught while storing Message
Container: javax.mail.internet.ParseException
at org.apache.james.James.sendMail(James.java:507)
at org.apache.james.James.sendMail(James.java:464)
at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:92)
at $Proxy9.sendMail(Unknown Source)
at
com.privacyinc.logic.runtime.mppmodule.james.MailAllForward.forwardEmail(MailAllForward.java:755)
at
com.privacyinc.logic.runtime.mppmodule.james.MailAllForward.service(MailAllForward.java:496)
at
org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:439)
at
org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:441)
at
org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:370)
at
org.apache.james.util.thread.ExecutableRunnable.execute(ExecutableRunnable.java:89)
at org.apache.james.util.thread.WorkerThread.run(WorkerThread.java:125)
And this time we have the mail that created this exception. I had written a Perl
script to send out a test emails to James. This script had an error and I assume
that this error is responsible for the bug.
Here is the Perl script
sub mailer{
my $sendmail = "/usr/sbin/sendmail -t";
my $reply_to = "Reply-to: root\@bigbrother.domain.com\n";
my $from = "From: root\@bigbrother.domain.com\n";
my $subject = "Subject: Hi\n";
my $content = "Thanks for your efforts\n";
my $to = "To: test@yourserver.com\n";
open(SENDMAIL, "|$sendmail") or die "Cannot open $sendmail: $!";
print SENDMAIL $from;
print SENDMAIL $to;
print SENDMAIL $reply_to;
print SENDMAIL $subject;
print SENDMAIL 'Content-type: text/plain\n\n';
print SENDMAIL $content;
close(SENDMAIL);
}
As we can see in line ---- print SENDMAIL 'Content-type: text/plain\n\n';
I had mistakenly added single quotes instead of double quotes. Once I placed
double quotes, the mail went through James without any issues.
Thanks,
Sudip
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org