linux mail < file.log содержит содержимое -тип :приложение/октет -поток (безымянное вложение в Gmail)

Я использовал

 mail -s "here is a log file" "person@example.com" < log/logfile.log

Который раньше проходил через заголовки:

User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Но теперь файлы длиннее, я получаю вложения без имени, потому что с этим:

User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64

Итак, если все остальное не удается, обратитесь к руководству man mail...

NAME
       mailx - send and receive Internet mail

SYNOPSIS
       mailx [-BDdEFintv~] [-s subject] [-a attachment ] [-c cc-addr] [-b bcc-addr] [-r from-addr] [-h hops]
              [-A account] [-S variable[=value]] to-addr...

Ни одна из этих опций не кажется полезной, так как я могу заставить Content-Type: text/plain?

14
задан KCD 27 April 2012 в 00:12
поделиться