From: Andrew Cagney <ac131313@redhat.com>
To: overseers@sources.redhat.com
Subject: Add `add note' to list of urls
Date: Sun, 02 Feb 2003 05:07:00 -0000 [thread overview]
Message-ID: <3E3CA786.5080508@redhat.com> (raw)
Hello,
I've added this to the src gnatsweb.pl interface. It's my `I give up'
workaround to the xxx-prs@ mailto problem (you can't mailto it).
Does GCC want this?
Andrew
PS: GNATS 4 beta 2 is released
--------------070605060906030405020502
Content-Type: text/html;
name="diffs"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="diffs"
2003-02-01 Andrew Cagney <ac131313@redhat.com>
* gnatsweb.pl (get_mailto_link): New function.
(view): Print ``add note'' link.
Index: gnatsweb.pl
===================================================================
RCS file: /cvs/sourceware/cgi-bin/gnatsweb.pl,v
retrieving revision 1.40
diff -u -r1.40 gnatsweb.pl
--- gnatsweb.pl 2 Feb 2003 03:45:49 -0000 1.40
+++ gnatsweb.pl 2 Feb 2003 04:21:58 -0000
@@ -859,6 +859,24 @@
. "send email to interested parties</a>\n";
}
+# Return a link which sends email to PRMS
+sub get_addnote_link
+{
+ my($pr,%fields) = @_;
+
+ # NOTE: cagney/2003-01-31: Don't escape the interested parties
+ # e-mail list. MOZILLA has a nasty bug were it doesn't re-adjust
+ # the e-mail list length after de-escaping it. This causes MOZILLA
+ # to use "?Sub..." in the list of e-mail addresses.
+
+ my $mailto = $config{'GNATS_ADDR'};
+
+ my $subject = $q->escape("Re: $fields{'Category'}/$pr:
$fields{'Synopsis'}");
+
+ return "<a href=\"mailto:$mailto?Subject=$subject\">"
+ . "add note</a>\n";
+}
+
# Look for text that looks like URLs and turn it into actual links.
sub mark_urls
{
@@ -903,8 +921,9 @@
print $q->submit('cmd', 'edit') if (can_edit());
print " or " if (can_edit() &&
!$viewaudit);
print $q->submit('cmd', 'view audit-trail') if (!$viewaudit);
- print " or ",
- get_mailto_link($pr, %fields), "</p>";
+ print " or ", get_addnote_link($pr, %fields);
+ print " or ", get_mailto_link($pr, %fields);
+ print "</p>";
print $q->hr(),
"<table>\n";
print "<tr>\n<td><b>Reporter's email:</b></td>\n<td>",
--------------070605060906030405020502--
next reply other threads:[~2003-02-02 5:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-02 5:07 Andrew Cagney [this message]
2003-02-09 13:31 ` Gerald Pfeifer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E3CA786.5080508@redhat.com \
--to=ac131313@redhat.com \
--cc=overseers@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).