Having registered in several social networks, forums, as well as using GMail mail, mail.ru, yandex.ru and much more, I thought, why not write something to collect all messages from different sources in one place and not to climb from morning to evening, following the links from the messages “You have received a message from ******”.
So,
after sitting for a while
after sitting for a while in a notebook (I do not like any IDE), SMail created:
Almost everything uses AJAX, a little GMail-style is done, the email part uses foreign classes working with imap / pop / smtp.
So far, this
disgrace is in its infancy stage, and even scary to open it for everyone to see. But as you can see from the screenshot, he can receive / send messages from / to:
webneo.ru - the system itself where SMail lives and feeds on contacts.
vkontakte.ru - collects and accepts only a message from users whose ID is registered as a contact. At the same time, there is an interface for synchronizing contacts between webneo.ru and vkontakte.ru
gmail.com - accepts only new mail from the Inbox folder, and also sends answers and just mail. No frills - just text.
my.opera.com - accepts all new messages from the Inbox folder (marking the message as read), sending messages to contacts whose myOpera logins are added to the friends list.
Spent a couple of days to synchronize with odnoklassniki.ru, then I realized that the ID of the relationship between the client and his friends varies from server to server and from session to session, so I abandoned this business.
Plans for the future to teach to receive / send files by mail, connect also facebook and teach how to create message chains where it is possible.
A user can send a message to any contact listed in his contact list. At the same time, the contact itself may contain a variety of communication methods (social networks, mail, internal webneo messages) and, accordingly, there are sending priorities that the user can edit. The default is “webneo”, “vkontakte”, “gmail”. This means that when writing a new message, the contact list is viewed, the most priority (from the available) sending methods is selected, and the job (sending task) is recorded in the database. Every 10 ... 15 minutes a script is launched and it watches what they give it
to be eaten to
be sent, and after sending it looks what's new in one or another source and takes messages from there, writing them into the same database. Priorities can change themselves: when replying to a message, the source of the message has the highest priority.
I would like to know from Habr people what else to wind such a thing so that it would not be a shame to call it something new and useful to society?
UPD:Done by:
- message chains for webneo and gmail.com
- fixed bugs when replying to a message
- When searching for contacts, you can choose how to send a message
- rewrote PHPMailer class to work with message chains
I think I will soon open to users (after I finish sending / receiving files)
More details about the changes
on the project website.