This is the problem, I just copied it from another post:
If someone could help and write a script, I think it could fix it by using OILCAN app for the Android. This app in not in the Market place but can be downloaded from this site."I saw one post on here about it, but no explanation. Whenever I 'click' on an email link on CL from my G1, it opens a new email with an address that is something"@gmail.com", whereas CL emails should be something"@craigslist.org". I can't figure out why it does this, or how to fix it. Does anyone know? My wife is looking to get a G1 tomorrow, but she uses CL constantly, and if this is fixable, it's a deal-breaker on the G1...
Also, how do you make it put the post title in the subject of the email like on a computer, or can you?
Sorry if I missed a post explaining this, first time/post on the board...
Any help is MUCH appreciated!
Thanks "
http://oilcan.jsharkey.org/
Even if the script can take out everything but the email I guessing that would work.
Yeah, I have noticed this as well as I use CL quite a bit.
Once the link opens the email app...you can change it to @craligslist.org. its annoying but doesn't take all that much effort, so I would not call it a deal breaker
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.Black G1 Adopted 11/07/2008Rooted w/cyan 4.2.15.1Theme: Stock
White MT3G Adopted 10/28/2009Rooted w/King's 2.1 v1.7.1running smoothTheme: Nexus Launcher
I just did some tests and it seems to be related to the subject part of the mailto link. Might be a bug in Android itself.
JayBachatero
G1 - JF 1.5 Build; Apps to SD
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
Originally Posted by ickyfehmleh
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
That what I heard on other sites also JayBachatero. I don't know how to write script, but I figure with the combination of Oilcan and if someone could write a script to edit out the subject line in the email link, that would "temporary" take care of the problem.
I had something working but it turns out that I can't user XPath query engine. Need another alternative. I'll report back once I get something working.
JayBachatero
G1 - JF 1.5 Build; Apps to SD
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
Originally Posted by ickyfehmleh
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
Here you go. Oilcan is kinda quirky still but it still works. Hopefully this will tie into the default browser soon.
Should be saved as fix_mailto.user.js and saved to the sd card.Code:// ==UserScript== // @name Android "mailto" Fix by JayBachatero // @namespace http://www.jaybachatero.com // @description Removes the subject part of the mailto link to bypass a bug in Android. // @version 1.0 // @include http://* // ==/UserScript== init(); function init() { var mailtos = document.getElementsByTagName('a'); for (var i = 0; i < mailtos.length; i++) { var href = mailtos[i].href.replace(/&#(\d+);/g, String.fromCharCode('$1')).replace(/mailto:([0-9A-Za-z=_+\-\/][0-9A-Za-z=_'+\-\/\.]*@[\w\-]+(?:\.[\w\-]+)*(?:\.[\w]{2,6}))(\?subject\=.*?)$/, '$1'); mailtos[i].addEventListener('click', function(event) { window.intentHelper.startActivity(JSON.stringify({ action: 'ACTION_SEND', type: 'plain/html', 'EXTRA_TO': href, 'EXTRA_SUBJECT': ' ', 'EXTRA_TEXT': ' ' })); }, false); mailtos[i].href = 'javascript: ;' } }
Last edited by JayBachatero; 12-21-2008 at 07:51 PM. Reason: Error.
JayBachatero
G1 - JF 1.5 Build; Apps to SD
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
Originally Posted by ickyfehmleh
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
Ok after I had it working I managed to break it again so I'll report back with a working version in a few.
JayBachatero
G1 - JF 1.5 Build; Apps to SD
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
Originally Posted by ickyfehmleh
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
Well thanks in advance. I also posted something on the userscripts.org for possibly there. It I find anything out I'll post it.
I haven't been able to get it to work. It might be something with the implementation of oilcan. I'm going to email the developer and see if he can point me in the right direction.
This is the code that is supposed to work.
Code:// ==UserScript== // @name Android "mailto" Fix by JayBachatero // @namespace http://www.jaybachatero.com // @description Removes the subject part of the mailto link to bypass a bug in Android. // @version 1.0 // @include http://* // ==/UserScript== init(); function init() { var mailtos = document.getElementsByTagName('a'); for (var i = 0; i < mailtos.length; i++) { if (mailtos[i].toString().match(/mailto:/)) { mailtos[i].addEventListener('click', function(event) { var mailto = event.target; var matches = mailto.toString().replace(/&#(\d+);/g, String.fromCharCode('$1')).match(/mailto:([0-9A-Za-z=_+\-\/][0-9A-Za-z=_'+\-\/\.]*@[\w\-]+(?:\.[\w\-]+)*(?:\.[\w]{2,6}))(?:\?subject\=(.*?))?$/); var to = matches[1]; var subject = matches[2] != 'undefined' ? matches[2] : ' '; window.intentHelper.startActivity(JSON.stringify({ action: 'ACTION_SEND', 'EXTRA_EMAIL': to.toString(), 'EXTRA_SUBJECT': subject ? subject.replace(/%20/g, ' ') : '', 'EXTRA_TEXT': '', type: 'message/rfc822' })); mailto.href = 'javascript: ;'; }, false); } } }
JayBachatero
G1 - JF 1.5 Build; Apps to SD
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
Originally Posted by ickyfehmleh
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
Why not apply it just to craigslist.org rather than every non-SSL site?
Did you try renaming the script and then loading it back into OilCan? OilCan has a caching problem that sticks around even when you uninstall and then reinstall it.
Bookmarks