This app is very similar to the Messaging System on Facebook. There are tests, but they are from the project I forked it from. I will update and improve them once I get around to it.
The app comes with a very basic user search component. If you want to extend it or adapt it to your needs look at views.recipient_search. Adapt your own version in a seperate app and then change the call in your compose templates:: $("#id_recipient").tokenInput("{% url recipient_search %}?format=json", parameters)
to point to your custom view.
pip install -e http://github.com/philippWassibauer/django-threaded-messages.git#egg=threaded-messages
or
pip install django-threaded-messages
There are two other repositories doing this (one of them is not maintained anymore):
https://github.com/typeish/django-threaded-messages
I am not sure what the exact differences are to this implementation. I am pretty certain that they don't include read/unread, fulltext search, pip install etc.
http://github.com/philippWassibauer http://twitter.com/__philw__ http://philippw.tumblr.com https://bitbucket.org/philippwassibauer