pazz / alot

Terminal-based Mail User Agent
GNU General Public License v3.0
697 stars 165 forks source link

` extract_body_part` can receive empty strings and throws exceptions when it does #1604

Open lakinwecker opened 2 years ago

lakinwecker commented 2 years ago

Basically https://github.com/pazz/alot/blob/master/alot/db/utils.py#L489 returns an empty string in some circumstances and that is passed into here https://github.com/pazz/alot/blob/master/alot/db/utils.py#L499 which causes an exception. installing the service_identity module did not solve it. Basically I have some emails where the only body part is an application/zip body part