[Mailman-Developers] [ mailman-Bugs-669081 ] Major attachment handling bug!

SourceForge.net noreply at sourceforge.net
Sun Jan 19 05:18:13 EST 2003


Bugs item #669081, was opened at 2003-01-16 15:46
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=669081&group_id=103

Category: Pipermail
Group: 2.1 (stable)
Status: Open
Resolution: None
Priority: 9
Submitted By: Daniel Buchmann (avalon)
Assigned to: Barry A. Warsaw (bwarsaw)
Summary: Major attachment handling bug!

Initial Comment:
Attachments are not handled correctly.
Attached to this bug report is an example email in a mbox file. 
How to reproduce:
1. create a list called "clasohlson"
2. copy this mbox file to the archive mbox file
3. run bin/arch for the list
4. look at the resulting archive

I will post a followup which will contain the resulting html file I got when 
doing this.


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

>Comment By: Daniel Buchmann (avalon)
Date: 2003-01-19 14:18

Message:
Logged In: YES 
user_id=184577

Applied cleanly, and now there is only one problem left! :D
I believe Mailman is supplying the wrong MIME type for the .doc file when 
the archive is private. Thus, the webbrowser just displays the raw file 
instead of launching an application that can handle it correctly. I changed 
the archive to public, and the file was displayed correctly. 
Thanks for your quick fix so far, this has really helped a lot! (The users of 
the particular list were depending heavily on the archive for the list, and 
considered the list completely unuseable without attachments available in 
the archive.)

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

Comment By: Tokio Kikuchi (tkikuchi)
Date: 2003-01-19 01:57

Message:
Logged In: YES 
user_id=67709

I have updated the patch. Please try.
(Patch ID 670167)



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

Comment By: Daniel Buchmann (avalon)
Date: 2003-01-18 17:54

Message:
Logged In: YES 
user_id=184577

Sorry, forget my last comment, the attachment was just fine. My mistake.
But attachment naming is still a problem.

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

Comment By: Daniel Buchmann (avalon)
Date: 2003-01-18 17:49

Message:
Logged In: YES 
user_id=184577

Check also the attached "attachment_error.mbox". It contains a single message, 
with a MS Word document that becomes completely scrambled after going 
through pipermail...

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

Comment By: Daniel Buchmann (avalon)
Date: 2003-01-18 17:18

Message:
Logged In: YES 
user_id=184577

Applied without problems, but gave me the following error when running 
bin/arch (not on the mbox I submitted, though):

Traceback (most recent call last):
  File "bin/arch", line 187, in ?
    main()
  File "bin/arch", line 175, in main
    archiver.processUnixMailbox(fp, start, end)
  File "/home/mailman/Mailman/Archiver/pipermail.py", line 544, in 
processUnixMailbox
    m = mbox.next()
  File "/usr/lib/python2.2/mailbox.py", line 33, in next
    return self.factory(_Subfile(self.fp, start, stop))
  File "/home/mailman/Mailman/Mailbox.py", line 79, in scrubber
    return mailbox.scrub(msg)
  File "/home/mailman/Mailman/Mailbox.py", line 99, in scrub
    return self._scrubber(self._mlist, msg)
  File "/home/mailman/Mailman/Handlers/Scrubber.py", line 145, in process
    cs = csre.search(part['content-type'])
TypeError: expected string or buffer

The offending message had no "Content-Type:"  field in its header. (It was, 
of course, produced by a Microsoft product... ;)

Some issues from my earlier subimtted example that still needs to be fixed:
1. The attachment file name still becomes ".dot", not ".doc" as it should 
have been.  Also, the reported size is wrong (larger) than the actual file.
2.  "The attachment was scrubbed"  part in the archive web page is still sort 
of "attached" to the message itself, e.g. to the email signature of the user 
that posted the message.

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

Comment By: Tokio Kikuchi (tkikuchi)
Date: 2003-01-18 07:03

Message:
Logged In: YES 
user_id=67709

Please try this patch.
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=670167&group_id=103
(Patch ID 670167)


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

Comment By: Daniel Buchmann (avalon)
Date: 2003-01-16 17:29

Message:
Logged In: YES 
user_id=184577

-changing priority and assignment-

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

Comment By: Daniel Buchmann (avalon)
Date: 2003-01-16 16:31

Message:
Logged In: YES 
user_id=184577

And here is the html file in english. Notice the difference. Lots of garbage (also 
called mojibake?)
;)

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

Comment By: Daniel Buchmann (avalon)
Date: 2003-01-16 16:28

Message:
Logged In: YES 
user_id=184577

Here is the generated html page for the email, if list language is set to 
norwegian.

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

Comment By: Daniel Buchmann (avalon)
Date: 2003-01-16 16:26

Message:
Logged In: YES 
user_id=184577

Sorry, my web browser hung after submitting the bug, and I had to go offfline 
in a hurry. Trying again.... :)

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

Comment By: Barry A. Warsaw (bwarsaw)
Date: 2003-01-16 16:07

Message:
Logged In: YES 
user_id=12800

There was no attachment, are you sure you clicked the
checkbox? :(

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

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



More information about the Mailman-Developers mailing list