Could be
```
if p.mime_type == 'message/rfc822'
```