• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

Release rk-SMS Switch: Possible ‘Push LIKE mail’[Updated 27 May 2009]

Search This thread

tytnguy

Senior Member
May 26, 2007
581
64
Just a click away
Here is my latest application SMS Switch which can trigger a command line based on the SMS received.:)
Built with the idea of ‘Push LIKE mail’ where the device gets the SMS notification on ‘New mail’ from your email service. rk-SMS Switch intercepts the SMS and based on the SMS sender and/or message text executes the command line (such as \Windows\tmail.exe) to synchronize the emails.



Required:
  • Your device is able to synchronize the emails using pocket outlook.
  • Your device receives the SMS notification on new mail message.
Uses:
  • Push LIKE mail
  • Not wasting bandwidth for keep checking the server at regular intervals.
  • Saving the battery since you do not need always on gprs.
If you have multiple email accounts and want to make use of wifi network etc, then you might want to check up my other application rk-OSR which has support for command line execution.

This is just an idea and initial version. Let me know if you guys like it.

(Updated latest working version 1.0.4)

Version 1.0.4
  • Supports square screens(320 X 320)
Version 1.0.3
  • Now the triggerring SMS are automatically removed from your inbox! All normal SMS will only appear in the SMS inbox.
  • Now the application can be activated by the menu short cuts etc. No need to go to today screen. New option added to put it to tray or not.
  • Not tested much as I do not have SMS plans to play with each SMS i send to test get charged :eek:



Version 1.0.2 Hotfix
  • Bug fix: Please do not use version 1.0.1 which has a issue to sync up outlook and unusable.:p
Version 1.0.1 Updates
  • Separate tabs added for command line OR Outlook use.
  • If using the command line to invoke rk-OSR then timeout option added so that if multiple sms received only one the command line is executed(based on the timeout)
  • If want to sync up only one account then use the 'Outlook' option and only configure the 'Outlook' tab.
  • If using outlook show/hide outlook option added.
Since I am using Windows Live Push mail I am not using this application so you will be the tester! :D

If you like the application please show your support by donation on Paypal

Download from here
 

Attachments

  • 633438789550000000.JPG
    633438789550000000.JPG
    13.3 KB · Views: 1,383
  • 633438789670000000.JPG
    633438789670000000.JPG
    16.3 KB · Views: 1,090
  • 633438789780000000.jpg
    633438789780000000.jpg
    27.4 KB · Views: 816
Last edited:

Dishe

Senior Member
Oct 18, 2006
1,050
174
How does this work?
I tried to run it, and nothing happened. I keep clicking the icon it placed in my start menu, and I can't figure out how to configure anything.

This sounds like a great solution, if it works that is...

It needs some documentation!

EDIT: found it on the today screen. Gosh, I wouldn't have known to look there!
Now, my question is how to manage the incoming sms it creates... If I receive a bunch of emails, I now have a bunch of SMS messages cluttering up my inbox. Can anyone think of a good way to hide the incoming SMS and silently delete it?
 
Last edited:

Dishe

Senior Member
Oct 18, 2006
1,050
174
Yes, I know the SMS needs to be cleared, Hopefully in the next version. :)

Yeah, cuz that extra step sort of kills the whole convenience of it...:)

what I *used* to do when I wanted to save battery power, is forward my gmail to my sms address, and when I saw the first 160 chars with my sms, I'd delete it, go over to outlook and fetch new mail.

With this, at least I don't have to actually click fetch new mail, but it still requires manual deletion, so its not a complete solution yet. :/
looking forward to the next version then...

By the way, how do u get sms notifications for your email? Do you just forward a copy of your email to your sms address? Because if doing it that way, how do u tell the difference between what is coming from your email and what is just something someone sent to your sms directly?
 

NguyenHuu

Senior Member
Nov 14, 2007
1,732
121
California
if someone sends you an sms, most likely they will send it through a phone number. if forwarded from an email, the sender will not be a phone number, most likely an email address or some other sender info that is separate from a standard phone number like you would get from a normal sms.

