Edward O'Connor (hober) wrote in ol_lj_client,
Edward O'Connor
hober
ol_lj_client

  • Music:

Offline content and archiving in ljupdate

Hey there!

Existing offline content and archiving functionality in ljupdate, the Emacs client, takes advantage of Emacs' preexisting ability to manipulate vairous mailbox formats, so each LJ post is stored as though it were an email or usenet post.

Consider this example document:


X-LJ-Profile: hober-livejournal
X-LJ-Community: ol_lj_client
Subject: Offline content and archiving in ljupdate
X-LJ-Music: Juliana Hatfield - Leather Pants
X-LJ-Picture: shinji
X-LJ-Allow-Comments: yes
X-LJ-Access: public
 
Hey there!
 
Existing offline content and archiving functionality in <lj
user="ljupdate"<, the Emacs client, takes advantage of Emacs'
...



Clearly, what headers appear and how they are formatted is something to discuss; the above headers are currently presumably quite idiosyncratic to ljupdate, but I think there are perhaps many advantages to using a simple mail document format. Here are a few of them:

  1. Many languages already have library functions for accessing mailbox archives / header fields / etc.,
  2. The format isn't more complicated than need be (Yay Occam),
  3. This perhaps allows the user to easily unify his or her mail archive / Usenet archive / LiveJournal archive


Point 2 touches upon something of a pet peeve of mine: I think using some *ML as the standard offline content format would be a Bad, Bad, Bad, Bad idea.

Anyway. Stuff to think about.
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded 

  • 0 comments