File: bug-script.in

package info (click to toggle)
sendmail 8.18.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,496 kB
  • sloc: ansic: 105,736; perl: 7,504; sh: 5,488; makefile: 889
file content (46 lines) | stat: -rw-r--r-- 1,233 bytes parent folder | download | duplicates (7)
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
#!/bin/sh
#-----------------------------------------------------------------------------
# Copyright (c) 1998-@SM_CPYRT@ Richard Nelson.  All Rights Reserved.
#
#   Debian helper function script for Debian Sendmail bug reporting
#     Note: this file supports @SM_MINVERS@ - @SM_MAXVERS@
#
# Notes (to all):
#   *
#
# Notes (to self):
#   *
#
#-----------------------------------------------------------------------------
#
#set -e;
DEBUG=0;

# Announce
printf "Output of $0:\n" >&3;

# Show files in /etc/mail
printf "\nls -alR /etc/mail:\n" >&3;
ls -alR /etc/mail | grep -Eve '~$' >&3;

# Extract the relevant portion of sendmail.conf
if [ -e @sysconfdir@/mail/sendmail.conf ]; then
    printf "\nsendmail.conf:\n" >&3;
    grep -ve '^#' "@sysconfdir@/mail/sendmail.conf" >&3;
    fi;

# Extract the relevant portion of sendmail.mc
if [ -e @sysconfdir@/mail/sendmail.mc ]; then
    printf "\nsendmail.mc:\n" >&3;
    grep -Eve '^(#|dnl|$)' "@sysconfdir@/mail/sendmail.mc" >&3;
    fi;

# Extract the relevant portion of submit.mc
if [ -e @sysconfdir@/mail/submit.mc ]; then
    printf "\nsubmit.mc...\n" >&3;
    grep -Eve '^(#|dnl|$)' "@sysconfdir@/mail/submit.mc" >&3;
    fi;

printf "\n" >&3;

# vim:set ai et sts=4 sw=4 tw=0: