Web UI for investigating the email-in quarantine

Bug #397198 reported by Paul Everitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Fix Released
Medium
Chris Rossi

Bug Description

As mentioned here:

  https://bugs.launchpad.net/karl3/+bug/397030/comments/1

...provide a Web UI for listing information about stuff flagged in pending.db as quarantined. Chris will use his judgment about how this is implemented (e.g. as a Paster composite) and what it shows (e.g. don't allow operations for now.)

Tags: email
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

I believe Chris is going to wrap up current work today then move to migration. We might make other tasks later.

Changed in karl3:
milestone: m22 → m23
Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

A basic UI is integrated into OSI's Karl. In order to see it one needs to set the relevant parameters in karl.ini. There are currently commented out placeholders with comments. The following bin/debug session will create a monitor instance in an existing Karl:

>>> from osi.mailin_monitor import KarlMailInMonitor
>>> root['mailin'] = KarlMailInMonitor()
>>> import transaction
>>> transaction.commit()

(The evolution scripts seem like overkill for this, but we can certainly go back and add it there if we want.)

This will then create the following urls in the app:

  /mailin/quarantine

Lists all messages currently in the quarantine. Must be KarlAdmin to view.

  /mailin/quarantine/status.txt

Returns 'OK' in plain text if quarantine is empty, otherwise returns 'ERROR'. This is not a protected view. The intent is that Six Feet Up can monitor this url.

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

I've just checked in a patch that eliminates the need for the bin/debug tweak above. It will now work with no change to the db. Chris M astutely pointed out that I could do what I was doing with a route rather than persistence.

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.