On a previous thread on error reports/bounce rewrite,
 I suggested a simple implementation :

Each time Xmail have to send a bounce/ndr/... it searchs for a text =
file in
a subdir (<mailroot>/errors/ ?) :
- if it found a ABC.txt file with ABC =3D=3D error code, use its =
content as
start
of the mail/error report
- if not, find a more generic file AB.txt (like 52.txt for 52x errors) =
and
if found , use its content as start of the mail/error report
- if not, find a more generic file A.txt (like 5.txt for 5xx errors) =
and if
found , use its content as start of the mail/error report
- if none is found, use a generic.txt file if exist as start of the
mail/error report
- if none found, use none :)
Finally append 'standard xmail' infos at bottom.

Simple and fast no ?

Future enhancements could be the use of macros in the text files to =
insert
original infos, like sender, receiver, real final, send host name or =
ip, ...
(use same macros as filters ? so little code to write ?)

Francis
=20

>-----Message d'origine-----
>De : [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] la part de Ivo Smits
>Envoy=E9 : dimanche 17 juin 2007 02:26
>=C0 : xmail@xmailserver.org
>Objet : [xmail] Re: 1.25-pre16
>
>
>Why??
>
>I think that most end users don't understand what the failure report=20
>actually says. Even the header line contains a message ID, while the=20
>original Subject means much more to the end user. Ofcourse, the more=20
>detailed information is important for tracing problems, but it is also =

>important that the user knows that his e-mail will not arrive=20
>(or that it=20
>has just been 'delayed', so they don't have to retry). The detailed=20
>information can then be attached after a clear explanation of=20
>the problem,=20
>e-mail addresses and subject of the message. This information=20
>can easily be=20
>taken from the message by using `grep` from a shellscript.
>
>Besides that, I think that some administrators would like to have the=20
>reports in their own language.
>
>Ivo
>
>----- Original Message -----=20
>From: "Davide Libenzi" <[EMAIL PROTECTED]>
>To: "XMail mailing list" <xmail@xmailserver.org>
>Sent: Friday, June 15, 2007 9:34 PM
>Subject: [xmail] Re: 1.25-pre16
>
>
>> On Wed, 13 Jun 2007, Ivo Smits wrote:
>>
>>> Hello Davide,
>>>
>>> While looking at your code, I noticed a mistake, in=20
>QueueUtils.php... the
>>> function name QueUtBuildErrorRespose .. should be respoNse=20
>I think? ;)
>>
>> Thank you, changed.
>>
>>
>>
>>> I was actually looking for a way to edit error reports... I have=20
>>> suggested
>>> this before, but I would like to have your opinion..
>>
>> Why?
>>
>>
>>
>> - Davide
>>
>>
>> -
>> To unsubscribe from this list: send the line "unsubscribe xmail" in
>> the body of a message to [EMAIL PROTECTED]
>> For general help: send the line "help" in the body of a message to
>> [EMAIL PROTECTED]
>>=20
>
>-
>To unsubscribe from this list: send the line "unsubscribe xmail" in
>the body of a message to [EMAIL PROTECTED]
>For general help: send the line "help" in the body of a message to
>[EMAIL PROTECTED]
>
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to