|Emailing LJ Entries
||[Mar. 26th, 2002|11:12 am]
LiveJournal Client Discussions
Here's an idea for you. I'm really interested in developing this. I want to be able to email my live journal entries in. I have a cell phone that allows me to send emails, so there for i could add entries while on the road. I'm thinking of having a client run on a computer that basically recieves the email then posts it to LJ. However, I'm fairly new to programming windows sockets. I'm farily experience in C++ and VB, but is there anyone who might be willing to help me with this project?|
It would be easy if the email which receives your cell-phone emails is a POP account.
Let me know.
2002-03-26 06:00 am (UTC)
I've actually started on this in a half-arsed sort of way. I was making a dummy POP3 box at my domain that would be checked every five or ten minutes and all e-mail received would be parsed and piped out to LiveJournal. Basically, the e-mails would have to be formatted like this:
The text of the entry goes here, and continues, until another text line is encountered.
[music this is my music]
[mood this is my mood]
Lines in 's are optional, of course. Not sure if this is very useful to anybody, but... :)
You shouldn't need to handle raw sockets, that's only really if you're making your own protocol. For existing protocols, there are libraries/modules to deal with the socket-level operations.
I pondered making almost the exact script in perl, running as a daemon on my linux box. Basically it just checked a POP account every 60-seconds (say, lj-entry@domain) and parsed the body of the message for username, password, subject, meta-data, and body of message and sent an email back with the status of the post.
2002-03-26 08:36 am (UTC)
You can do this with about 5 lines in procmail and 5 lines of changes to the Perl LJ client...
Though getting something on the LJ server would be a bit more complicated.
Yeah, I did this for my personal use on my web site... just for this purpose.
Pretty ghetto, but works just fine.