[Mailman-Users] Uncaught runner exception: 'utf8' codeccan'tdecode bytes in position 1-4: invalid data

Aliet Santiesteban Sifontes alietss at yahoo.com
Mon Sep 12 16:32:20 CEST 2005


Mark, I found the problematic email, look at this:
...more mail data here
--TB36FDmn/VVEgNH/
Content-Type: application/msword
Content-Disposition: attachment;
       
filename*=utf-8''C%F3mo%20montar%20un%20servidor%20Samba%20PDC%20en%20una%20red%20de%20m%E1quinas%20MS%20Windows%20XP%
Content-Transfer-Encoding: base64

...more mail data here
--- Mark Sapiro <msapiro at value.net> wrote:

> Aliet Santiesteban Sifontes wrote:
> 
> >Thank's Mark, how could I find the bad message,
> 
> 
> You have to look through the digest.mbox file and
> find
> Content-Disposition: headers. Typically, such a
> header might look like
> 
> Content-Disposition: attachment;
> 	filename="Some_name.ext"
> 
> In your case, the value of the filename= will look
> garbled.
> 
> 
> >I'm
> >worried because If I can make the list work again,
> I
> >have the risk this happens again, is there any
> patch
> >for this??. I think that this can be a potencial
> dos
> >attack to other lists on the net.
> 
> 
> There is no patch that I know of. The actual error
> occurs in the Python
> email library, not in Mailman. The code has changed
> between Mailman
> 2.1.5 and 2.1.6, but not in a way that I think would
> avoid the
> exception.
> 
> You could try replacing the line
> 
>     fnext =
> os.path.splitext(msg.get_filename(''))[1]
> 
> in /var/lib/mailman/Mailman/Handlers/Scrubber.py
> with
> 
>     try:
>         fnext =
> os.path.splitext(msg.get_filename(''))[1]
>     except UnicodeDecodeError:
>         fnext = ''
> 
> --
> Mark Sapiro <msapiro at value.net>       The highway is
> for gamblers,
> San Francisco Bay Area, California    better use
> your sense - B. Dylan
> 
> 



	
		
______________________________________________________ 
Yahoo! for Good 
Donate to the Hurricane Katrina relief effort. 
http://store.yahoo.com/redcross-donate3/ 




More information about the Mailman-Users mailing list