mysociety / alaveteli

Provide a Freedom of Information request system for your jurisdiction
https://alaveteli.org
Other
389 stars 195 forks source link

Email with PDF attachment produces error on parsing #3667

Open crowbot opened 7 years ago

crowbot commented 7 years ago

Error is:

FAILED ActsAsXapian.update_index job [id] main body text more than 1 MB, need to implement clipping like for attachment text, or there is some other MIME decoding problem or similar model InfoRequestEvent id [id]

Looks like it's not recognising the PDF. The error is caused by incoming message 9996 on IPV. I've manually set the body text for this email to blank and forwarded a version parsed by my local mail client to the site admin for upload.

crowbot commented 7 years ago

There are several more examples of what looks like the same problem - e.g. messages 10249, 10218. I think we should probably bump up the importance of this a bit.

garethrees commented 6 years ago

Just had another of these.

e = InfoRequestEvent.find(EVENT_ID)
m = e.incoming_message
m.cached_attachment_text_clipped = ''
m.cached_main_body_text_folded = '[MIME decoding problem]'
m.cached_main_body_text_unfolded = '[MIME decoding problem]'
m.save
garethrees commented 6 years ago

Related to https://github.com/mysociety/alaveteli/issues/4412.