Differences between revisions 1 and 2
Revision 1 as of 2008-07-31 13:57:28
Size: 1372
Editor: dunxd
Comment:
Revision 2 as of 2008-10-20 10:46:33
Size: 1360
Editor: msapiro
Comment: Formatting
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#pragma page-filename DOC/versions/6684688 #pragma page-filename DOC/versions/8487045
Line 7: Line 7:
 $ bin/discard data/heldmsg-&lt;listname&gt;-*  $ bin/discard data/heldmsg-<listname>-*
Line 14: Line 14:
 $ find data -name heldmsg-&lt;listname&gt;-\* -print | xargs bin/discard  $ find data -name heldmsg-<listname>-\* -print | xargs bin/discard

4.74. How do I manually remove held messages from the command-line?

Held messages are stored in ~mailman/data as heldmsg-<listname>-<#>.pck. There is a command line tool to remove held messages and clean up the associated entries in the list's request.pck file. If the number of held messages is relatively small, the heldmsg*.pck files can simply be removed, but if the number is large enough to cause problems in the admindb web interface, the problems will persist after simply removing the heldmsg*.pck files. Therefore, it is best to use the command line tool ~mailman/bin/discard for this purpose.

 $ cd ~mailman
 $ bin/discard data/heldmsg-<listname>-*

However, for very large collections, once the shell is done expanding the wildcard this may exceed the limits of how many characters can be allowed in a single command-line. In this case, you could use something like this:

 $ cd ~mailman
 $ find data -name heldmsg-<listname>-\* -print | xargs bin/discard

Also note http://heim.ifi.uio.no/kjetilho/hacks/#listadmin command line fontend to web backend.

Last changed on Mon Mar 24 19:42:11 2008 by Mark Sapiro Converted from the Mailman FAQ Wizard

This is one of many Frequently Asked Questions.

MailmanWiki: DOC/4.74 How do I manually remove held messages from the command-line? (last edited 2015-01-31 02:36:58 by msapiro)