[ mailman-Bugs-1293267 ] Errno 36: filename too long -- stops mail delivery

SourceForge.net noreply at sourceforge.net
Sun Sep 18 00:02:26 CEST 2005


Bugs item #1293267, was opened at 2005-09-16 21:00
Message generated for change (Comment added) made by ppsys
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1293267&group_id=103

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: mail delivery
Group: 2.1 (stable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Andy Riebs (ariebs)
Assigned to: Nobody/Anonymous (nobody)
Summary: Errno 36: filename too long -- stops mail delivery

Initial Comment:
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'



----------------------------------------------------------------------

Comment By: Richard Barrett (ppsys)
Date: 2005-09-17 22:02

Message:
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

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1293267&group_id=103


More information about the Mailman-coders mailing list