bug-gnats
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: email flow on edit


From: Rick Macdonald
Subject: RE: email flow on edit
Date: Thu, 27 Sep 2001 17:29:06 -0600 (MDT)

On Thu, 27 Sep 2001, Steffen Schreier wrote:

> That was it. I did not receive an email because I was the one that changed
> it. I used a couple different email addresses and it works. On more thing.
> Our Gnats server is behind a firewall, so people from the outside cannot
> query bug reports. I don't mind that. But they have to send an email that is
> in the format that Gnats understands. If they fill out the Categories field
> incorrectly, they will not receive an acknowledgement email.
> Is there somewhere a web interface that is just for filling out a bug report
> without querying the bug database?

Well, the old original "send-pr" stuff might still work, but I've never
used it. It gives them a static copy of the categories file and drops them
into an editor. 

As mentioned at the end of README.unix that comes with tkgnats, you could
create a script.

Here is the tksendpr command line:

tksendpr -server 'ServerInfo' [-categories 'list'] 
             [-classes 'list'] [-states 'list'] 
             [-submitters 'list'] [-responsible 'list']

People from the outside need to install tkgnats, and then run a script
like this:

#!/bin/sh
TKGNATSLIB=/usr/local/share/tkgnats
export TKGNATSLIB
wish /usr/local/share/tkgnats/tksendpr.tcl -server "{} {} {}
bugs@tality.com {} {}" -categories "tkgnats tkgeom" -submitters "calgary"

You would hardwire the categories and what ever is required on the command
line into the script. Or, you could set them in their tkgnatsrc file:

set TkGnats(CategoryList) "cat1 cat2"

It's still static, but at least the PR will be properly formatted.

I can't test this easily in an isolated environment that doesn't have
gnats and tkgnats all configured and working, so I can't guarantee the
above but it's a good start and was always meant to work.

> Thanks,
> 
> Steffen
> 
> -----Original Message-----
> From: Rick Macdonald [mailto:rickm@vsl.com]
> Sent: Thursday, September 27, 2001 3:31 PM
> To: Steffen Schreier
> Subject: RE: email flow on edit
> 
> 
> On Thu, 27 Sep 2001, Steffen Schreier wrote:
> 
> > Here are the Help/ViewConfigurationVariables.
> 
> Damn, everything looks OK.
> 
> When you change the Responsible person, does it pop up a window asking for
> a comment?
> 
> Oh, if you change the responsible to _you_, I don't send email to you
> because you just made the change and don't need email. Have you changed it
> to somebody else completely? Do a test and change the priority. First add
> somebody else to the Notify-List and see if they get email.
> 
> 
> 
> > -----Original Message-----
> > From: Rick Macdonald [mailto:rickm@vsl.com]
> > Sent: Wednesday, September 26, 2001 4:49 PM
> > To: Steffen Schreier
> > Subject: RE: email flow on edit
> >
> >
> > On Wed, 26 Sep 2001, Steffen Schreier wrote:
> >
> > > TKGnats version tkgnats-3.0.18
> > >
> > >
> > > in tkeditpr.tcl the
> > > set requireAudit 0
> > > set requireEmail 0
> > > set requireReason 0
> > >
> > > are all set to 0.
> > >
> > > It sends out mail when I use send EMail
> >
> > No, you looked at the wrong thing. Those sets above are just boolean
> > values. The following code is this (and more similar):
> >
> >     #
> >     # now see if any fields changed that trigger notifiers or audit
> > records
> >     #
> >
> >     set mail_list ""
> >
> >     set responsible_addr     [get_responsible_addr $frm(>Responsible)]
> >     set old_responsible_addr [get_responsible_addr $flds(>Responsible)]
> >
> >     foreach t [concat $Tkeditpr(listboxflds) $Tkeditpr(radioflds)] {
> >         if {$frm($t) != $flds($t)} {
> >             foreach require {Audit Email Reason} {
> >                 if {[check_audit_trail_opts $require $t]} {
> >                     set  require$require 1
> >                     if {$require != "Reason"} {
> >                         append ${require}_text "Changed-[get_field_alias
> > $t]-From-To:\t$flds($t)->$frm($t)\n"
> >                     }
> >                 }
> >             }
> >         }
> >     }
> >
> > The boolean values get set to true as a result of the
> > "check_audit_trail_opts" procedure call which is what compares the field
> > name such as "Responsible" to the "RequireEmail" list which is in the
> > Help/ViewConfigurationVariables that I asked for.
> >
> >
> > > -----Original Message-----
> > > From: bug-gnats-admin@gnu.org [mailto:bug-gnats-admin@gnu.org]On Behalf
> > > Of Rick Macdonald
> > > Sent: Wednesday, September 26, 2001 3:39 PM
> > > To: Steffen Schreier
> > > Cc: BUG GNATS
> > > Subject: Re: email flow on edit
> > >
> > >
> > > On Wed, 26 Sep 2001, Steffen Schreier wrote:
> > >
> > > > Hi there,
> > > >
> > > > I just received my first bug reports with TK-Gnats and everything
> seems
> > to
> > > > work fine. When I double click on a bug report and hit Edit the report
> > > shows
> > > > up. But when I change for example the Category or the Responsible
> field.
> > I
> > > > do not get any emails, which means no emails are send out. The
> > Responsible
> > > > file in Gnats should be correct since I get an email if a bug report
> > with
> > > me
> > > > as responsible comes in.
> > > >
> > > > Does anybody has an idea what could be wrong, if no emails are send on
> > > Edit?
> > >
> > > What version of TkGnats are you using?
> > >
> > > Only certain fields will trigger email notification when editting PRs
> with
> > > TkGnats. Originally this was hardwired, but I made it configurable at
> some
> > > point in the past.
> > >
> > > >From README.config:
> > >
> > >
> > > TkGnats Configuration controlled by GNATS
> > > =========================================
> > >
> > >       REQUIRE_AUDIT_TRAIL_EMAIL:
> > >         Edits to one or more of these fields trigger the
> > >         sending of email notification.
> > >         "none" signals no fields. "all" signals all fields.
> > >
> > >       The TkGnats defaults for these parameters are:
> > >
> > >       REQUIRE_AUDIT_TRAIL_EMAIL
> > >
> "Responsible,State,Priority,Severity,Date-Required"
> > >
> > > Now, you said that you changed "Responsible", so that should trigger
> > > email. To be sure, check the Help/ConfigurationVariables and look for
> > > "RequireEmail" to see what is there. Check for
> > > "SERVER-REQUIRE_AUDIT_TRAIL_EMAIL" to see if the values in
> "RequireEmail"
> > > in fact came from gnats-db/gnats-adm/config.
> > >
> > > Test email from tkgnats by calling up a PR in edit mode and clicking
> > > "SendEmail...". The email window that comes up will be pre-loaded with
> the
> > > same recipients as the recipients of and edit. Send the email and see
> what
> > > happens.
> > >
> > > ...RickM...
> > >
> > >
> > > _______________________________________________
> > > Bug-gnats mailing list
> > > Bug-gnats@gnu.org
> > > http://mail.gnu.org/mailman/listinfo/bug-gnats
> > >
> >
> > ...RickM...
> >
> >
> 
> ...RickM...
> 
> 

...RickM...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]