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 Danny Angus <da...@apache.org> on 2002/10/21 12:40:38 UTC

Proposal .. error messages

I'd like to see what everyone thinks of this idea..
to construct more meaningful error trails for bounce and other failed messages we should append lines to the error message of a Mail, rather than replace the message with a new one, so an error might end up reading..

"sent for transport
attempt failed because '400 service unavailable'
retrying 1
attempt failed because '400 service unavailable'
given up after 2 trys"


I did this to a version I was hacking, but never got round to comitting it.
is it a good idea, or is there a good reason not to do this?

d.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Proposal .. error messages

Posted by Serge Knystautas <se...@lokitech.com>.
I think that might be useful as an attachment, but really needs to be 
buried.  From my experience, most users won't read past the second 
paragraph in the email (if that), so this would be useful only to the 
admin who the bounce gets forwarded to.

-- 
Serge Knystautas
Loki Technologies - Unstoppable Websites
http://www.lokitech.com

Danny Angus wrote:
> I'd like to see what everyone thinks of this idea..
> to construct more meaningful error trails for bounce and other failed messages we should append lines to the error message of a Mail, rather than replace the message with a new one, so an error might end up reading..
> 
> "sent for transport
> attempt failed because '400 service unavailable'
> retrying 1
> attempt failed because '400 service unavailable'
> given up after 2 trys"
> 
> 
> I did this to a version I was hacking, but never got round to comitting it.
> is it a good idea, or is there a good reason not to do this?
> 
> d.
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Proposal .. error messages

Posted by Danny Angus <da...@apache.org>.
> I do think such a feature would be useful, although I'm far more
> interested in seeing the bounce logic being un-hard coded from the
> server. 

Yeah me too.

> IMHO, a bounce should result in a mail being directed to
> another processor, allowing full custom handling of the bounce
> condition.  This would allow the logic you propose to be implemented as
> a mailet.  As long as the bounce behavior is flexible, either the
> behavior you specify or the current behavior could be valuable,
> depending on the needs and desires of the administrator.  Personally,
> I'd like to see our bounce handling in general discussed in the rev++
> discussion.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Proposal .. error messages

Posted by "Noel J. Bergman" <no...@devtech.com>.
> interested in seeing the bounce logic being un-hard coded from the
> server

Agreed.  There is some prior discussion of this in the archives, and it
would be a good v3 discussion.

	--- Noel


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Proposal .. error messages

Posted by "Peter M. Goldstein" <pe...@yahoo.com>.
Danny,

I do think such a feature would be useful, although I'm far more
interested in seeing the bounce logic being un-hard coded from the
server.  IMHO, a bounce should result in a mail being directed to
another processor, allowing full custom handling of the bounce
condition.  This would allow the logic you propose to be implemented as
a mailet.  As long as the bounce behavior is flexible, either the
behavior you specify or the current behavior could be valuable,
depending on the needs and desires of the administrator.  Personally,
I'd like to see our bounce handling in general discussed in the rev++
discussion.

--Peter 

> -----Original Message-----
> From: Danny Angus [mailto:danny@apache.org]
> Sent: Monday, October 21, 2002 3:41 AM
> To: James Developers List
> Subject: Proposal .. error messages
> 
> I'd like to see what everyone thinks of this idea..
> to construct more meaningful error trails for bounce and other failed
> messages we should append lines to the error message of a Mail, rather
> than replace the message with a new one, so an error might end up
> reading..
> 
> "sent for transport
> attempt failed because '400 service unavailable'
> retrying 1
> attempt failed because '400 service unavailable'
> given up after 2 trys"
> 
> 
> I did this to a version I was hacking, but never got round to
comitting
> it.
> is it a good idea, or is there a good reason not to do this?
> 
> d.
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:james-dev-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:james-dev-
> help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Proposal .. error messages

Posted by Danny Angus <da...@apache.org>.
> Were your messages in short hand, or did you mean them literally? 

literally, I get messages like that from time to time from other MTA's

>  If you do
> it, wouldn't it make sense to add the timestamp for each attempt?  What
> about the mail server(s) tried, e.g., for a service like Hotmail, 
> which has
> multiple servers?

hostnames would appear where relevant.
timestamp is a nice idea, james' usp ;-)

d.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Proposal .. error messages

Posted by "Noel J. Bergman" <no...@devtech.com>.
I'm ambivalent.  Maybe because I don't tend to get bounces like that from
other mail servers.  Generally, when there is a transient error I would one
that says there is a temporary failure, and if it didn't clear up within a
week or so, I'd get one saying that it still couldn't deliver the e-mail, so
it was giving up.  I don't recall getting a log of each attempt.  The more I
think about it, the more I think it might be nice.

Were your messages in short hand, or did you mean them literally?  If you do
it, wouldn't it make sense to add the timestamp for each attempt?  What
about the mail server(s) tried, e.g., for a service like Hotmail, which has
multiple servers?

	--- Noel

-----Original Message-----
From: Danny Angus [mailto:danny@apache.org]
Sent: Monday, October 21, 2002 6:41
To: James Developers List
Subject: Proposal .. error messages


I'd like to see what everyone thinks of this idea..
to construct more meaningful error trails for bounce and other failed
messages we should append lines to the error message of a Mail, rather than
replace the message with a new one, so an error might end up reading..

"sent for transport
attempt failed because '400 service unavailable'
retrying 1
attempt failed because '400 service unavailable'
given up after 2 trys"


I did this to a version I was hacking, but never got round to comitting it.
is it a good idea, or is there a good reason not to do this?

d.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>