Mercurial > hg > mercurial-crew-with-dirclash
comparison hgext/patchbomb.py @ 2292:903ab41ac7eb
allow to send email using sendmail.
default is still smtp.
update hgrc doc with sendmail info.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Mon, 15 May 2006 10:25:17 -0700 |
parents | f15056b29472 |
children | bd9c39e8f38b |
comparison
equal
deleted
inserted
replaced
2291:1cad19678b4c | 2292:903ab41ac7eb |
---|---|
252 fp.write('\n\n') | 252 fp.write('\n\n') |
253 fp.close() | 253 fp.close() |
254 else: | 254 else: |
255 ui.status('Sending ', m['Subject'], ' ...\n') | 255 ui.status('Sending ', m['Subject'], ' ...\n') |
256 mail.sendmail(sender, to + cc, m.as_string(0)) | 256 mail.sendmail(sender, to + cc, m.as_string(0)) |
257 if not opts['test'] and not opts['mbox']: | |
258 mail.close() | |
259 | 257 |
260 cmdtable = { | 258 cmdtable = { |
261 'email': | 259 'email': |
262 (patchbomb, | 260 (patchbomb, |
263 [('c', 'cc', [], 'email addresses of copy recipients'), | 261 [('c', 'cc', [], 'email addresses of copy recipients'), |