maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Modify (mangle) incoming SMS messages? (https://talk.maemo.org/showthread.php?t=67376)

droll 2012-04-08 14:39

Re: Modify (mangle) incoming SMS messages?
 
i face a different issue now. i hv managed to find a way for the conversation app to update itself. however. i hv issues with the yellow notification bubble.
first, it shows the old contentof the sms. i can live with that. but when i tap on it, it opens up a conversation view for the new sms and it shows the old content as well even though the sqlite db has been updated and the conversation ui too has been updated to show the new contents of the sms.

some kinda caching going on??

droll 2012-04-08 15:57

Re: Modify (mangle) incoming SMS messages?
 
which component / class handles all this?

is there a way i can force the conversation / thread view for the sms to be updated?? it seems disconnected from the main conversation view (the one that shows the list of smses).

droll 2012-04-09 03:05

Re: Modify (mangle) incoming SMS messages?
 
1 Attachment(s)
i checked dbus and saw the RefreshHint signal being issued when i do some stuff in the conversations app to change the underlying messages. manually issuing this signal with dbus-send does nothing. sigh.

guess this will have to be a limitation that i have to live with. :(

to anyone interested in this little script, i've attached it in this message. btw, i don't take credit for a lot of the code inside. i'm new to python so i just went around piecing bits and pieces of other people's work. :)

installation is simple enough. drop to x-term and run it in the background like so "python NameLookup.py &"

it currently watches for incoming smses from "Maxis" and "Voicemail". that's the way it works for the telcos where i live anyway. i could change it to be more generic and watch for any sms messages that has phone numbers in the body and do a name lookup if people are interested.

thanks.

droll 2012-04-10 07:58

Re: Modify (mangle) incoming SMS messages?
 
1 Attachment(s)
fixed some stoopid bugs in the script during text parng. here is the updated version.
i've also changed the behaviour so that any incoming smses with phone numbers in them gets the name lookup treatment. probably more useful to everyone.

hv a nice day :)

ajack 2012-04-17 00:53

Re: Modify (mangle) incoming SMS messages?
 
Works on DiGi (MY)... ^_^

droll 2012-04-17 01:26

Re: Modify (mangle) incoming SMS messages?
 
thank you. oi, reply to the draw something request la.... :P


All times are GMT. The time now is 05:47.

vBulletin® Version 3.8.8