summaryrefslogtreecommitdiff
path: root/mail/adcomplain/files/patch-aa
blob: 42d2bee6e2f7c268f1e390d2bba6c9dfc7e84f34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
*** adcomplain.pl.orig	Fri Nov 14 19:36:55 1997
--- adcomplain.pl	Fri Nov 14 19:38:44 1997
***************
*** 1,3 ****
--- 1,4 ----
+ #!/usr/bin/perl
  #! /bin/sh -- # -*- perl -*-
  # first line invokes sh.  Some systems may need to refer to perl directly, i.e.:
  
***************
*** 7,14 ****
  # allows perl to be _anywhere_ in the user's path.  The intent is to reduce
  # the need to edit this file.
  
! eval 'exec perl $0 ${1+"$@"}'
! if 0;  # tee hee! This is on a separate line, so /bin/sh never sees it.
  
  #-----------------------------------------------
  # DESCRIPTION
--- 8,15 ----
  # allows perl to be _anywhere_ in the user's path.  The intent is to reduce
  # the need to edit this file.
  
! #eval 'exec perl $0 ${1+"$@"}'
! #if 0;  # tee hee! This is on a separate line, so /bin/sh never sees it.
  
  #-----------------------------------------------
  # DESCRIPTION
***************
*** 255,261 ****
  
  # this is the name of the mail utility (see sendmail(8) man page)
  # type "/bin/which sendmail" to find out where sendmail is on your system
! $mailcmd = "/usr/lib/sendmail -t";
  
  # this is a list of domain names for your system (e.g., "compuserve.com")
  # Names in this list are considered "friendly".  Including your own system
--- 256,262 ----
  
  # this is the name of the mail utility (see sendmail(8) man page)
  # type "/bin/which sendmail" to find out where sendmail is on your system
! $mailcmd = "/usr/sbin/sendmail -t";
  
  # this is a list of domain names for your system (e.g., "compuserve.com")
  # Names in this list are considered "friendly".  Including your own system
***************
*** 423,429 ****
    }
  
  # Make sure critical messages are seen
! if ($poster eq "" || $complain_to eq "") {
    print "Press enter to continue.... ";
    $ans = <STDIN>;
    }
--- 424,430 ----
    }
  
  # Make sure critical messages are seen
! if (!$quiet && ($poster eq "" || $complain_to eq "")) {
    print "Press enter to continue.... ";
    $ans = <STDIN>;
    }
***************
*** 516,521 ****
--- 517,523 ----
  close TEXTFILE;
  $response = ""; # garbage collection
  
+ if (!$quiet) {
  ## print copy of message on terminal
  print "\n";
  $pager = $ENV{"PAGER"};
***************
*** 550,555 ****
--- 552,561 ----
    } # for
  
  print "\n";
+ } else {
+   system "$mailcmd <$tempname"; # Unix dependent
+   print "sent\n";
+ }
  unlink $tempname;
  close STDIN;
  exit 0;
***************
*** 2032,2038 ****
      "0200", "EET, MET DST, METDST, MEST, MESZ, SST, FST, O",
  				# Middle Europe Daylight
  				# Swedish Summer Time, French Summer Time
!     "0300", "EET DST, IST, BT, P", # Turkey, Israel
      "0330", "IT",		# Iran?
      "0400", "IDT, MSD, ZP4, Q",
      "0500", "ZP5, R",		# USSR Zone 4
--- 2038,2044 ----
      "0200", "EET, MET DST, METDST, MEST, MESZ, SST, FST, O",
  				# Middle Europe Daylight
  				# Swedish Summer Time, French Summer Time
!     "0300", "EET DST, IST, MSK, BT, P", # Turkey, Moscow, Israel
      "0330", "IT",		# Iran?
      "0400", "IDT, MSD, ZP4, Q",
      "0500", "ZP5, R",		# USSR Zone 4