[darcs-users] MIME Email has Poor Boundaries.
Ralph Corderoy
ralph at inputplus.co.uk
Thu Sep 30 11:30:43 UTC 2004
Hi,
darcs often creates MIME emails, e.g. `darcs send'. It uses a constant
string as the boundary marker. This can clash with the content of the
email where the content looks like the boundary marker.
To: ralph at inputplus.co.uk
From: ralph at inputplus.co.uk
Subject: darcs patch
DarcsURL: ../u
Content-Type: multipart/mixed; boundary="aaack"
Message-Id: <E1CCnGo-0000At-00 at dayna.inputplus.co.uk>
Date: Wed, 29 Sep 2004 23:49:58 +0100
--aaack
Content-Type: text/plain
Wed Sep 29 23:41:22 BST 2004 ralph at inputplus.co.uk
* Show MIME separator bug.
Wed Sep 29 23:49:11 BST 2004 ralph at inputplus.co.uk
* Set up bug.
Wed Sep 29 23:49:34 BST 2004 ralph at inputplus.co.uk
* Show bug.
--aaack
Content-Type: text/x-darcs-patch
Content-Description: A darcs patch for your repository!
New patches:
[Show MIME separator bug.
ralph at inputplus.co.uk**20040929224122]
<
> {
addfile ./j
hunk ./j 1
+--aaack
}
[Set up bug.
ralph at inputplus.co.uk**20040929224911]
<
> {
hunk ./j 1
---aaack
+-aaack
}
[Show bug.
ralph at inputplus.co.uk**20040929224934]
<
> {
hunk ./j 1
--aaack
+x
}
Context:
Patch bundle hash:
ad5982e6b9c4863c6168dcc9c102caf848da1605
--aaack
`darcs reportbug' looks to have a similar problem but chooses
`++boundary++'. I'd guess the mail sending code needs to be given the
content parts to wrap up and pick a boundary that doesn't occur in any
of them.
Not a problem in real life, but one that may bite unexpectedly in the
future.
Cheers,
Ralph.
More information about the darcs-users
mailing list