Corporate Information | Software | Support | Contact Us
Corporate Information
Software
Messenger Pro
Messenger Pro Downloads
Beta and Archived Downloads
Evaluate
Support
Messenger Pro FAQ
Messenger Pro Change Log
Messenger Pro (Windows/Linux/Mac) Mailing List Archive
Messenger Pro (RISC OS) Mailing List Archive
Bug Tracker
Contact Us

Re: Handling mailto links

From:Rainer Schubert Date:24 Feb 2016 07:28
In Reply To: Re: Handling mailto links (Harriet Bazley)

Am 24.02.2016 um 03:36 schrieb Harriet Bazley:


> How would MPro distinguish betwen
> 
> address e.g. fred.bloggs@...
> 
> and
> 
> Fred Bloggs <fred.bloggs@...>?

In my opinion, it is a simple job in three steps:
1. String contains a '@' character    RESULT  TRUE OR FALSE
2. IF TRUE : From the position of the '@' go back until you find a
   whitespace character OR a '<' character. Now the pointer to the
   whitespace character or the '<' +1 is the start of the string that
   holds the email address.
3. From the position of the '@' character proceed until you either find
   another whitespace character or a '>' character. In C you might put
   a binary 0 here to mark the end of the string.

> If the name isn't enclosed in any way, I don't see how the app is to know
> where it starts and stops.

Per definition it is either enclosed by '<' and '>' or by whitespace,
isn't it ?

Regards,
-- 
Rainer Schubert                   mailto:schubert@...
Co-Editor of GAG News, the only German language RISC OS magazine.
Der Unterschied zwischen Genialität und Dummheit ist der, dass
Genialität ihre Grenzen hat !


______________________________________________________________________
This message was sent via the messenger-l mailing list
To unsubscribe, mail messenger-l+unsubscribe@...



© 2024 intellegit ltd. - info@intellegit.com