On 05Aug2019 19:29, Bob Goodwin <bobgoodwin@xxxxxxxxxxx> wrote:
This was from a latest model iPhone ...
The VCARD is this bit:
--__CONTENT_64564_PART_BOUNDARY__33243242__
Content-Type: text/x-vcard; charset=utf-8;
name="MAISENBAC.vcf"
Content-ID: <0>
Content-Disposition: attachment;
filename="MAISENBAC.vcf"
Content-Location: MAISENBAC.vcf
Content-Transfer-Encoding: base64
QkVHSU46VkNBUkQNClZFUlNJT046My4wDQpQUk9ESUQ6LS8vQXBwbGUgSW5jLi8vaVBob25l
IE9TIDEyLjMuMS8vRU4NCk46TUFJU0VOQkFDSEVSO0RyLiA7OzsNCkZOOiBEci4gICBNQUlT
RU5CQUNIRVIgDQpPUkc6VmV0ZXJpbmFyeSBIZWFydCBDYXJl4oCUIENhcmRpb2xvZ2lzdCBE
b2c7DQpURUw7dHlwZT1XT1JLO3R5cGU9Vk9JQ0U7dHlwZT1wcmVmOig3NTcpIDYwNS0xNjEw
DQpFTkQ6VkNBUkQNCg==
so it is using "text/x-vcard".
What does Thunderbird (it was Thunderbird, yes?) do with that message?
Also, does saving the attachment, and then opening it from whatever file
browser you use do?
These things may be different:
Thunderbird (or any mail programme) will use the Content-Type to decide
how to handle the attachment; the filename is irrelevant in this
circumstance. If it doesn't recognise "text/x-vard" specially it might
treat it as text.
By contrast, the file browser will look at the file extension. Ideally
it backtracks from that via the /etc/mime.types file to infer a data
type and from that to decide what application to invoke.
AFAIR there is also a freedesktop standard for file xattrs to express
the mime type of the file. _If_ Thunderbird utilises this, it would
write the mime type to an extended attribute when you save the
attachment, and _if_ your file browser honours that xattr it should
prefer that over guessing from the file extension.
Finally, _nothing_ should be sniffing the file _data_ to decide what to
do; everything should be honouring how the file is labelled: via its
file extension or the xattr if provided with the file.
Cheers,
Cameron Simpson <cs@xxxxxxxxxx>
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx