>> > In case you haven't already tried this, you can manually change the mime
>> > type of the attachment from the compose menu using <edit-type> (bound to
>> > ^T by default), and set it to "text/plain"
>>
>> That does not work for two reasons:
>>
>> - amazon does not recognise the forwarded attachment as "attachment"
>> for some reason
>
> If you forward the email as an attachment (look for mime_forward in
> the manual) you can prevent this.

Strangely enough even when I forward as attachment (text/plain), the
amazon system does not recognise it as an attachment.

I am not sure why.

>> - when I covert from message/rfc822 to text/plain, the whole msg
>> header part gets dumped in.
>
> To prevent this you would have to cut out the headers, which would be
> difficult with simple forwarding.
>
>> > Failing that, saving the mail you want to forward to a file with
>> > extension .txt, then attaching that file to a new mail, will both produce
>> > the desired file extension and automatically set the mime type to
>> > "text/plain" (assuming you have mime.types configured sanely).
>>
>> That works indeed. However it is a painful manual process. Any quick
>> way to automate it?
>
> Write a macro saving the message to a txt and composing a new email
> with the file attached. But be aware, this file will also contain the
> full headers. You would probably need a script to cut out the headers.

That seems to be the way out since I can also convert the text/plain
to mobi or whatever that amazon overlords want. Can you help by
providing a skeleton of a macro? I can try to hook it to a a
perl/python script that removes headers and convert to .mobi etc.

Thanks,
skn

Reply via email to