Filter out Xref header and sign Supersedes
This commit is contained in:
parent
15bc405555
commit
63a8a53797
1 changed files with 10 additions and 4 deletions
14
sign.sh
14
sign.sh
|
@ -6,8 +6,14 @@
|
|||
# Heiko Schlichting (heiko@fu-berlin.de)
|
||||
#
|
||||
# $Log$
|
||||
# Revision 1.1 2003/07/06 18:58:06 eagle
|
||||
# Import current version from ftp.isc.org /pub/pgpcontrol.
|
||||
# Revision 1.2 2011/08/31 20:16:07 eagle
|
||||
# Filter out Xref header and sign Supersedes
|
||||
#
|
||||
# Revision 1.10 1996/09/15 02:19:04 heiko
|
||||
# Also sign Supersedes
|
||||
#
|
||||
# Revision 1.9 1996/08/09 23:31:43 heiko
|
||||
# Filtering Xref header
|
||||
#
|
||||
# Revision 1.8 1996/08/09 22:25:27 heiko
|
||||
# ignore case in headers but keep the right case to sign
|
||||
|
@ -90,7 +96,7 @@ while [ $# -gt 0 ]; do
|
|||
$GAWK -F: '
|
||||
BEGIN{
|
||||
# Which headers should be signed?
|
||||
headernames="Subject:Control:Message-ID:Date:From:Sender:Newsgroups:Approved:Followup-To"
|
||||
headernames="Subject:Control:Message-ID:Date:From:Sender:Newsgroups:Approved:Followup-To:Supersedes"
|
||||
split(headernames,header)
|
||||
IGNORECASE=1
|
||||
body=0
|
||||
|
@ -143,7 +149,7 @@ while [ $# -gt 0 ]; do
|
|||
skip=0
|
||||
version="unknown"
|
||||
# Which header should be filtered?
|
||||
filternames="X-PGP-Sig:NNTP-Posting-Host:NNTP-Posting-User:Path:To:Cc:X-Access:Lines:X-Newsreader"
|
||||
filternames="X-PGP-Sig:NNTP-Posting-Host:NNTP-Posting-User:Path:To:Cc:X-Access:Lines:X-Newsreader:Xref"
|
||||
split(filternames,filter,":")
|
||||
IGNORECASE=1
|
||||
while ((getline header < artfile) >0) {
|
||||
|
|
Loading…
Reference in a new issue