[Mailman-Users] cron/senddigests - error
Con Wieland
cwieland at uci.edu
Fri Feb 8 22:40:38 CET 2008
So what am I missing. Everything looks good except:
filename*0="[NACS-Staff] Time to order Girl Scout cookie's
if you want
"; filename*1="them.eml"
I removed the ' from cookie's and I still get:
bash-2.05$ ~mailman/cron/senddigests -l nacs-staff
Traceback (most recent call last):
File "/usr/local/mailman/cron/senddigests", line 94, in ?
main()
File "/usr/local/mailman/cron/senddigests", line 86, in main
mlist.send_digest_now()
File "/usr/local/mailman/Mailman/Digester.py", line 60, in
send_digest_now
ToDigest.send_digests(self, mboxfp)
File "/usr/local/mailman/Mailman/Handlers/ToDigest.py", line 132,
in send_digests
send_i18n_digests(mlist, mboxfp)
File "/usr/local/mailman/Mailman/Handlers/ToDigest.py", line 306,
in send_i18n_digests
msg = scrubber(mlist, msg)
File "/usr/local/mailman/Mailman/Handlers/Scrubber.py", line 240,
in process
url = save_attachment(mlist, part, dir)
File "/usr/local/mailman/Mailman/Handlers/Scrubber.py", line 361,
in save_attachment
fnext = os.path.splitext(msg.get_filename(''))[1]
File "/usr/local/mailman/pythonlib/email/Message.py", line 708, in
get_filename
filename = self.get_param('filename', missing, 'content-
disposition')
File "/usr/local/mailman/pythonlib/email/Message.py", line 591, in
get_param
for k, v in self._get_params_preserve(failobj, header):
File "/usr/local/mailman/pythonlib/email/Message.py", line 538, in
_get_params_preserve
params = Utils.decode_params(params)
File "/usr/local/mailman/pythonlib/email/Utils.py", line 337, in
decode_params
charset, language, value = decode_rfc2231(EMPTYSTRING.join(value))
File "/usr/local/mailman/pythonlib/email/Utils.py", line 284, in
decode_rfc2231
charset, language, s = parts
ValueError: unpack list of wrong size
bash-2.05$ ~mailman/cron/senddigests -l nacs-staff
Traceback (most recent call last):
File "/usr/local/mailman/cron/senddigests", line 94, in ?
main()
File "/usr/local/mailman/cron/senddigests", line 86, in main
mlist.send_digest_now()
File "/usr/local/mailman/Mailman/Digester.py", line 60, in
send_digest_now
ToDigest.send_digests(self, mboxfp)
File "/usr/local/mailman/Mailman/Handlers/ToDigest.py", line 132,
in send_digests
send_i18n_digests(mlist, mboxfp)
File "/usr/local/mailman/Mailman/Handlers/ToDigest.py", line 306,
in send_i18n_digests
msg = scrubber(mlist, msg)
File "/usr/local/mailman/Mailman/Handlers/Scrubber.py", line 240,
in process
url = save_attachment(mlist, part, dir)
File "/usr/local/mailman/Mailman/Handlers/Scrubber.py", line 361,
in save_attachment
fnext = os.path.splitext(msg.get_filename(''))[1]
File "/usr/local/mailman/pythonlib/email/Message.py", line 708, in
get_filename
filename = self.get_param('filename', missing, 'content-
disposition')
File "/usr/local/mailman/pythonlib/email/Message.py", line 591, in
get_param
for k, v in self._get_params_preserve(failobj, header):
File "/usr/local/mailman/pythonlib/email/Message.py", line 538, in
_get_params_preserve
params = Utils.decode_params(params)
File "/usr/local/mailman/pythonlib/email/Utils.py", line 337, in
decode_params
charset, language, value = decode_rfc2231(EMPTYSTRING.join(value))
File "/usr/local/mailman/pythonlib/email/Utils.py", line 284, in
decode_rfc2231
charset, language, s = parts
ValueError: unpack list of wrong size
The rest of the filenames all look good.
con
On Feb 8, 2008, at 1:01 PM, Mark Sapiro wrote:
> Con Wieland wrote:
>>
>> Your right on. I found the list but it has has been around for a long
>> time and has a very large archive. Any ideas on how to narrow down
>> the search? I'm not real sure where I'm looking for this.
>
>
> The problem message is in the lists/<listname>/digest.mbox file,
> not in
> the archive (well, it's probably in the archive too, but it's not
> causing a problem there).
>
> You need to open the digest.mbox with an editor that won't rewrap the
> lines (i.e. not a word processor).
>
> You are looking for an RFC 2231 encoded field that will have pieces
> maybe like
>
> filename*0*='us-ascii'en'some_text_including_an_apostrophe'
> filename*1*=or_maybe_an_apostrophe'_in_a_continuation
>
> The parameter may not be filename and the character set and language
> may be empty or other than 'us-ascii'en', but there will be an
> apostrophe somewhere after the first 3.
>
> There may be more than one such, e.g. a filename in one header and a
> name in another.
>
> Remove the extra apostrophes and save the file and it should be OK.
>
> --
> Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
> San Francisco Bay Area, California better use your sense - B. Dylan
>
> ------------------------------------------------------
> Mailman-Users mailing list
> Mailman-Users at python.org
> http://mail.python.org/mailman/listinfo/mailman-users
> Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
> Searchable Archives: http://www.mail-archive.com/mailman-users%
> 40python.org/
> Unsubscribe: http://mail.python.org/mailman/options/mailman-users/
> cwieland%40uci.edu
>
> Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?
> req=show&file=faq01.027.htp
More information about the Mailman-Users
mailing list