Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment Re:Regexp-based address validation (Score 1) 516

There's more to it than that, as you'll find if you look at RFC 822 (part 6). For example, you need to check for conformance with the following syntax:

domain-literal =  "[" *(dtext / quoted-pair) "]"
atom        =  1*<any CHAR except specials, SPACE and CTLs>
quoted-pair =  "\" CHAR                     ; may quote any char
phrase      =  1*word                       ; Sequence of words
word        =  atom / quoted-string
address     =  mailbox                      ; one addressee
            /  group                        ; named list
group       =  phrase ":" [#mailbox] ";"
mailbox     =  addr-spec                    ; simple address
            /  phrase route-addr            ; name & addr-spec
route-addr  =  "<" [route] addr-spec ">"
route       =  1#("@" domain) ":"           ; path-relative
addr-spec   =  local-part "@" domain        ; global address
local-part  =  word *("." word)             ; uninterpreted
                                            ; case-preserved
domain      =  sub-domain *("." sub-domain)
sub-domain  =  domain-ref / domain-literal
quoted-string = <"> *(qtext/quoted-pair) <">; Regular qtext or
                                            ;   quoted chars.
qtext       =  <any CHAR excepting <">,     ; => may be folded
                "\" & CR, and including
                linear-white-space>
domain-ref  =  atom                         ; symbolic reference

(... and so on in enormous detail - I've definitely missed a few bits.)

Email address validation isn't as simple as people think ;-)

(OT: why does /.'s filter mistake a quote from an RFC for ASCII art, forcing me to post in Code mode?)
GNU is Not Unix

Richard Stallman Proclaims Don't Follow Linus Torvalds 965

StonyandCher writes "Here is an interview with Richard Stallman about a range of free software topics including GPLv3 and comment on the Microsoft patent issue. Stallman has a go at Linus Torvalds even suggesting that if people want to keep their freedom they better not follow Torvalds. From the interview 'Stallman: The fact that Torvalds says "open source" instead of "free software" shows where he is coming from. I wrote the GNU GPL to defend freedom for all users of all versions of a program. I developed version 3 to do that job better and protect against new threats. Torvalds says he rejects this goal; that's probably why he doesn't appreciate GPL version 3. I respect his right to express his views, even though I think they are foolish. However, if you don't want to lose your freedom, you had better not follow him.'"
Security

Web 2.0 Under Siege 170

Robert writes "Security researchers have found what they say is an entirely new kind of web-based attack, and it only targets the Ajax applications so beloved of the 'Web 2.0' movement. Fortify Software, which said it discovered the new class of vulnerability and has named it 'JavaScript hijacking', said that almost all the major Ajax toolkits have been found vulnerable. 'JavaScript Hijacking allows an unauthorized attacker to read sensitive data from a vulnerable application using a technique similar to the one commonly used to create mashups'"
Windows

Submission + - Pegasus mail client discontinued after seven years

bbc writes: "David Harris announced today that both development and distribution of Pegasus Mail will be discontinued starting immediately. Hardly any good e-mail clients exist, but Pegasus has consistently belonged to that club for 17 years. Its worst offenses are its quirkyness, and the strange preference of its developer to work on expanding HTML support instead of working on real features. For the past 9 years I have been able to live with that. It's been awhile since I lamented the death of a computer program."
Google

Submission + - Gooogle's answer to the Slashdot article

Ludwik writes: "Matt Cutts of Google answers to the Slashdott's article about Google de-indexing hacked site.
(...) This site was hacked and stuffed with a bunch of hidden spammy porn words and links. Google detected the spam in less than 10 days; that's faster than the site owner noticed it. We temporarily removed the site from our index so that users wouldn't get the spammy porn back in response to queries. We made it possible for the webmaster to verify that their site was penalized. Then we emailed the site, with the exact page and the exact text that was causing problems. We provided a link to the correct place for the site owner to request reinclusion. We also made the penalty for a relatively short time (60 days), so that if the webmaster fixed the issue but didn't contact Google, they would still be fine after a few weeks. (...)
"

Microsoft Claims Worlds Best Search Engine Soon 536

kw writes "Microsoft will introduce a search engine better than Google in six months in the United States and Britain followed by Europe, its European president said on Wednesday. "What we're saying is that in six months' time we'll be more relevant in the U.S. market place than Google," said Neil Holloway, Microsoft president for Europe, Middle East and Africa. That timing would presumably coincide more or less with the launch of Vista."

Slashdot Top Deals

Genetics explains why you look like your father, and if you don't, why you should.

Working...