[Bug 266317] Re: attachments archived even when archiving disabled

Mark Sapiro mark at msapiro.net
Thu Aug 11 20:32:17 CEST 2011

> is it safe to remove these attachments directories? Or will all the
attachment files just come back?

Assuming the list doesn't archive (archive = No), the only things stored
in the attachments directory are attachments scrubbed from the 'plain'
format digest. You can remove the attachments directory and its
contents, and those specific files won't come back, but as long as your
list is digestable, attachments from subsequent digests will continue to
be stored.

You might think creating a attachments directory as a symlink to
/dev/null would work, but it won't because Mailman tries to create and
access subdirectories under attachments.

Probably the best you can do is create a cron job to 'rm -rf
archives/private/listname/attachments' or maybe 'find
archives/private/listname/attachments -maxdepth 1 -mtime +2 -exec rm -f
\{\} \;'. The 'find' example should just remove those subdirectories
older than 2 days (-mtime +2).

You received this bug notification because you are a member of Mailman
Coders, which is subscribed to GNU Mailman.

  attachments archived even when archiving disabled

To manage notifications about this bug go to:

More information about the Mailman-coders mailing list