[ mailman-Patches-1399065 ] link in approval request emails directly to the held message

SourceForge.net noreply at sourceforge.net
Sat Jan 7 08:33:59 CET 2006

Patches item #1399065, was opened at 2006-01-07 02:33
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: list administration
Group: Mailman 2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: David Miller (justdave72)
Assigned to: Nobody/Anonymous (nobody)
Summary: link in approval request emails directly to the held message

Initial Comment:
The emails currently sent to a list moderator include a
URL you can click to go visit the moderation queue. 
But it loads the entire queue.  If you get a lot of
spam, you probably have a habit of just ignoring the
approval requests if they're spam.  This can make the
size of your queue pretty large after a while (even if
you're using a cron job to expire old requests), and
make it difficult to find the message you want to
approve when you get one worth approving.  Include in
the email is an attached email with a 40-digit token
which you can reply to and send a password in order to
approve the message.  Trying to remember a list
password when I moderate 85 lists is nuts (that's what
my browser's password autofill is for), and I don't
like the idea of mailing my site password around in

The admindb interface on the Web UI already has the
ability to display a single message (when you click the
[1] or [2] in front of the subject line).  So why not
use it, and have the moderator approval request mails
list link directly to that?

This patch modifies admindb in the web interface to
accept a confirmation token in the msgid parameter, in
addition to the sequence ID within the queue.  It
decides which it got by checking the length (if it's 40
digits, it's a token), and if it's a token, it looks up
the sequence number and feeds that to the existing
single-message display code.

It also modifies the held message handler to add the
cookie to the variables passed to the message template,
and modifies the postauth.txt template to add that
cookie to the URL included in the email.

With this patch applied, clicking the link in the email
takes you to the single-message view in the request
queue, where you can do what you want with just that

I wrote this patch against 2.1.5 (that's what ships
with RHEL4), but it appears to apply cleanly to 2.1.7 also.


You can respond by visiting: 

More information about the Mailman-coders mailing list