``This message contains an HTML formatted message but your email client does not support the display of HTML. Please view this message in a different mail client or forward this email to a web-based mail system.''
or
``No text version was provided''
which are not helpful for mail readers who strictly prefer plain text messages.
ifpseudoplaintext scans the main body and all attachments for MIME type declarations. If no ``text/plain'' component is found, ifpseudoplaintext exits 100. If any ``text/plain'' parts are found that seem to contain real text, ifpseudoplaintext exits 100. However, if all ``text/plain'' parts are empty or contain just pseudo contents as above, ifpseudoplaintext exits 0.
In short, ifpseudoplaintext rejects all messages that have ``text/plain'' components but all of them contain just pseudo contents.
|bouncesaying 'Sorry, I found no real plain text!' ifpseudoplaintext