Bon Giorno!

[email protected] (John Dodson) wrote:
 |Hi Steffen,
 |Yes, a restoration of the substring matching capabilities that were in the
 |original BSD code was the original point. As it was effectively broken (from
 |my perspective ;-) in later code in another branch. (That's \
 |not to say the BSD
 |code was not already broken ;-)

No the original code does correctly what it does.  Of course an
"any substring, case-insensitive" match matches XY.com for
xy.com.evil.com or similar.  And of course the @ search expression
that i've introduced will clash - now that this is fixed - shall
you try to search "@physiol.usyd.edu.au".  That is a pity, i must
admit i hadn't the original behaviour of "address" searches on the
radar once i've implemented it.  On the other hand @ with its
regular expression support could offer you what i think Gunnar
Ritter desired when he changed "address" searches, and that would
be prevention of .evil.com matching successfully, as above, e.g.,
"@physiol\.usyd\.  edu\.au$".  However, even that is not true
currently since we match the complete header, not the address
only.  Oops.

..so i did extend that one and it is now possible to say, e.g.,

  @!from@@a\.safe\.domain\.match$

  This message specification performs full text comparison,
  but even with regular expression support it is almost
  impossible to write a search expression that savely matches
  only a specific address domain.  To request that the content
  of the header is treated as a list of addresses, and to
  strip those down to the plain email address which the search
  expression is to be matched against, prefix the header name
  (abbreviation) with an exclamation mark `!':

Some header abbreviations are now also possible.  Will be in the
release.

 |Yes, a quick scan of your change looks reasonable.

I've fixed the bug that was in the *allnet* branch, updated the
manual and pushed all that.  It'll be in the next release.

 |Perhaps your change might be suitable for the nail code, so it gets into the
 |redhat releases?

I dare to say that the RedHat manual was illustrated with xfig(1)
back once i've paid for it.  That's how it looked like, at least.
:)  People will surely discover S-nail over time.  Especially if
i reach v15.0.  I am not really worried.
But i think Gunnar Ritter wanted it that way, so providing a diff
is most likely useless.

 |At least I think we have the original intention of the search code clarified
 |a bit, ie. that you can do a substring search on the whole address ;-)

..and POSIX says any header overview string shall match, so your
and now our interpretation is definitely more correct than the
code was before.

 |I'll be in Frankfurt (Airport) then off to Grassellenbach \
 |to visit my brother
 |in a couple of weeks (not sure of the exact date - just for a day or two).

You fly 40.000 kilometers for a two day visit?  Better beware of
the merciless environmentalist in me.

 |Maybe we should try to meet for a beer as I hurtle through \
 |Darmstadt on a slow
 |train ;-) Consider though that I can't drink as much now as I used to!

i don't drink beer i am afraid.  Now am i a misanthrope?  Well,
maybe not.  You know it really depends on the date, my Helga's
birthday is on 09-05 and it may happen that we're off for summer.
Somewhere that has to be, as it is not here.  I don't think it
would make you happy, John.  On the other hand the only beer
i really would drink a glass of is the ?Grohe Bier? Pils.  At
least as i remember it, if i do so correctly.

 |johnd (Currently Sydney - soon to be London/Portugal/Paris/Grassellenbach \
 |;-)

That sounds great.  From my side.. it all depends on her.  That
sounds great indeed.  I'd miss Italy in that list.

--steffen

------------------------------------------------------------------------------
_______________________________________________
nail-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nail-devel

Reply via email to