Closed GoogleCodeExporter closed 9 years ago
I think the issue is that Mozilla doesn't seem to parse IMAP URLs with port
numbers in them (https://bugzilla.mozilla.org/show_bug.cgi?id=902688)
Not sure they'll fix that though, so I'm working on a workaround...
Original comment by jfitz...@gmail.com
on 8 Aug 2013 at 12:02
Ok, I think I have this working. Feel free to give the attached version a try,
though please backup your keychains first as I haven't tested it very
thoroughly.
Original comment by jfitz...@gmail.com
on 9 Aug 2013 at 10:58
Attachments:
Original comment by jfitz...@gmail.com
on 5 Aug 2014 at 5:44
Just adding a note of some test code I was using while working on this:
// Look up an IMAP password knowing the username:
Components.utils.import('resource://macos-keychain/KeychainServices.jsm');Compon
ents.utils.import('resource://macos-keychain/frameworks/Security.jsm');KeychainS
ervices.findInternetPasswords('the_username', null, null, null,
Security.kSecAuthenticationTypeDefault, null).length;
// Try parsing with the IOService:
Components.classes['@mozilla.org/network/io-service;1'].getService(Components.in
terfaces.nsIIOService).newURI('imap://imap.gmail.com:143',null,null).host
// Try parsing with a StandardURL:
Components.classes["@mozilla.org/network/standard-url;1"].createInstance(Compone
nts.interfaces.nsIStandardURL).init(1, 143, 'imap://imap.gmail.com/',null,null)
Original comment by jfitz...@gmail.com
on 5 Aug 2014 at 7:46
Original issue reported on code.google.com by
jfitz...@gmail.com
on 12 Aug 2012 at 9:32