public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
From: Milan Zamazal <pdm@zamazal.org>
To: "Dirk Bergstrom" <dirk@juniper.net>
Cc: <help-gnats@gnu.org>
Subject: Re: Subject line processing in Gnats 4.0
Date: Thu, 13 Dec 2001 14:39:00 -0000	[thread overview]
Message-ID: <87ofl2hihn.fsf@blackbird.zamazal.org> (raw)
Message-ID: <20011213143900.sd6kTU4cjYVsA40qZzBKubiC9gZgPfJliPyOjBUHY-U@z> (raw)
In-Reply-To: <C53744A44FBC9B4BAE90EB41D2C09AC2052242@proton.jnpr.net>

>>>>> "DB" == Dirk Bergstrom <dirk@juniper.net> writes:

    DB> *) accept FW: as well as RE: -- change the subject pattern
    DB> thusly:

This is insufficient, since my mail client generates something
completely different of "FW" on forwarding and some other software
authors think it's a good idea to replace "Re:" with its "translation"
to the users' language.

    DB> *) gnats currently accepts things like "sw-foo: 1234" instead of
    DB> "sw-foo/1234".  i'm guessing that the former is an antiquated
    DB> form, since gnats doesn't emit it anymore.

I agree we could/should drop the colon form.

    DB> people don't use it, but they *do* use "PR1234".  adjust the
    DB> regex appropriately:

    DB> + "(.*(re|fwd?)[ \t]*(\\[[0-9]+\\])?:)?[ \t]*(([-a-z0-9_+.]*/)|pr)([0-9]+))"

OK.  How about the spaces between "PR" and the number?

    DB> this will require some futher munging of code, since the stuff
    DB> that pulls out and uses <category>/<number> will have to learn
    DB> to contend with PR<number>.  since it really isn't necessary to
    DB> use category to pull up the PR, it might be best to change the
    DB> regex to save only the number, and not the category/number pair.
    DB> then we could just hack out the additional parsing code.

>>>>> "PT" == Paul Traina <pst@juniper.net> writes:

    PT> Funny, because I *did* change the regexp to accept PR/ as a
    PT> generic category.  Did that code get lost in 4?

The current regexp contains the fragment

  ([-a-z0-9_+.]*[:/][ \t]*([0-9]+))

that matches "PR/" automatically.  Dirk's point is to include "PR"
without the slash as well.

    PT> By the way, refile-pr was written for 4.

Very well. :-)

Well, to summarize, I suggest the following:

- Not to try to match "re", "fw", etc. and simply look for a substring
  as stated below.

- Accept "\<CATEGORY/NUMBER" where CATEGORY is a valid category name and
  PR NUMBER is present in CATEGORY.

- Accept "\<PR[ \t/]*NUMBER" where "PR" must be all capitals and NUMBER
  corresponds to an existing PR number.

Would it serve the purpose in an acceptable way?

Regards,

Milan Zamazal

-- 
Omigod, it's a flame war about a flame war.  You know, a meta-flame war!
                                                 Kenny Tilton in comp.lang.lisp

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

  parent reply	other threads:[~2001-12-13 14:39 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-02  5:49 Dirk Bergstrom
2001-11-03  1:41 ` Paul Traina
2001-12-13  9:50   ` Paul Traina
2001-11-06  5:19 ` Milan Zamazal [this message]
2001-12-13 14:39   ` Milan Zamazal
2001-12-12 14:20 ` Dirk Bergstrom
  -- strict thread matches above, loose matches on Subject: below --
2001-11-06  5:58 Dirk Bergstrom
2001-11-09 14:17 ` Milan Zamazal
2001-11-19  0:36   ` Milan Zamazal
2001-12-23 12:36     ` Milan Zamazal
2001-12-15  7:24   ` Milan Zamazal
2001-12-13 15:09 ` Dirk Bergstrom
2001-11-01 15:18 Dirk Bergstrom
2001-12-12 13:03 ` Dirk Bergstrom
2001-11-01  7:16 Dirk Bergstrom
2001-11-01  7:18 ` Paul Traina
2001-11-01 14:36   ` Michael Richardson
2001-12-12 11:55     ` Michael Richardson
2001-12-11 21:45   ` Paul Traina
2001-11-02  5:50 ` Milan Zamazal
2001-11-02  5:57   ` Michael Richardson
2001-12-12 15:43     ` Michael Richardson
2001-11-04  0:17   ` Yngve Svendsen
2001-12-13 12:30     ` Yngve Svendsen
2001-11-06  7:43   ` Chad C. Walstrom
2001-11-10  8:07     ` Milan Zamazal
2001-12-15  7:24       ` Milan Zamazal
2001-12-13 21:36     ` Chad C. Walstrom
2001-12-12 15:06   ` Milan Zamazal
2001-12-11 18:12 ` Dirk Bergstrom
2001-10-28 13:34 Michael Richardson
2001-10-29 17:36 ` Milan Zamazal
2001-12-09  6:33   ` Milan Zamazal
2001-12-07 14:27 ` Michael Richardson

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=87ofl2hihn.fsf@blackbird.zamazal.org \
    --to=pdm@zamazal.org \
    --cc=dirk@juniper.net \
    --cc=help-gnats@gnu.org \
    /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).