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 Charles Benett <ch...@benett1.demon.co.uk> on 2001/05/30 12:17:01 UTC

Re: BUG: sending returned email

This should have been sent to the james-user list.
Charles

Giedrius wrote:
> 
> Hello,
> 
> We installed James Mail Server 1.2 with default configuration.
> And got interesting error:
> If MailServer can't send email, it stores in spool directory.
> And trying to send to sender with RE: and attached message.
> Then MAilServer can't send it, and history repeats until there is not free
> space on the hard disk.
> 
> Giedrius and Vytis
> Bona Mens
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-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: Ok, now what!

Posted by Harmeet <ha...@kodemuse.com>.
From: "Danny Angus" <da...@thought.co.uk>
> I thought I'd try adding a footer to messages, then I came up against
MIME,
> which I'm pretty cool with, but I don't want to re-invent the wheel, so my
q
> is what classes can I use to get at the parts of my message? are there
some
> in James, or another jakarta project, or do I need to source them
elswhere?
> (in which case I might write them after all)

I think you need the javax.mail package. The classes there can help you get
to your mail parts and modify them etc.

Harmeet
----- Original Message -----
From: "Danny Angus" <da...@thought.co.uk>
To: <ja...@jakarta.apache.org>
Sent: Wednesday, May 30, 2001 4:16 PM
Subject: Ok, now what!


> Ok, so I've written a new class to replace GenericListserve to suit myself
> (re  the prefix thing) re-compiled everything using my new class, and _lo_
> it works :-) (where do I get the cigar?)
>
> Now my next question is.. where can I find out how to deal with MIME
> messages in my mailet?
>
> I thought I'd try adding a footer to messages, then I came up against
MIME,
> which I'm pretty cool with, but I don't want to re-invent the wheel, so my
q
> is what classes can I use to get at the parts of my message? are there
some
> in James, or another jakarta project, or do I need to source them
elswhere?
> (in which case I might write them after all)
>
> d
>
>
> ---------------------------------------------------------------------
> 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: listserve, details, its all in the details

Posted by Harmeet <ha...@kodemuse.com>.
----- Original Message -----
From: "Danny Angus" <da...@thought.co.uk>
Subject: listserve, details, its all in the details


> I see this in GenericListserve:
>
> if (!isAttachmentsAllowed() && mail.getMessage().getContent() instanceof
> MimeMultipart) {
>                 getMailetContext().bounce(mail, "You cannot send
attachments
> to this listserv.");
>                 mail.setState(Mail.GHOST);
>                 return;


Not sure if this algorithm is correct to determine attachement. Multipart
Content may be a Multipart Mixed. Maybe there is a lurking bug there.

> where can I find out how to deal with MIME messages in my mailet?
javax.mail and javax.mail.internet would be good packages to look at. You
can get the source from Sun under SCSL license. It is part of J2EE source
distribution.

Harmeet


---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


listserve, details, its all in the details

Posted by Danny Angus <da...@thought.co.uk>.
I see this in GenericListserve:

if (!isAttachmentsAllowed() && mail.getMessage().getContent() instanceof
MimeMultipart) {
                getMailetContext().bounce(mail, "You cannot send attachments
to this listserv.");
                mail.setState(Mail.GHOST);
                return;



Does this mean that mime-type: multipart/alternative messages are canned
too? what if every part is disposition: inline, shouldn't they get through?

I asked this on the user list, but this is probably the better place:

where can I find out how to deal with MIME messages in my mailet?

I thought I'd try adding a footer to messages [in a mailet], then I came up
against MIME,
which I'm pretty cool with, but I don't want to re-invent the wheel, so my q
is what classes can I use to get at the parts of my message? are there some
in James, or another jakarta project, or do I need to source them elswhere?
(in which case I might write them after all, I've written a mime parser in
perl, it should get easier with practice!)


---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Ok, now what!

Posted by Danny Angus <da...@thought.co.uk>.
Ok, so I've written a new class to replace GenericListserve to suit myself
(re  the prefix thing) re-compiled everything using my new class, and _lo_
it works :-) (where do I get the cigar?)

Now my next question is.. where can I find out how to deal with MIME
messages in my mailet?

I thought I'd try adding a footer to messages, then I came up against MIME,
which I'm pretty cool with, but I don't want to re-invent the wheel, so my q
is what classes can I use to get at the parts of my message? are there some
in James, or another jakarta project, or do I need to source them elswhere?
(in which case I might write them after all)

d


---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org


Re: BUG: sending returned email

Posted by Kazys Jocionis <ka...@btinternet.com>.
I just ment
if in James config file you set to notify postmaster on any delivery error 
and you actually get error itself when sending error notification to 
postmaster
it will start sending error messages to postmaster acount in a loop.

it might be if you leave default Postmaster@localhost and didn't have that 
account created
or set postmaster to remote email address and it cannot be deliverer.

I thing I had the first situation when started playing with James 1.2.1

we should better have comments from James developers though...

Kazys


> thats what I thought, if both fail it should become an error, no?
>
> >
> >
> > Just in case...
> > Did you set up you Postmaster correctly?
> >
> > >
> > > Giedrius wrote:
> > > > Hello,
> > > >
> > > > We installed James Mail Server 1.2 with default configuration.
> > > > And got interesting error:
> > > > If MailServer can't send email, it stores in spool directory.
> > > > And trying to send to sender with RE: and attached message.
> > > > Then MAilServer can't send it, and history repeats until there is not
> > > > free space on the hard disk.
> > > >
> > > > Giedrius and Vytis
> > > > Bona Mens
> > > >

---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org


RE: BUG: sending returned email

Posted by Danny Angus <da...@thought.co.uk>.
thats what I thought, if both fail it should become an error, no?

> -----Original Message-----
> From: Kazys Jocionis [mailto:kazys.jocionis@btinternet.com]
> Sent: Wednesday, May 30, 2001 6:53 PM
> To: vytis; fozis@bonamens.com; james-user@jakarta.apache.org
> Subject: Re: BUG: sending returned email
> 
> 
> 
> 
> Just in case...
> Did you set up you Postmaster correctly?
> 
> Regards,
> 
> Kazys Jocionis
> 
> 
> 
> 
> On Wednesday 30 May 2001 11:17, Charles Benett wrote:
> > This should have been sent to the james-user list.
> > Charles
> >
> > Giedrius wrote:
> > > Hello,
> > >
> > > We installed James Mail Server 1.2 with default configuration.
> > > And got interesting error:
> > > If MailServer can't send email, it stores in spool directory.
> > > And trying to send to sender with RE: and attached message.
> > > Then MAilServer can't send it, and history repeats until there is not
> > > free space on the hard disk.
> > >
> > > Giedrius and Vytis
> > > Bona Mens
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: general-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
> 
> -- 
> 
> Thank you,
> 
> Kazys
> 
> ---------------------------------------------------------------------
> 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: BUG: sending returned email

Posted by Kazys Jocionis <ka...@btinternet.com>.

Just in case...
Did you set up you Postmaster correctly?

Regards,

Kazys Jocionis




On Wednesday 30 May 2001 11:17, Charles Benett wrote:
> This should have been sent to the james-user list.
> Charles
>
> Giedrius wrote:
> > Hello,
> >
> > We installed James Mail Server 1.2 with default configuration.
> > And got interesting error:
> > If MailServer can't send email, it stores in spool directory.
> > And trying to send to sender with RE: and attached message.
> > Then MAilServer can't send it, and history repeats until there is not
> > free space on the hard disk.
> >
> > Giedrius and Vytis
> > Bona Mens
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: general-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

-- 

Thank you,

Kazys

---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org