Thank you for your effort. I have tried your script on Firefox 9.0.1 on Ubuntu, and it doesn't seem to do anything. It could of course be me - never used greasemonkey before.
I just tried this myself. On the subject line I wrote:
"Taskname * @@Home *Inbox" and it worked like intended. The task became starred, got context @Home and put in folder Inbox.