~ubuntu-branches/debian/stretch/alpine/stretch

« back to all changes in this revision

Viewing changes to contrib/utils/sendit.sh

  • Committer: Bazaar Package Importer
  • Author(s): Asheesh Laroia
  • Date: 2007-02-17 13:17:42 UTC
  • Revision ID: james.westby@ubuntu.com-20070217131742-99x5c6cpg1pbkdhw
Tags: upstream-0.82+dfsg
ImportĀ upstreamĀ versionĀ 0.82+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
#
 
3
# $Id:$
 
4
#
 
5
#            T H E    P I N E    M A I L   S Y S T E M
 
6
#
 
7
#   Mike Seibel
 
8
#   Networks and Distributed Computing
 
9
#   Computing and Communications
 
10
#   University of Washington
 
11
#   Administration Building, AG-44
 
12
#   Seattle, Washington, 98195, USA
 
13
#   Internet: mikes@CAC.Washington.EDU
 
14
#
 
15
#   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
 
16
#
 
17
#
 
18
#   Pine and Pico are registered trademarks of the University of Washington.
 
19
#   No commercial use of these trademarks may be made without prior written
 
20
#   permission of the University of Washington.
 
21
#
 
22
#   Pine, Pico, and Pilot software and its included text are Copyright
 
23
#   1989-1996 by the University of Washington.
 
24
#
 
25
#   The full text of our legal notices is contained in the file called
 
26
#   CPYRIGHT, included with this distribution.
 
27
#
 
28
 
 
29
 
 
30
#
 
31
#  Simple script to expedite mail posting at the expense of timely
 
32
#  error reporting and 8BITMIME support.
 
33
#
 
34
# NOTE: If for any reason POSTFILE below is created on an nfs mounted
 
35
#       file system, the trap statement below must get removed or
 
36
#       altered, and the last line must get replaced with:
 
37
#
 
38
#       ( ${POSTTOOL} ${POSTARGS} < ${POSTFILE} ; rm -f ${POSTFILE} ) &
 
39
#
 
40
 
 
41
POSTFILE=/tmp/send$$
 
42
POSTTOOL=/usr/lib/sendmail
 
43
POSTARGS="-oi -oem -t"
 
44
 
 
45
umask 077
 
46
trap "rm -f ${POSTFILE}; exit 0" 0 1 2 13 15
 
47
 
 
48
cat > ${POSTFILE}
 
49
${POSTTOOL} ${POSTARGS} < ${POSTFILE} &