This is home of ljegate, twin of mail2lj.
Contents:
Simple. You set up your livejournal account to send notification email's to lj.myxomop.com, ljegate will filter them, mangle `From' address and re-send original mail (minus HTML attachment) to you. Once you reply, reply goes again to ljegate, ljegate interpreters it and posts to livejournal using http. See below for details how to setup lj account.
Go to 'Personal Info' section on livejournal.com and instead of current email address enter
Make an alias for your email client,
ljpost = lj-post-$yourusername-$md5hashofyourpassword@lj.myxomop.com
like
lj-post-pupkin-d0605efea35a77898e73f40a3864cea5@lj.myxomop.com
and send your journal entries to this address.
To calculate md5_hex hash, use following command:
perl -MDigest::MD5 -e 'print Digest::MD5::md5_hex("yourpassword")."\n"';
Send mail to lj-post@lj.myxomop.com and include username and password in first lines of message body. Like this:
username: your-user-name
password: your-password
Instead of password you can use md5_hex hash of your password, as described above, line should look like this:
hpassword: d0605efea35a77898e73f40a3864cea5
Also you can specify in the same way mood, current music, picture keyword, security, date and if message shouldn't be auto-formatted (formatted). For more details see mail2lj userguide.
If you post reply or journal entry and something breaks in ljegate, it will return you your post with error message -- this never seems to work, see known bugs section.
When ljegate receives letter from you (new journal entry or reply to comment), it will automatically translate it from charset specified in mail header to unicode and submit in unicode to livejournal.
ljegate does not recode email it receives from livejournal, since such functionality already exists on livejournal itself (see bottom of Personal info section on livejournal.com).
ljegate was written by nslu with 1/2 code borrowed from mail2lj, which was written by jsn (same is true for mail2lj, half of mail2lj code was borrowed from ljegate). mail2lj and ljegate both do same thing, but tab indentation of code is different, that's all the difference. Something makes me think that mail2lj will live longer and will be wider accepted by public.
denspb в январе 2003'го прислал патч для поддержки emoticons и security: friends/protected
I talked to my friend about livejournal and he told me he would like to get his own journal, but he couldn't, because he was stuck with uucp and there was no way to interface with lj using only mail. Then yakovis told something me about mail-only gate. Shortly after that I posted on lj_dev about this idea, which caused lots of discussion. Then, independently, jsn posted in his journal his new script, which allowed to post new journal entries using mail client. And avva pointed him that I was going to write exactly same thing. We discussed the idea and jsn told he hadn't have time for this. So, I started writing and shortly posted announcement in my journal. But jsn didn't waste time and had his own version ready too. The end.
Source code is available here, this is 300 line perl script. Source code for mail2lj is available here, I'd love to hear some comments which indentation style is better ;—P
ljegate is distributed in terms of GPL license, please reшпect.
If anybody wants to run such gate
# this is from `transports' section: lj_filter: driver = pipe command = "/usr/local/bin/ljegate.pl" return_path_add return_output prefix = "" user = lj # and from `directors' section catch_lj: driver = smartuser domains = lj.myxomop.com transport = lj_filterIf ljegate dies, exim will send error message to original sender.
:0 * ^To: lj.*@lj.myxomop.com | /usr/local/bin/ljegate
$entity->purge();
ни хуя не пуржит — буду очень благодарен
(сорс).