Re: [Imap-protocol] Re: Suspend/Restore feature proposal

Michael M Slusarz <[email protected]>
Newsgroups gmane.mail.imap.general
Message-ID <20121127160455.Horde.mDRBAWWbJkueCNI0adKoQQ5@bigworm.curecanti.org>
Quoting Joshua Cranmer <[email protected]>:

> On 11/26/2012 7:48 PM, Michael M Slusarz wrote:
>> IMAP command sniffing = javascript browser sniffing. The days of  
>> parsing a browser's User-Agent field are so 1999.
>
> As someone who has seen both ends of the User-Agent debate (as a web  
> developer and as a browser implementer), I can honestly say that  
> parsing User-Agents is actually a very powerful and useful  
> technique, and even browser vendors won't have a problem with it...  
> if you do it properly.

I don't have a problem with Browser sniffing, per se.  A web  
framework, for example, only has the User-Agent string to go by so by  
necessity they need to use that.

The problem comes when other agents, or proxies, "steal" a user-agent  
string from another product in an effort to provide compatibility.   
For something more abstract, like mobile detection, this shouldn't be  
an issue.  But if you are trying to workaround a much more granular  
issue - does this browser support transparent PNGs? - problems arise.

So, IMHO, when you have access to the actual environment you are  
trying to test (i.e. DOM for javascript) there's no real excuse to not  
do feature sniffing properly.  It's not quite as clean in IMAP -  
sending MBs of data to an APPEND command only to find out it failed -  
but it is reliable.

michael

_______________________________________________
Imap-protocol mailing list
[email protected]
http://mailman2.u.washington.edu/mailman/listinfo/imap-protocol
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.