Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de>
Cc: Florian Weimer <fw@deneb.enyo.de>
Subject: Re: [patch] gnus-art.el handling for t-online addresses
Date: Sun, 04 May 2003 14:17:51 +0200	[thread overview]
Message-ID: <v9issqj47k.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <m34r4buk89.fsf@mandala.my-fqdn.de>

On Sun, May 04 2003, Jhair Tocancipa Triana wrote:

> Gnus v.5.10.2 fails to recognize as valid[1] an e-mail address from
> T-Online, when pushing the button on it:
[ <Johannes.Brinkmeier-Moritz@t-online.de> ]
> Patch and proposed ChangeLog entry are attached.

Thanks.  Some comments and questions...

As it's name says, `gnus-button-mid-or-mail-heuristic' is a heuristic
function.  It's not intended to cover every special case.  BTW: In
your example the function returns 'ask, which isn't really wrong. :-)

| +    ;; Certain special cases...
| +    (30.0  . "^0[0-9]+-[0-9][0-9][0-9][0-9]@t-online\\.de$") 
| +    (30.0  . "^[A-Za-z]+[A-Za-z._-]\\{4,29\\}@t-online\\.de$") 
| +    (30.0  . "^[0-9]+\.[0-9]+\@compuserve"))

We can't use \\{4,29\\} because we still support Emacs 20 (and maybe
some XEmacs versions?) that don't support this.  See the ugly
re-formulations of {M,N} expressions.

But maybe, we don't have to be that careful and use
"^[A-Za-z]+[A-Za-z._-][A-Za-z._-][A-Za-z._-][A-Za-z._-]+@t-online\\.de$"
instead?

The current implementation is very close to Florian Weimer's Perl
script[1].  Why do think that it's better to put "Certain special
cases" into the list?

[ Cc'ing Florian (dunno if he's reading ding). ]

| -    ;; Certain special cases...
| -    (when (string-match
| -	   (concat
| -	    "^0[0-9]+-[0-9][0-9][0-9][0-9]@t-online\\.de$" "\\|"
| -	    "^[0-9]+\.[0-9]+\@compuserve")

Maybe we should make this customizable, too?

Bye, Reiner.

[1] <URL: http://www.enyo.de/fw/scripts/message-id-or-email.pl>
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/




  reply	other threads:[~2003-05-04 12:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-04  9:36 Jhair Tocancipa Triana
2003-05-04 12:17 ` Reiner Steib [this message]
2003-05-04 12:50   ` Jhair Tocancipa Triana
2003-05-04 16:37   ` Florian Weimer

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=v9issqj47k.fsf@marauder.physik.uni-ulm.de \
    --to=4.uce.03.r.s@nurfuerspam.de \
    --cc=fw@deneb.enyo.de \
    --cc=reiner.steib@gmx.de \
    /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 NNTP newsgroup(s).