public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
* RE: X-GNATS-NOTIFY & the CC list in 4.0
@ 2001-11-18 19:29 Dirk Bergstrom
  2001-11-20 17:52 ` Milan Zamazal
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Dirk Bergstrom @ 2001-11-18 19:29 UTC (permalink / raw)
  To: Paul Traina, help-gnats

> I seem to recall that they were deprecated in the 3.X 
> timeframe because they
> never quite worked right, and we didn't have a great desire 
> to fix them for 4.0.

ahh, that's what i'd suspected.  if only i could remember *where* i came across the idea...

> That said, what are you trying to do?  There may be other 
> better ways to skin this cat.

i was trying to figure out why the "CC these people on PR status email:" field in gnatsweb didn't work.  the answer is "because it's not connected to anything on the back end".

so now the question becomes "should we yank this pseudo-field out of gnatsweb, or add code to gnats?"  my preference would be to whack it out of gnatsweb -- it's a hell of a lot simpler to *remove* code w/o creating bugs than it is to add it.

i propose:

*) in place of x-gnats-notify, add a field to the standard dbconfig called "CC-On-Change-List" (or something like that).
*) change the audit-mail format thusly:
    header {
-	format "Subject: Re: %s/%s\n"
+	format "Subject: Re: %s/%s\nCc: %s\n"
-	fields { "Category" "Number" }
+	fields { "Category" "Number" "CC-On-Change-List" }
    }
*) remove the Cc: and X-GNATS-Notify headers from send-pr, and remove the [-c|--cc] option.
*) remove the code supporting XGN/CC from gnatsweb.

this will give us most of the same functionality, without a bunch of bag-on-the-side support for random headers.  it also gives users the choice of whether or not to have a CC functionality.

what do y'all think?

--
Dirk Bergstrom               dirk@juniper.net
_____________________________________________
Juniper Networks Inc.,          Computer Geek
Tel: 707.433.0564           Fax: 707.433.0769

_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnats

^ permalink raw reply	[flat|nested] 9+ messages in thread
* X-GNATS-NOTIFY & the CC list in 4.0
@ 2001-11-17  9:43 Dirk Bergstrom
  2001-11-17 12:27 ` Paul Traina
  2001-12-21 19:13 ` Dirk Bergstrom
  0 siblings, 2 replies; 9+ messages in thread
From: Dirk Bergstrom @ 2001-11-17  9:43 UTC (permalink / raw)
  To: help-gnats

after much testing and digging around the sources, it appears to me that gnats more or less ignores both the X-GNATS-Notify: and Cc: headers of a PR when sending out state-change messages (the "audit-mail" mail-format).

gnatsweb happily populates and reads XGN & Cc headers, leading one to believe that they are useful, but no matter how i mess around in dbconfig, i can't get gnats to generate mail to the addresses in the Cc or XGN headers.

i've tried adding "cc", "x-gnats-notify", "headers[cc]", "$MailCC", and a couple other things to the to-addresses list in the audit-mail mail-format, with no luck.  i dug thru the sources, and found the code that generates headers, but i haven't been able to decipher the twisty maze of structs, enums and subroutine calls that are used to grab email addresses.   from this (mail.h):

/* These addresses are always mapped through the responsible adm
   file.  */
struct mail_address
{
  /* A fixed name.  */
  char *fixedAddress;
  /* A list of addresses to try--each one is tried in turn until a
     non-empty one is found. */
  FieldList addresses;
};

it looks like the source for mail addresses are all gnats fields, and not headers (or "fixed-address" values from the dbconfig file).  actually, they can also be parameters (like "$EditUserEmailAddr"), but there are a limited set of those, and they don't include cc or xgn.

i vaguely remember reading somewhere that X-GNATS-Notify was deprecated, or just plain didn't work, but i can't find such a thing now.  i've searched the manpages, the *.texi files, and the changelogs, and i can't find any mention of them in 4.0.

so, does anyone know what the deal is with these headers?  if they are unsupported, we should either support them in gnats, or remove them from gnatsweb.  if they are supported, somebody needs to tell me how to get at them in a meaningful way.

thanks.

--
Dirk Bergstrom               dirk@juniper.net
_____________________________________________
Juniper Networks Inc.,          Computer Geek
Tel: 707.433.0564           Fax: 707.433.0769

_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnats

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-05-21  8:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-18 19:29 X-GNATS-NOTIFY & the CC list in 4.0 Dirk Bergstrom
2001-11-20 17:52 ` Milan Zamazal
2001-12-23 14:13   ` Milan Zamazal
2001-12-22 14:45 ` Dirk Bergstrom
2002-05-21  1:55 ` Lars Henriksen
  -- strict thread matches above, loose matches on Subject: below --
2001-11-17  9:43 Dirk Bergstrom
2001-11-17 12:27 ` Paul Traina
2001-12-22  8:16   ` Paul Traina
2001-12-21 19:13 ` Dirk Bergstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).