Skip Menu |

This queue is for tickets about the Parse-Syslog-Mail CPAN distribution.

Report information
The Basics
Id: 28807
Status: resolved
Priority: 0/
Queue: Parse-Syslog-Mail

People
Owner: SAPER [...] cpan.org
Requestors: salagadoola [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 0.12



Subject: incorrect parsing of bounced mail
Date: Mon, 13 Aug 2007 12:35:19 +0800
To: bug-Parse-Syslog-Mail [...] rt.cpan.org
From: salagadoola <salagadoola [...] gmail.com>
When I try to parse this line with Parse-Syslog-Mail-0.11: Aug 13 00:52:53 MyOwnMailGate postfix/smtp[21945]: 84179E35: to=<pppppppp@gmail.coml>, relay=none, delay=0, status=bounced (Host or domain name not found. Name service error for name=gmail.coml type=A: Host not found) I expected to get the "status", but I got "type" instead of "status": $VAR1 = { 'delay' => '0', 'host' => 'MyOwnMailGate', 'program' => 'postfix/smtp', 'to' => '<pppppppp@gmail.coml>', 'relay' => 'none', 'timestamp' => 1186937573, 'text' => '84179E35: to=<pppppppp@gmail.coml>, relay=none, delay=0, status=bounced (Host or domain name not found. Name service error for name=gmail.coml type=A: Host not found)', 'id' => '84179E35', 'type' => 'A: Host not found)' };

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #28807] incorrect parsing of bounced mail
Date: Mon, 13 Aug 2007 08:57:19 +0200
To: bug-Parse-Syslog-Mail [...] rt.cpan.org
From: Sébastien Aperghis-Tramoni <saper [...] cpan.org>
Hello, Show quoted text
> When I try to parse this line with Parse-Syslog-Mail-0.11: > Aug 13 00:52:53 MyOwnMailGate postfix/smtp[21945]: 84179E35: > to=<pppppppp@gmail.coml>, relay=none, delay=0, status=bounced (Host or > domain name not found. Name service error for name=gmail.coml type=A: > Host not found) > > I expected to get the "status", but I got "type" instead of "status":
Thanks for submitting this ticket. I can reproduce the problem, and it seems the attached patch fixes it. Can you test it with your logs in order to confirm?

Message body is not shown because sender requested not to inline it.

-- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO.
Subject: Re: [rt.cpan.org #28807] incorrect parsing of bounced mail
Date: Mon, 13 Aug 2007 15:52:02 +0800
To: bug-Parse-Syslog-Mail [...] rt.cpan.org
From: salagadoola <salagadoola [...] gmail.com>
Hi, Thanks for the patch. It does fix the problem with my logs. 2007/8/13, Sébastien Aperghis-Tramoni via RT <bug-Parse-Syslog-Mail@rt.cpan.org>: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=28807 > > > Hello, >
> > When I try to parse this line with Parse-Syslog-Mail-0.11: > > Aug 13 00:52:53 MyOwnMailGate postfix/smtp[21945]: 84179E35: > > to=<pppppppp@gmail.coml>, relay=none, delay=0, status=bounced (Host or > > domain name not found. Name service error for name=gmail.coml type=A: > > Host not found) > > > > I expected to get the "status", but I got "type" instead of "status":
> > Thanks for submitting this ticket. > I can reproduce the problem, and it seems the attached patch fixes > it. Can you test it with your logs in order to confirm? > > > > > -- > S?bastien Aperghis-Tramoni > > Close the world, txEn eht nepO.
Subject: Re: [rt.cpan.org #28807] incorrect parsing of bounced mail
Date: Mon, 13 Aug 2007 12:14:50 +0200
To: bug-Parse-Syslog-Mail [...] rt.cpan.org
From: Sébastien Aperghis-Tramoni <maddingue [...] free.fr>
Show quoted text
> Hi, > > Thanks for the patch. It does fix the problem with my logs.
No problem. Show quoted text
> After parsing my maillog, I found another pattern which is not handled > by Parse-Syslog-Mail. So I tried to add a patch to deal with this > pattern: > > Aug 13 16:06:58 MyOwnMailGate postfix/cleanup[17395]: 8B7EF2BB7: > reject: header Date: Mon, 18 Jan 2038 19:07:11 +0800 from > unknown[192.168.7.245]; from=<bcfxhdfyrey4l@easternasiaxm.com> > to=<service@qqqqqq.com> proto=ESMTP helo=<realmail.iiiiiii.com>: > Message content rejected
Thanks, applied. Do you mind if I include your logs in the test suite (as you have already anonymized them)? -- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO.
Subject: Re: [rt.cpan.org #28807] incorrect parsing of bounced mail
Date: Tue, 14 Aug 2007 09:22:50 +0800
To: bug-Parse-Syslog-Mail [...] rt.cpan.org
From: salagadoola <salagadoola [...] gmail.com>
2007/8/13, Sébastien Aperghis-Tramoni via RT <bug-Parse-Syslog-Mail@rt.cpan.org>: Show quoted text
> > > > Aug 13 16:06:58 MyOwnMailGate postfix/cleanup[17395]: 8B7EF2BB7: > > reject: header Date: Mon, 18 Jan 2038 19:07:11 +0800 from > > unknown[192.168.7.245]; from=<bcfxhdfyrey4l@easternasiaxm.com> > > to=<service@qqqqqq.com> proto=ESMTP helo=<realmail.iiiiiii.com>: > > Message content rejected
> > Thanks, applied. > Do you mind if I include your logs in the test suite (as you have > already anonymized them)?
OK. (But I forgot to anonymize the "easternasiaxm" part. Maybe it needs to be anonymized, too.) Show quoted text
> > -- > Sébastien Aperghis-Tramoni > > Close the world, txEn eht nepO.
-- salagadoola
Subject: Re: [rt.cpan.org #28807] incorrect parsing of bounced mail
Date: Fri, 4 Jan 2008 18:57:36 +0100
To: bug-Parse-Syslog-Mail [...] rt.cpan.org
From: Sébastien Aperghis-Tramoni <saper [...] cpan.org>
Hello, Just realised I had forgot to upload a new version. salagadoola wrote: Show quoted text
>> Do you mind if I include your logs in the test suite (as you have >> already anonymized them)?
> > OK. (But I forgot to anonymize the "easternasiaxm" part. Maybe it > needs to be anonymized, too.)
I anonymised the rest of the log and added it to the test suite. Version 0.12 uploaded on the CPAN. Thanks for reporting this problem. -- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO.