]> git.pld-linux.org Git - packages/john.git/blob - john-mailer.patch
- tabs in preamble
[packages/john.git] / john-mailer.patch
1 --- john-1.7/run/mailer.orig    1998-12-02 00:08:50.000000000 +0100
2 +++ john-1.7/run/mailer 2006-02-18 15:08:59.181310750 +0100
3 @@ -10,10 +10,11 @@
4  fi
5  
6  # There's no need to mail users with these shells
7 -SHELLS=-,/bin/false,/dev/null,/bin/sync
8 +SHELLS=-,/bin/false,/dev/null,/bin/sync,/bin/true,/sbin/shutdown
9  
10  # Look for John in the same directory with this script
11 -DIR="`echo "$0" | sed 's,/[^/]*$,,'`"
12 +#DIR="`echo "$0" | sed 's,/[^/]*$,,'`"
13 +DIR="/usr/bin"
14  
15  # Let's start
16  $DIR/john -show "$1" -shells:$SHELLS | sed -n 's/:.*//p' |
17 @@ -21,10 +22,13 @@
18         SENT=0
19  
20         while read LOGIN; do
21 -               echo Sending mail to "$LOGIN"...
22 +               echo Sending mail to / Wysylam maila do "$LOGIN"...
23  
24  # You'll probably want to edit the message below
25 -               mail -s 'Bad password' "$LOGIN" << EOF
26 +               mail -s 'Bad password / Zle haslo' "$LOGIN" << EOF
27 +--------------------------------------------------------------------------
28 +[EN]
29 +
30  Hello!
31  
32  Your password for account "$LOGIN" is insecure. Please change it as soon
33 @@ -32,6 +36,17 @@
34  
35  Yours,
36         Password Checking Robot.
37 +--------------------------------------------------------------------------
38 +[PL]
39 +
40 +Witaj!
41 +
42 +Twoje haslo dla konta "$LOGIN" nie jest bezpieczne. Prosze zmien
43 +je tak szybko jak to jest mozliwe.
44 +
45 +Twoj,
46 +       Robot sprawdzajacy hasla.
47 +--------------------------------------------------------------------------
48  EOF
49  
50                 SENT=$(($SENT+1))
This page took 0.126108 seconds and 3 git commands to generate.