[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Integration of GNUnets regex service
From: |
TheJackiMonster |
Subject: |
Re: Integration of GNUnets regex service |
Date: |
Fri, 22 May 2020 00:59:02 +0200 |
User-agent: |
Evolution 3.36.2 |
Hi again,
I could solve this problem just by putting name, mail address and phone
number in separate brackets. So these characters seem to be allowed.
I have also added a prefix for all the regex my application announces
so there shouldn't be any collision between other services and my chats
users. ^^
Thank you for the quick help and the information anyway. I will
probably still look more into it. ^^
Jacki
On Thu, 2020-05-21 at 23:01 +0200, Christian Grothoff wrote:
> Hi!
>
> Very little documentation on the regex documentation was ever
> written,
> you can find it here:
>
> https://docs.gnunet.org/handbook/gnunet.html#REGEX-Subsystem
>
> Beyond that, there is Max's MS thesis, which I just rebuild from SRC
> (with some trouble, build may not be perfect) and put up on
> https://grothoff.org/christian/szengel2012.pdf
>
> I've also now posted an (unpublished) paper on the subject at
> https://grothoff.org/christian/mesh-policy.pdf -- hopefully those
> will
> be helpful to you.
>
> Anyway, I don't recall any particular reasoning for us behind the
> allowed literals, except of course for the special characters like
> "|"
> or "()" that need to be reserved, so it MAY be as trivial as changing
> the code to include '@' (but I did not verify this).
>
> Happy hacking!
>
> Christian
>
> On 5/21/20 8:28 PM, TheJackiMonster wrote:
> > Hello,
> >
> > I'm still working on my chat client using CADET and I implemented a
> > search for other peers with the regex service. It works fine using
> > names to search for others but I would like to adapt this so that
> > every
> > user can select how to be found ( username, mail address, phone
> > number
> > ) or even if they don't want to be found at all ( which would be
> > default ).
> >
> > But there is this problem I get because the regex service lacks a
> > bit
> > of documentation. ^^'
> >
> > I can't use the '@' character for the mail address ( even escaping
> > with
> > '\\' prefix doesn't help ). I have found in the regex_internal.h
> > this:
> >
> > #define ALLOWED_LITERALS \
> > "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
> >
> > But I can also use the '-' character escaped for phone numbers
> > too...
> > so I would like to which characters can be used and which can not.
> > I
> > would like to get all possible literals be included in the header
> > of
> > the service too for checking in the application. ^^'
> >
> > The header of the service is referring to "https://gnunet.org/regex
> > "
> > but this page seems to be down. I guess I will try some time
> > machine to
> > have a look anyway but I would like to see this situation improving
> > some way.
> >
> > Thanks for your time and happy hacking.
> > Jacki
> >
signature.asc
Description: This is a digitally signed message part