From owner-freebsd-doc Tue Mar 5 8:20:17 2002 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0230D37B417 for ; Tue, 5 Mar 2002 08:20:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g25GK0398025; Tue, 5 Mar 2002 08:20:00 -0800 (PST) (envelope-from gnats) Received: from relay3-gui.server.ntli.net (relay3-gui.server.ntli.net [194.168.4.200]) by hub.freebsd.org (Postfix) with ESMTP id 0110037B402 for ; Tue, 5 Mar 2002 08:17:58 -0800 (PST) Received: from pc4-card4-0-cust162.cdf.cable.ntl.com ([80.4.14.162] helo=rhadamanth.private.submonkey.net ident=mailnull) by relay3-gui.server.ntli.net with esmtp (Exim 3.03 #2) id 16iHdU-0002Vq-00 for FreeBSD-gnats-submit@freebsd.org; Tue, 05 Mar 2002 16:17:56 +0000 Received: from setantae by rhadamanth.private.submonkey.net with local (Exim 3.35 #1) id 16iHdI-0001D3-00 for FreeBSD-gnats-submit@freebsd.org; Tue, 05 Mar 2002 16:17:44 +0000 Message-Id: Date: Tue, 05 Mar 2002 16:17:44 +0000 From: Ceri Reply-To: Ceri To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: docs/35563: [Patch] Stop asking people to give us their postal address for no reason Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 35563 >Category: docs >Synopsis: [Patch] Stop asking people to give us their postal address for no reason >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Mar 05 08:20:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Ceri >Release: FreeBSD 4.5-STABLE i386 >Organization: >Environment: System: FreeBSD rhadamanth.private.submonkey.net 4.5-STABLE FreeBSD 4.5-STABLE #0: Thu Feb 28 17:50:57 GMT 2002 setantae@rhadamanth.private.submonkey.net:/usr/obj/usr/src/sys/RHADAMANTH i386 >Description: The newsletter is dead (jkh confirmed this to me). http://www.freebsd.org/publish.html still encourages people to visit http://www.freebsd.org/register.html and enter their details to receive the next edition of the newsletter by post. This is never going to happen, and nik@FreeBSD.org tells me that he knows of no reason why this information should continue to be collected. This patch kills mention of registering for the newsletter, and replaces the registration page with a simple form that merely subscribes and/or unsubscribes users to the announce and security-notification lists. Ceri >How-To-Repeat: Visit http://www.FreeBSD.org/publish.html and try and sign up to receive the newsletter. >Fix: diff -ru www.orig/en/cgi/reg.cgi www/en/cgi/reg.cgi --- www.orig/en/cgi/reg.cgi Mon Apr 3 09:45:51 2000 +++ www/en/cgi/reg.cgi Tue Mar 5 15:09:32 2002 @@ -4,6 +4,9 @@ # # $FreeBSD: www/en/cgi/reg.cgi,v 1.7 2000/04/03 08:45:51 phantom Exp $ +sub do_header; +sub close_body; + $mailprog = '/usr/sbin/sendmail'; print "Content-type: text/html\n\n"; @@ -45,63 +48,66 @@ $value . -# Open the mail file and write to it -open (MAIL, "|$mailprog $recipient") || die "$mailprog not available.\n"; -print MAIL "From: $FORM{'emaila'}\n"; -print MAIL "Subject: FreeBSD Registration from $FORM{'emaila'}\n\n"; - -print MAIL "\n"; -print MAIL "$FORM{'First'}\n"; -print MAIL "$FORM{'Last'}\n"; -print MAIL "$FORM{'emaila'}\n"; -print MAIL "
$FORM{'Address'}
\n"; -print MAIL "$FORM{'City'}\n"; -print MAIL "$FORM{'State'}\n"; -print MAIL "$FORM{'Zip'}\n"; -print MAIL ""; -print MAIL " \n"; -print MAIL "$FORM{'version'}\n"; -print MAIL "
\n"; -print MAIL "\n"; -close (MAIL); +my ($sub_announce, $sub_security, $unsub_announce, $unsub_security) = (); +$sub_announce = 1 if $FORM{"announce"} eq "yes"; +$unsub_announce = 1 if $FORM{"announce"} eq "no"; +$sub_security = 1 if $FORM{"security-notifications"} eq "yes"; +$unsub_security = 1 if $FORM{"security-notifications"} eq "no"; # Open the mail file and write to it # if user is subscribing to maillist -if ($FORM{"announce"} eq "yes") { +# which they should be, otherwise why did they hit submit ? +if ( $sub_announce || $sub_security || $unsub_announce || $unsub_security ) { open (MAIL, "|$mailprog $sub_recipient") || die "$mailprog not available.\n"; print MAIL "From: $FORM{'emaila'}\n"; -print MAIL "Subject: subscribe freebsd-announce $FORM{'emaila'}\n\n"; +print MAIL "Subject: \n\n"; -print MAIL "subscribe freebsd-announce $FORM{'emaila'}\n"; +$sub_announce and print MAIL "subscribe freebsd-announce $FORM{'emaila'}\n"; +$unsub_announce and print MAIL "unsubscribe freebsd-announce $FORM{'emaila'}\n"; +$sub_security and print MAIL "subscribe freebsd-security-notifications $FORM{'emaila'}\n"; +$unsub_security and print MAIL "unsubscribe freebsd-security-notifications $FORM{'emaila'}\n"; close (MAIL); +} else { + &do_header("No action"); + print "

No action chosen, hence no action taken.

"; + &close_body; + exit; } -print "\n"; -print "\n"; -print "Mail Sent\n"; -print "\n"; -print "\n"; -print " \n"; -print "
\n"; -print "\n"; -print "\n"; -print "\n"; -print "\n"; -print "\n"; -print "\n"; -print "\n"; -print "\n"; -print "\n"; -print "\n"; -print "\n"; -print "\n"; -print "

Thank you, $FORM{'First'} $FORM{'Last'}, for your registration.\n"; -print "
It has been submitted.\n"; -if ($FORM{"announce"} eq "yes") { -print "
As you requested, you have also been subscribed to announce\@FreeBSD.org.\n"; + +&do_header("Subscription processed"); +print "

Thank you, $FORM{'emaila'}, for your submission.\n"; +print "
The request will need to be authenticated; check your mailbox "; +print "for instructions on how to do this.\n"; +&close_body; + +sub do_header { + my $title = @_; + print "\n"; + print "\n"; + print "$title\n"; + print "\n"; + print "\n"; + print " \n"; + print "

\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; } -print "
\n"; -print "\n"; +sub close_body { + print "
\n"; + print "\n"; + print "\n"; +} 1; + diff -ru www.orig/en/publish.sgml www/en/publish.sgml --- www.orig/en/publish.sgml Sat Jan 19 13:03:33 2002 +++ www/en/publish.sgml Tue Mar 5 15:09:24 2002 @@ -498,11 +498,8 @@ WIDTH="150" HEIGHT="194"> This is issue - #1 of the FreeBSD Newsletter, published and distributed free + #1 of the FreeBSD Newsletter, which was published and distributed free of charge by Walnut Creek CDROM. - You can register - to receive it. Submit articles/make comments by sending email to - newsletter@FreeBSD.ORG. @@ -511,11 +508,8 @@ WIDTH="150" HEIGHT="194"> This is issue - #2 of the FreeBSD Newsletter, published and distributed free + #2 of the FreeBSD Newsletter, which was published and distributed free of charge by Walnut Creek CDROM. - You can register - to receive it. Submit articles/make comments by sending email to - newsletter@FreeBSD.ORG. diff -ru www.orig/en/register.sgml www/en/register.sgml --- www.orig/en/register.sgml Fri Jul 13 13:52:11 2001 +++ www/en/register.sgml Tue Mar 5 15:09:18 2002 @@ -7,92 +7,37 @@ &header; -
Register to receive the FreeBSD Newsletter and - subscribe to the announce@FreeBSD.org mailing list.
+
Subscribe to the announce@FreeBSD.org and security-announce@FreeBSD.org mailing lists.
-
+
- - - - - - - - - - - - - - - - +
First Name:
Last Name:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + - - - + +
Email Address:
Address:
City:
Country/U.S. State: Country/Zip Code:
Do you wish to receive FreeBSD related - commercial email? - -
Options for the + announce@FreeBSD.org mailing list:
Subscribe listed email address to the - announce@FreeBSD.org mailing list? - - Subscribe
+ Unsubscribe
Sign up for FreeBSD Newsletter? + Options for the + security-notifications@FreeBSD.org mailing list: Subscribe
+ Unsubscribe

@@ -100,13 +45,6 @@

-

Preview a copy of the newsletter in Adobe - PDF format. A help - file is available to assist you in selecting and using a PDF - viewer.

- &footer; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message