On Mon, Sep 02, 2013 at 03:25:07AM -0500, guns wrote:
> On Mon  2 Sep 2013 at 09:17:29AM +0200, Oswald Buddenhagen wrote:
> > lastly, the PassCmd output is *not* treated in any way. the problem is
> > at the IMAP level: the spec does not define a means to escape quotes in
> > a quoted string, so every server is likely to do something else. the
> > solution would be sending (problematic) passwords as literals.
> 
> I defer to your experience, but there is this entry in RFC 2683:
> 
i didn't know that document.
anyway, i stand corrected - the IMAP spec does indeed specify the
escaping requirements. but it does not even mention them in the actual
text (4.3), but only at the bottom in the BNF. gotta love such specs.

> > patches welcome.
> 
> The patch is trivial, but agreement is harder won.
> 
it's not entirely trivial. the nice implementation would be building
auto-quoting into imap_exec(), which would mean a custom printf()
implementation. the easier alternative is an imap_quote() function, but
that needs to be manually called, either with fixed-size buffers or with
subsequent free()s - either variant will look ugly.

regards

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to