In wanderlust, if an attachment has an image/*
content type, the image will be properly displayed in the message buffer. For example ...
Content-Type: image/jpeg; name="foobar.jpg"
However, some emails arrive with their attachment's content type set to application/octet-stream
, even though the attachment is an image, and wanderlust will not display these images in the message buffer. For example ...
Content-Type: application/octet-stream; name="foobar.jpg"
Is there any way to configure wanderlust so that it uses the name
attribute to determine that an octet stream represents an image, so it can be displayed in the message buffer?
(ctree-set-calist-strictly ...)
ctree-set-calist-strictly
seems to ignore thename="..."
attribute inContent-Type
. Actually, the entire MIME parsing system undersemi
seems to ignore that attribute ... unless I'm missing something.(ctree-set-calist-strictly 'mime-preview-condition '((body . visible) (body-presentation-method . mime-display-text/plain)))
After commenting out that section, I was able to use(ctree-set-calist-strictly 'mime-preview-condition '((type . application) (subtype . pdf) (body . visible) (body-presentation-method . mime-display-image) (image-format . pdf)))
Perhaps the same section of code that I commented out also affects you?semi/mime-*.el
stuff, I realized that I could do what I want by modifying themime-entity-situation
function. Your pointing me toctree-set-calist-strictly
got me onto the right track, so thank you!