Sto usandolinux mail <file.log ha Content-Type: application/octet-stream (un allegato noname in Gmail)
mail -s "here is a log file" "[email protected]" < log/logfile.log
che l'abitudine di venire attraverso con le intestazioni:
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Ma ora i file sono più lunghe che sto ricevendo gli allegati noname perché con questo:
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64
Quindi, se tutto il resto fallisce, controllare il manuale 012....
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 . . .
Nessuna di queste opzioni sembra utile così come posso forzare Content-Type: text/plain
?
tr -cd '\ 11 \ 12 \ 15 \ 40- \ 176 '
KCD
Avevo notato quel commento sui tipi di mime. Grazie per i vostri soluzioni alternative, ognuna delle quali funzionerebbe benissimo – KCD
Grazie. Usare mutt è la soluzione più semplice. –