[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: backport hylafax 4.1



Le 12/11/01, georges mariano a ecrit:

> ceci dit, kkun connait une commande "en ligne" pour envoyer un fichier
> attaché à un mail...
> un truc pour eviter un truc style "| mail" qui mets le fichier dans
> le corps du mail ??

Ch'ti script, pas de moi (merci Phil :) ):

evalliet@arf /usr/local/sbin$ cat caikofrui
#!/bin/sh -e
ct="$1"
to="$2"
sub="$3"
txt="$4"
bound="AbCdE"

shift
shift
shift
shift

( echo Mime-Version: 1.0 ; \
  echo To: "$to" ; \
  echo Subject: "$sub" ; \
  echo 'Content-type: MULTIPART/MIXED; BOUNDARY="'$bound'"'
  echo
  echo --"$bound"
  echo Content-Type: TEXT/PLAIN;
  echo ""
  echo "$txt"
  echo ""
  echo --"$bound"
  echo Content-type: "$ct" ; \
  echo Content-Transfer-Encoding: base64 ;
  echo "" ; \
  mimencode -b ) | splitmail -d $*





Reply to: