mailfax.sh-qmail
上传用户:weiyuanprp
上传日期:2020-05-20
资源大小:1169k
文件大小:1k
源码类别:

传真(Fax)编程

开发平台:

C/C++

  1. #!/bin/sh
  2. #
  3. #   mailfax - email to fax gateway for qmail.
  4. #
  5. #   This file should be installed as /local/etc/mailfax, and the
  6. #   following changes made to the qmail configuration:
  7. #
  8. #   Add the following to /var/qmail/control/virtualdomains
  9. #       .fax:fax
  10. #
  11. #   Add the following to /var/qmail/alias/.qmail-fax-default
  12. #       | /local/etc/mailfax
  13. #
  14. TMPVAR=${SENDER//`/}
  15. TMPVAR=${TMPVAR//$(/}
  16. SENDER=${TMPVAR//)/}
  17. /local/fax/bin/faxmail | /local/fax/bin/sendfax 
  18.         -f "$SENDER" 
  19.         -d "$EXT2@`/usr/bin/expr "$HOST" : '(.*).fax$'`"