Spam message with invalid date wedges postoffice

Bug #697033 reported by Jim B. Glenn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Fix Released
Low
Chris Rossi

Bug Description

WARNING:repoze.postoffice:Queue removed from configuration still has messages: eurasia
Traceback (most recent call last):
  File "/home/postmaster/postoffice/bin/postoffice", line 21, in <module>
    repoze.postoffice.script.main()
  File "/home/postmaster/postoffice/src/repoze.postoffice/repoze/postoffice/script.py", line 73, in main
    return ConsoleScript()()
  File "/home/postmaster/postoffice/src/repoze.postoffice/repoze/postoffice/script.py", line 46, in __call__
    po.import_messages(self.log)
  File "/home/postmaster/postoffice/src/repoze.postoffice/repoze/postoffice/api.py", line 156, in import_messages
    self._import_message(message, log)
  File "/home/postmaster/postoffice/src/repoze.postoffice/repoze/postoffice/api.py", line 206, in _import_message
    (name, _log_message(message))
  File "/opt/python2.5//lib/python2.5/contextlib.py", line 33, in __exit__
    self.gen.throw(type, value, traceback)
  File "/home/postmaster/postoffice/src/repoze.postoffice/repoze/postoffice/api.py", line 398, in __call__
    yield folder
  File "/home/postmaster/postoffice/src/repoze.postoffice/repoze/postoffice/api.py", line 201, in _import_message
    self, queue, message, log
  File "/home/postmaster/postoffice/src/repoze.postoffice/repoze/postoffice/api.py", line 247, in _check_for_auto_response_and_loops
    now = datetime.datetime(*parsedate(now)[:6])
ValueError: day is out of range for month

Tags: r3.67
Jim B. Glenn (jimbglenn)
Changed in karl3:
importance: Undecided → Critical
assignee: nobody → Chris Rossi (chris-archimedeanco)
Revision history for this message
Jim B. Glenn (jimbglenn) wrote :

reported from Nat:

I've sent several emails into different KARL communities over the past
hour and nothing has posted and no email alerts have been sent. It's
possible that there's just a delay in the system, but I just wanted to
make sure that email is not down.

-------

confirmed e-mail in not working.

Changed in karl3:
status: New → In Progress
Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

This was caused by a spam message containing and invalid date header. I have removed the offending message, unclogging the mailin log jam. I have downgraded the importance of this ticket but left it open, so that I can come back and add fault tolerance for this case so similar spam messages won't have this impact in the future. This work is not critical and can be managed like a normal bug fix.

Changed in karl3:
status: In Progress → Confirmed
importance: Critical → Medium
Revision history for this message
Paul Everitt (paul-agendaless) wrote : Re: [Bug 697033] Re: error in postoffice log

Thanks for looking at this one last night, Chris.

--Paul

On Jan 3, 2011, at 8:59 PM, Chris Rossi wrote:

> This was caused by a spam message containing and invalid date header. I
> have removed the offending message, unclogging the mailin log jam. I
> have downgraded the importance of this ticket but left it open, so that
> I can come back and add fault tolerance for this case so similar spam
> messages won't have this impact in the future. This work is not
> critical and can be managed like a normal bug fix.
>
>
> ** Changed in: karl3
> Status: In Progress => Confirmed
>
> ** Changed in: karl3
> Importance: Critical => Medium
>
> --
> You received this bug notification because you are subscribed to KARL3.
> https://bugs.launchpad.net/bugs/697033
>
> Title:
> error in postoffice log
>
> Status in KARL3:
> Confirmed
>
> Bug description:
> WARNING:repoze.postoffice:Queue removed from configuration still has messages: eurasia
> Traceback (most recent call last):
> File "/home/postmaster/postoffice/bin/postoffice", line 21, in <module>
> repoze.postoffice.script.main()
> File "/home/postmaster/postoffice/src/repoze.postoffice/repoze/postoffice/script.py", line 73, in main
> return ConsoleScript()()
> File "/home/postmaster/postoffice/src/repoze.postoffice/repoze/postoffice/script.py", line 46, in __call__
> po.import_messages(self.log)
> File "/home/postmaster/postoffice/src/repoze.postoffice/repoze/postoffice/api.py", line 156, in import_messages
> self._import_message(message, log)
> File "/home/postmaster/postoffice/src/repoze.postoffice/repoze/postoffice/api.py", line 206, in _import_message
> (name, _log_message(message))
> File "/opt/python2.5//lib/python2.5/contextlib.py", line 33, in __exit__
> self.gen.throw(type, value, traceback)
> File "/home/postmaster/postoffice/src/repoze.postoffice/repoze/postoffice/api.py", line 398, in __call__
> yield folder
> File "/home/postmaster/postoffice/src/repoze.postoffice/repoze/postoffice/api.py", line 201, in _import_message
> self, queue, message, log
> File "/home/postmaster/postoffice/src/repoze.postoffice/repoze/postoffice/api.py", line 247, in _check_for_auto_response_and_loops
> now = datetime.datetime(*parsedate(now)[:6])
> ValueError: day is out of range for month
>
>

Changed in karl3:
milestone: none → m52
summary: - error in postoffice log
+ Spam message with invalid date wedges postoffice
Changed in karl3:
milestone: m52 → m53
importance: Medium → Low
Changed in karl3:
milestone: m53 → m55
Changed in karl3:
milestone: m55 → m58
Changed in karl3:
milestone: m58 → m60
Changed in karl3:
milestone: m60 → m61
Changed in karl3:
milestone: m61 → m62
Changed in karl3:
status: Confirmed → Fix Committed
JimPGlenn (jpglenn09)
tags: added: r3.67
Revision history for this message
JimPGlenn (jpglenn09) wrote :

fixed

Changed in karl3:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.