home.social

#moggie — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #moggie, aggregated by home.social.

  1. Alright!

    I think I've got code which generates numeric IDs for messages within a Maildir or Mbox, where the happy path is a relatively efficient direct-ish lookup of the target message, but enough info is encoded in the ID to recover and do the right thing if the message has moved, changed slightly or been replaced by an imposter.

    Along with hooks to notify the calling code that IDs have become inefficient and a re-indexing might be warranted.

    I can sleep now.

    #moggie #email #maildir #mbox

  2. Alright!

    I think I've got code which generates numeric IDs for messages within a Maildir or Mbox, where the happy path is a relatively efficient direct-ish lookup of the target message, but enough info is encoded in the ID to recover and do the right thing if the message has moved, changed slightly or been replaced by an imposter.

    Along with hooks to notify the calling code that IDs have become inefficient and a re-indexing might be warranted.

    I can sleep now.

    #moggie #email #maildir #mbox

  3. Alright!

    I think I've got code which generates numeric IDs for messages within a Maildir or Mbox, where the happy path is a relatively efficient direct-ish lookup of the target message, but enough info is encoded in the ID to recover and do the right thing if the message has moved, changed slightly or been replaced by an imposter.

    Along with hooks to notify the calling code that IDs have become inefficient and a re-indexing might be warranted.

    I can sleep now.

    #moggie #email #maildir #mbox

  4. Alright!

    I think I've got code which generates numeric IDs for messages within a Maildir or Mbox, where the happy path is a relatively efficient direct-ish lookup of the target message, but enough info is encoded in the ID to recover and do the right thing if the message has moved, changed slightly or been replaced by an imposter.

    Along with hooks to notify the calling code that IDs have become inefficient and a re-indexing might be warranted.

    I can sleep now.

    #moggie #email #maildir #mbox

  5. Alright!

    I think I've got code which generates numeric IDs for messages within a Maildir or Mbox, where the happy path is a relatively efficient direct-ish lookup of the target message, but enough info is encoded in the ID to recover and do the right thing if the message has moved, changed slightly or been replaced by an imposter.

    Along with hooks to notify the calling code that IDs have become inefficient and a re-indexing might be warranted.

    I can sleep now.

    #moggie #email #maildir #mbox

  6. It is very easy to write code that *usually* works with an mbox file.

    It is surprisingly tricky to write code that *reliably* works with an #mbox file.

    Almost impossible, actually, since there are multiple incompatible variants of the format.

    I keep coming back to this code and finding new problems with it. That is a good thing, I guess? Making progress...

    #email #moggie #mailpile