I think that's how it works.

I currently do the same style as you. have gmail forward me an sms of the email message. if it looks important i go to outlook and download the entire message.
 

tytnguy

Senior Member
May 26, 2007
581
64
Just a click away
... how do u get sms notifications for your email? Do you just forward a copy of your email to your sms address?
Well, For me I use windows live so actually I do not need it ;). But I thought it might be a battery saver so developed it.

...how do u tell the difference between what is coming from your email and what is just something someone sent to your sms directly?

The field 'From' contains... Should have a partial email address... May be @Gmail.com(I am not sure about how you get emails forwarded, check the text message from address and set it)

You could also use 'Message' Contains option to check only if there is a predefined text in the message.

To use either of the two options use 'OR' option.
 

Dishe

Senior Member
Oct 18, 2006
1,050
174
The field 'From' contains... Should have a partial email address... May be @Gmail.com(I am not sure about how you get emails forwarded, check the text message from address and set it)

You could also use 'Message' Contains option to check only if there is a predefined text in the message.

To use either of the two options use 'OR' option.

ah, see gmail is good enough to leave the message intact exactly as it is recieved, original sender and all. So, as I said, there's no way to tell it was forwarded from gmail at all.

Maybe what I should do then is forward to hotmail or something that DOESNT leave everything intact, and from THERE forward to my inbox... a bit backwards...
 

NguyenHuu

Senior Member
Nov 14, 2007
1,732
121
California
yes i agree. gmail is good in that they are generous enough to convert the email address to only showing the Sender's name. normally this is appreciated, but in this case, it makes things a bit more complicated as now like Dishe said, it is impossible to distinguish between a normal sms and one being forwarded by gmail.

--
EDIT: I may have a work around. When GMAIL forwards an email to your phone with an sms notification, the sms contains the text "FRM:", "SUBJ:", "MSG:" within the body of the SMS as part of the actual text message.

The program lets you set a filter for the FROM field and/or the MESSAGE field. So using the program, you can put the filter to either one of the three "FRM:", "SUBJ:", "MSG:" instead of the default "@". This would eliminate the need to know that it was forwarded from GMail at all.

This would solve the problem because regular SMS when sent does not show the text "FRM:", "SUBJ:", "MSG:" in the body of the sms. in theory it looks like works, i havent tested it. i installed the program, can you please let me know what is the command line argument to have it send/receive?

Right now i have the command line sent to windows/tmail.exe and it just opens the email prog. I guess i need the argument too to have it actually send/receive.
 
Last edited:

tytnguy

Senior Member
May 26, 2007
581
64
Just a click away
...I may have a work around. When GMAIL forwards an email to your phone with an sms notification, the sms contains the text "FRM:", "SUBJ:", "MSG:" within the body of the SMS as part of the actual text message.

The program lets you set a filter for the FROM field and/or the MESSAGE field. So using the program, you can put the filter to either one of the three "FRM:", "SUBJ:", "MSG:" instead of the default "@". This would eliminate the need to know that it was forwarded from GMail at all.
Nice suggestion NguyenHuu!. It should work as you suggested :)

... can you please let me know what is the command line argument to have it send/receive?

Right now i have the command line sent to windows/tmail.exe and it just opens the email prog. I guess i need the argument too to have it actually send/receive.

Try the cammand line as follows
Commanline ----> \Windows\tmail.exe
Arguments------> -service "Gmail Account Name" -sync
Where "Gmail Account Name" should be the name of your account as typed on the pocket outlook and double quotes are required.
 

NguyenHuu

Senior Member
Nov 14, 2007
1,732
121
California
it worked! i tested it three times.

1. sent regular sms via a IM application on PC (AIM).
2. sent SMS via another cell phone.
3. had email forwarded through gmail to phone

i used FRM: for FROM contains, and SUBJ: for Message contains. I chose teh "OR" option.

