Function
mimetools.choose_boundary

Signature

choose_boundary()

Documentation String

Return a string usable as a multipart boundary.

The string chosen is unique within a single program run, and incorporates the user id (if available), process id (if available), and current time. So it's very unlikely the returned string appears in message text, but there's no guarantee.

The boundary contains dots so you have to quote it in the header.