Проблема с MS Outlook

User avatar
Uzito
Уже с Приветом
Posts: 8230
Joined: 06 Feb 2002 10:01
Location: NJ, USA

Проблема с MS Outlook

Post by Uzito »

Повадились у нас умельцы рассылать репорты из аппликухи по емейлу с длинными именами файлов. В гугле мейл все нормально, а в аутлуке получатель видит фигу.

Вариант 1.
report name: super_long_and_super_descriptive_file_name_with_a_lot_of_information_about_the_content_of_the_report_and_other_useless_stuff_there_123.pdf

Один получатель в gmail видит полное имя репорта. Другой получатель в outlook видит "CompanyName.dat". В оригинальном тексте сообщения аттачмент описан вот так:

Code: Select all

------=_Part_16266_1154935258.1541522589132
Content-Type: application/octet-stream; name="super_long_and_super_descriptive_file_name_with_a_lot_of_information_about_the_content_of_the_report_and_other_useless_stuff_there_123.pdf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="super_long_and_super_descriptive_file_name_with_a_lot_of_information_about_the_content_of_the_report_and_other_useless_stuff_there_123.pdf"
Content-Description: CompanyName
------=_Part_16266_1154935258.1541522589132--
Пользователь gmail форвардит емейл пользователю аутлука. Получатель в аутлуке видит полное имя репорта. В теле сообщения аттачмент описан вот так:

Code: Select all

--0000000000000b209f057a01aac2
Content-Type: application/pdf; name="super_long_and_super_descriptive_file_name_with_a_lot_of_information_about_the_content_of_the_report_and_other_useless_stuff_there_123.pdf"
Content-Disposition: attachment; filename="super_long_and_super_descriptive_file_name_with_a_lot_of_information_about_the_content_of_the_report_and_other_useless_stuff_there_123.pdf"
Content-Transfer-Encoding: base64
Content-ID: <166e9e52241b345aafe1>
X-Attachment-Id: 166e9e52241b345aafe1
--0000000000000b209f057a01aac2--
Вариант 2
report name: CompanyName.pdf

Оба получателя и в gmail и в аутлуке видят CompanyName.pdf.

Code: Select all

------=_Part_16303_1911088317.1541523368281
Content-Type: application/octet-stream; name=CompanyName.pdf
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=CompanyName.pdf
Content-Description: CompanyName
------=_Part_16303_1911088317.1541523368281—
Что делать, где копать?
User avatar
Uzito
Уже с Приветом
Posts: 8230
Joined: 06 Feb 2002 10:01
Location: NJ, USA

Re: Проблема с MS Outlook

Post by Uzito »

Похоже нужно программерам вставить пистон. Должны были слать емейлы с
Content-Type: application/pdf;

Return to “Вопросы и новости IT”