From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24072 invoked from network); 15 Feb 2002 12:51:15 -0000 Received: from unknown (HELO fencepost.gnu.org) (199.232.76.164) by sources.redhat.com with SMTP; 15 Feb 2002 12:51:15 -0000 Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16bhpV-0004gm-00; Fri, 15 Feb 2002 07:51:09 -0500 Received: from gnats by fencepost.gnu.org with local (Exim 3.33 #1 (Debian)) id 16bhoD-0004dJ-00; Fri, 15 Feb 2002 07:49:49 -0500 From: Andrew.Gray@platypuspartners.com To: pdm-gnats@zamazal.org,gnats-prs@gnu.org,bug-gnats@gnu.org Reply-To: Andrew.Gray@platypuspartners.com Subject: gnats/344: Space before names in notify field of categories file result in failure to notify Message-Id: Sender: gnats-prs-admin@gnu.org Errors-To: gnats-prs-admin@gnu.org X-BeenThere: gnats-prs@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Copies of bug tracking system messages List-Archive: Date: Fri, 15 Feb 2002 04:51:00 -0000 X-SW-Source: 2002-q1/txt/msg00063.txt.bz2 >Number: 344 >Category: gnats >Synopsis: Space before names in notify field of categories file result in failure to notify >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Feb 15 07:49:49 -0500 2002 >Originator: Andrew Gray >Release: 3.999.1 >Organization: >Environment: Intel, Linux 2.4.2-2 >Description: If a space appears before a name in the notify field of the categoried file this can result in that person not being notified of the submission of a PR. The problem occurs when the name is not a full email address but a name in the responsible file. >How-To-Repeat: Add or edit the following line to the categories file: test:*Test Category:gnats-admin:userone, usertwo Add the following lines to the responsible file: userone:User number one: usertwo:User number tow: (subtituting different valid email addresses) Submit a PR in the test category. The userone email address will receive the notification but the usertwo email address will not. Edit the categories file to this: test:*Test Category:gnats-admin:userone,usertwo Submit another PR in the test category, the usertwo email will receive the notification. >Fix: Apply the attached patch. It changes the code to ignore leading spaces when extracting names from a list. A simple workaround is to remove leading spaces from the categories file. >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="patchfile.out" Content-Disposition: inline; filename="patchfile.out" Index: mail.c =================================================================== RCS file: /cvsroot/gnats/gnats/gnats/mail.c,v retrieving revision 1.16 diff -u -r1.16 mail.c --- mail.c 17 Oct 2001 17:04:53 -0000 1.16 +++ mail.c 15 Feb 2002 09:33:44 -0000 @@ -179,9 +179,12 @@ getOneAddress (const char **addrPtr) { const char *addr = *addrPtr; - const char *addrStart = addr; + const char *addrStart; char *res; + while (*addr == ' ') + addr++; + addrStart = addr; while (*addr != ',' && *addr != '\0') { char nextc = '\0'; _______________________________________________ Gnats-prs mailing list Gnats-prs@gnu.org http://mail.gnu.org/mailman/listinfo/gnats-prs