Mercurial > hg
changeset 4284:a04141f51056
Add a filename for the bundle
author | John Goerzen <jgoerzen@complete.org> |
---|---|
date | Mon, 26 Mar 2007 20:49:57 -0500 |
parents | 8625504f507c |
children | 4fd6f7e60894 |
files | hgext/patchbomb.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/patchbomb.py Mon Mar 26 20:46:49 2007 -0500 +++ b/hgext/patchbomb.py Mon Mar 26 20:49:57 2007 -0500 @@ -332,6 +332,8 @@ msg.attach(email.MIMEText.MIMEText(body, 'plain')) datapart = email.MIMEBase.MIMEBase('application', 'x-mercurial-bundle') datapart.set_payload(bundle) + datapart.add_header('Content-Disposition', 'attachment', + filename='bundle.hg') email.Encoders.encode_base64(datapart) msg.attach(datapart) msg['Subject'] = subj