⇤ ← Revision 1 as of 2008-07-31 13:57:28
Size: 1372
Comment:
|
Size: 1360
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-<listname>-* | $ bin/discard data/heldmsg-<listname>-* |
Line 14: | Line 14: |
$ find data -name heldmsg-<listname>-\* -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.