[darcs-devel] [issue1148] improved mbox support

Trent Buck bugs at darcs.net
Fri Oct 17 03:25:20 UTC 2008


New submission from Trent Buck <trentbuck at gmail.com>:

Previously I was doing web scraping to create a useful mbox of an
arbitrary roundup issue.  This morning Simon "sm" Michael set up an
extension found on the roundup wiki, to allow extracting the mbox
directly from the database backend.

This implementation is still imperfect (and being server-side,
requires an admin to fix :-( ).  Particularly:

There needs to be a Reply-To: bugs at darcs.net header, so people viewing
the mbox can just hit "reply" and have their comments go to the right
place.

The subject line should contain a meaningful summary.  Apparently
roundup does not preserve the original subject line, so it should be
recreted to contain

- the string [issueNNN] at the start.  This is CRITICAL because
  otherwise replying to the email in mutt will create a new bug.

- the issue title when the email was sent (or if that's not kept, the
  current issue title).

- the property changes associated with the email, in a similar format
  to the inbound email.

For example, this message

    http://bugs.darcs.net/msg130

would have

    Subject: [issue33] wish: improve "darcs --xml" [nosy=+droundy,tommy,bortzmeyer]

Similarly because this history change did not have an associated
comment, it should become an mbox message with an empty (or stub)
body.  Otherwise just looking at the mbox, commentless changes made
via the web interface will be invisible to me.

  2005-11-30 14:01:01 droundy    set    nosy: droundy, tommy, bortzmeyer
                                        superseder: - wish: improve "darcs --xml"
  2005-11-30 14:01:01 droundy    unlink issue33 superseder

----------
messages: 6336
nosy: dagit, dmitry.kurochkin, kowey, simon, thorkilnaur, twb
status: unread
title: improved mbox support

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1148>
__________________________________


More information about the darcs-devel mailing list