queuedDelivery should be overridable

Bug #191143 reported by Marc Tardif
6
Affects Status Importance Assigned to Milestone
Zope 3
Won't Fix
Undecided
Unassigned
zope.sendmail
Fix Released
Medium
Tres Seaver
zope.sendmail (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The use case is where a configuration can be used in the context of a daemon and also in the context of a command line application, such as a cron for example. The problem is that if the configuration happens to define queuedDelivery, the application typically never exits because there is a thread continuously polling the queuePath. The solution would be to provide a mechanism to have includeOverrides replace queuedDelivery with directDelivery. In order to support this feature, the discriminator for both would have to be the same. However, they are currently different which makes the override impossible. Please see the patch attached to this message.

Related branches

Revision history for this message
Marc Tardif (cr3) wrote :
Tres Seaver (tseaver)
Changed in zope3:
status: New → Won't Fix
Tres Seaver (tseaver)
tags: added: bugday20100424
Revision history for this message
Tres Seaver (tseaver) wrote :

This patch looks sane to me, but I don't know the innards of zope.sendmail very well. A couple of points in its favor:

- All tests continue to pass with the patch applied.

- The change to the discriminator makes it match what the handler actually does at execution time.

One downside: the patch does not add a test which demonstrates the failure case.

Changed in zope.sendmail:
importance: Undecided → Medium
status: New → Confirmed
Tres Seaver (tseaver)
Changed in zope.sendmail:
assignee: nobody → Tres Seaver (tseaver)
milestone: none → 3.7.5
Revision history for this message
Tres Seaver (tseaver) wrote :
Changed in zope.sendmail:
status: Confirmed → Fix Committed
status: Fix Committed → Fix Released
Logan Rosen (logan)
Changed in zope.sendmail (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package zope.sendmail - 3.7.5-0ubuntu1

---------------
zope.sendmail (3.7.5-0ubuntu1) quantal; urgency=low

  * New upstream release.
    - Fixes "queuedDelivery should be overridable." (LP: #191143)
    - Fixes "SMTPRecipientsRefused not handled in zope.sendmail." (LP: #1003288)
  * Bump Standards-Version to 3.9.3.
 -- Logan Rosen <email address hidden> Sun, 15 Jul 2012 19:07:58 -0400

Changed in zope.sendmail (Ubuntu):
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.