?

Log in

No account? Create an account

Previous Entry | Next Entry

Moblogging Gateway Progress

So I'm making progress on the MMS to LJ gateway.

After having to throw away a chunk of coding today due to a flaky set of POP3 classes that wouldn't allow me access to message or attachment bodies, I have switched to using a new POP3 library which so far works a lot better - once I'd understood how it handled mailboxes and message attachments.

The current cut of the gateway code will now connect to a mailserver, and read all the email text (handling mail body text and text attachments), and then post it to Live Journal. This is a reasonable start, but I will need to think about controlling mail more effectively - for example using a message UIDL as a unique key to make sure that messages are only posted once - and handling some form of mail box purge. Of course, working to extract the attached JPG files is also important - and is on the to do list for tomorrow!

I've also added some debugging tools to the application itself - there's now a check button that connects to the mail server and lists its contents in a text pane in a standard Windows form - so I can at least now see what's on the mailserver. Chris at Wizards has been kind enough to set up a POP3 mailbox for my tests, so I can work on the code with out having to worry about filtering spam at this stage.

And I'm feeling quite good about where it's going, and what it's doing for my C# skills.

Comments

( 3 comments — Leave a comment )
codepope
Feb. 3rd, 2003 10:34 am (UTC)
Why not accept commands from the 'registered phone' which allow you to control the system, so you can issue purge or repost commands?
green_amber
Feb. 3rd, 2003 03:31 pm (UTC)
If I understand this right - if you get it working and I can send a photo from my SPV as an MMS, then where is it going to be "hosted" (given LJ itself hosts nothing but uder icons?)This is important to me, as someone who hasn't yet sortd out web hosting space of her own :-(
sbisson
Feb. 4th, 2003 06:10 am (UTC)
Well the plan is twofold:

1) release the source code for anyone to use it and extend the application (probably under a CC licence).

2) for me to host and run the service for selected good folk (yourself included), which would be using space and a drop box at SandM. As images tend to be small, I'm not hugely bothered...
( 3 comments — Leave a comment )