Hi May be a long story. Sorry for that.My requirement as this. I have a saas application. The different people can create accounts. Each account holder can create users under them . An example is during account creation one user gives email as "admin1-3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org''. Then after login to application he creates say two users and gives (valid) emails as user1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org and user2-/E1597aS9LRfmgfxC/sS/w@public.gmane.org At a later stage from the application he send mail to both the above users and they get mail in there gmail and yahoo inboxes. Also what is sent to them etc are stored to db also as a thread. Upto this everything works fine. So coming to my requirement suppose user1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org replies to this email. Then admin1-3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org gets email in his inbox(This also can be done). And also it has to be reached to my rails application . Dont know how to do this???.And also to be logged to my db. The above is the original requirement. As part of that what I would like to know is can I reply mail to user_thread_id-3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org (An example is user_100-3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org) . The thing is user_100-3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org is not a valid email. Like that there may be user_2-G38qTXvhaKll57MIdRCFDg@public.gmane.org ,user_5-G38qTXvhaKll57MIdRCFDg@public.gmane.org All these are dynamically created when replying. And what I need is, all these mails has to be reached at mydomain.com and forwarded to my rails application. From there I can get the thread_id from this mail (example 100 from user_1---3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org) and also the mail contents so that everything like subject,body etc can be stored to my db. Dont know I could make you understand my requirement. Please tell if you did not understand. Guide me with your valuable comments Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.