A user sent a Bugzilla page with an auto-generated
filename (basically, the query used to generate the
page) as an attachment.
Unfortunately, this filename is long enough to
overwhelm the pathname limit on Linux ext3 file
systems. (See below.) This, in turn, prevents
subsequent mail from being delivered.
Version info:
mailman-2.1.4-2.3.100mdk as distributed with
Mandrake Linux release 10.0 (Official) for i586
For example,
$ /usr/bin/python -S /usr/lib/mailman/cron/senddigests
Traceback (most recent call last):
File "/usr/lib/mailman/cron/senddigests", line 94, in ?
main()
File "/usr/lib/mailman/cron/senddigests", line 86, in
main
mlist.send_digest_now()
File "/usr/lib/mailman/Mailman/Digester.py", line 60,
in send_digest_now
ToDigest.send_digests(self, mboxfp)
File "/usr/lib/mailman/Mailman/Handlers/ToDigest.py",
line 132, in send_digests
send_i18n_digests(mlist, mboxfp)
File "/usr/lib/mailman/Mailman/Handlers/ToDigest.py",
line 306, in send_i18n_digests
msg = scrubber(mlist, msg)
File "/usr/lib/mailman/Mailman/Handlers/Scrubber.py",
line 227, in process
url = save_attachment(mlist, part, dir,
filter_html=False)
File "/usr/lib/mailman/Mailman/Handlers/Scrubber.py",
line 445, in save_attachment
fp = open(path, 'w')
IOError: [Errno 36] File name too long:
'/var/lib/mailman/archives/private/xx/attachments/20050915/6cfa4267/buglist.cgiquery_formatadvancedshort_desc_typeallwordssubstrshort_desccomponentXXlong_desc_typesubstringlong_descbug_file_loc_typeallwordssubstrbug_file_locbug_statusNEWbug_statusASSIGNEDbug_statusREOPENEDemailtype1substringemail1emailassigned_to21emailreporter21emailcc21emailtype2substringemail2bugidtypeincludebug_idvoteschfieldfromchfieldtoNowchfieldvaluefield0-0-0nooptype0-0-0noopvalue0-0-0orderbugs.html'
Logged In: YES
user_id=75166
Upgrading to MM 2.1.6 and setting the configuration variable
mm_cfg.SCRUBBER_DONT_USE_ATTACHMENT_FILENAME = True
might avoid this problem