worked as planned. the first two regular sms was sent without activating the inbox syncing. the third time when gmail forwarded the email to my phone sms, since it contained the field: FRM:", "SUBJ:", "MSG:" it automtically sync my inbox.

one thing though, it automatically syncs the inbox which is great but it does so in the background so you still need to go to the inbox then go to the message to read it. is it possible to make it so after it syncs, it opens the actual inbox so you can see your list of unread emails? maybe through adding to the argument?
 
Last edited:

Dishe

Senior Member
Oct 18, 2006
1,050
174
it worked! i tested it three times.

1. sent regular sms via a IM application on PC (AIM).
2. sent SMS via another cell phone.
3. had email forwarded through gmail to phone

i used FRM: for FROM contains, and SUBJ: for Message contains. I chose teh "OR" option.

worked as planned. the first two regular sms was sent without activating the inbox syncing. the third time when gmail forwarded the email to my phone sms, since it contained the field: FRM:", "SUBJ:", "MSG:" it automtically sync my inbox.

one thing though, it automatically syncs the inbox which is great but it does so in the background so you still need to go to the inbox then go to the message to read it. is it possible to make it so after it syncs, it opens the actual inbox so you can see your list of unread emails? maybe through adding to the argument?

The problem that I mentioned before was that ALL EMAIL sent to [email protected] will have FRM:, SUBJ:, MSG in the body, whether it comes from gmail or not.

Sometimes, if I'm at my desk and want to remember something, I'll send an email to my phone's sms address. Also, I have freinds with data plans and no sms plans who email to sms ([email protected]) all the time.
Your solution could not differentiate between those emails sent purposely to an sms address versus ones meant to trigger syncing.

Right now, its not a big problem yet since the app doesnt delete the trigger sms. But at the same time, I hate having to clear two independant inboxes of new messages now (both email and the sms trigger need clearing), so I need the function to remove the trigger after it syncs eventually.

If the email wasnt supposed to be a trigger, you can understand why this may prove problematic.
hmmm...
 

Dishe

Senior Member
Oct 18, 2006
1,050
174
I Know! Outrageous prices, to put it mildly. :(

heh, mine's free. Not to brag or anything, but Sprint over here in the states has killer 3G data plans. I'm just looking to maximize my meager battery life.


EDIT: By the way, TyTnGuy, I went to set up a hotmail/windows live account so that I could try forwarding email THERE and then have THAT forward to my sms with the @hotmail account in the header, but guess what? Live/Hotmail doesn't support forwarding AT ALL!!
So, it looks to me like you couldn't possibly have gotten this to work yourself... What are you not telling us?
 
Last edited:

NguyenHuu

Senior Member
Nov 14, 2007
1,732
121
California
he said he doesnt need the program since he uses live mail which should have its own pushlike mail in wm. he creating the program for people who may need it, and specifically cited gmail in his example. i think haha.

i am still trying to figure out if there is a commandline argument that opens up the inbox after it syncs. that's a really good thing to have i think. right after you get the notifications, the inbox opens and you can see all your unread email.

i am about to set up a dataplan, not just for this but for other business, and so that is why, despite my earlier comment about not having a dataplan, i am so interested in it now haha. better then polling every X-minutes indeed.
 
Last edited:

NguyenHuu

Senior Member
Nov 14, 2007
1,732
121
California
sorry to bring this back up. anyone happen to know the command line argument to open up inbox?

this is the current argument that makes it sync when you get a sms notification: service "Gmail Account Name" -sync

that works fine, but it does so in the background. I was hoping there is more to the argument where after it syncs it opens the inbox for you. or it open inbox then sync is fine too
 
Last edited:

tytnguy

Senior Member
May 26, 2007
581
64
Just a click away
sorry to bring this back up. anyone happen to know the command line argument to open up inbox?

this is the current argument that makes it sync when you get a sms notification: service "Gmail Account Name" -sync

that works fine, but it does so in the background. I was hoping there is more to the argument where after it syncs it opens the inbox for you. or it open inbox then sync is fine too

I am working on a next version I will do something to support the above request. :)