public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
* gnatsweb question (in the config? in the source?)
@ 2001-05-07  0:23 Phil Edwards
  2001-05-08  6:37 ` Yngve Svendsen
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Edwards @ 2001-05-07  0:23 UTC (permalink / raw)
  To: gnats-devel

Hello.

I sent a message similar to this one to Gerald, who kindly pointed me to
this list.  (I'm not subscribed, so please cc me on followups.)

I'd like to make a change/extension to gnatsweb.  When gnats sends out
its initial-submission mail, it does so with a header like

    Subject: foo/NNN: the gronkulator isn't frobilizing properly

but when I make changes to the PR via gnatsweb, it sends out mail with

    Subject: foo/NNN

which makes arranging the email in my mailbox difficult, since remembering
the synopsis for a few dozen arbitrary PR numbers is more than what my tiny
little brain can handle.  I'd like to change things so that the synopsis
is always part of the subject line.

Maybe this isn't a config issue, maybe it's coded that way.  Or maybe this
is a gnats issue, instead of a gnatsweb issue.  Where do I start looking?


Phil

-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.

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

* Re: gnatsweb question (in the config? in the source?)
  2001-05-07  0:23 gnatsweb question (in the config? in the source?) Phil Edwards
@ 2001-05-08  6:37 ` Yngve Svendsen
  0 siblings, 0 replies; 2+ messages in thread
From: Yngve Svendsen @ 2001-05-08  6:37 UTC (permalink / raw)
  To: Phil Edwards, gnats-devel

At 02:04 07.05.2001 -0400, Phil Edwards wrote:
>Hello.
>
>I sent a message similar to this one to Gerald, who kindly pointed me to
>this list.  (I'm not subscribed, so please cc me on followups.)
>
>I'd like to make a change/extension to gnatsweb.  When gnats sends out
>its initial-submission mail, it does so with a header like
>
>     Subject: foo/NNN: the gronkulator isn't frobilizing properly
>
>but when I make changes to the PR via gnatsweb, it sends out mail with
>
>     Subject: foo/NNN
>
>which makes arranging the email in my mailbox difficult, since remembering
>the synopsis for a few dozen arbitrary PR numbers is more than what my tiny
>little brain can handle.  I'd like to change things so that the synopsis
>is always part of the subject line.
>
>Maybe this isn't a config issue, maybe it's coded that way.  Or maybe this
>is a gnats issue, instead of a gnatsweb issue.  Where do I start looking?

I think you would get the behaviour you want if you change the line in the 
subroutine submitedit, reading

print MAILER "Subject: Re: $fields{'Category'}/$pr\n\n";
to
print MAILER "Subject: Re: $fields{'Category'}/$pr: $fields{'Synopsis'}\n\n";
or, if you want to explicitly use the old synopsis, even if the edit 
involved changes to the synopsis:
print MAILER "Subject: Re: $fields{'Category'}/$pr: 
$oldfields{'Synopsis'}\n\n";

Since I don't know what version of Gnatsweb you're using, I won't supply a 
patch for this, but you should be able to make the edit based on the info 
above.

Hope this helps,

Yngve Svendsen
IS Engineer
Clustra AS, Trondheim, Norway
yngve.svendsen@clustra.com

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

end of thread, other threads:[~2001-05-08  6:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-07  0:23 gnatsweb question (in the config? in the source?) Phil Edwards
2001-05-08  6:37 ` Yngve Svendsen

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).