Commit c296bf82 by anarcat

actually send multiple emails instead of a single one

parent 08c826ea
......@@ -652,7 +652,8 @@ Sign all identities? [y/N] \
if len(self.signed_keys) < 1:
logger.warning(_('no key signed, nothing to export'))
ret = True
for fpr, key in self.signed_keys.items():
if self.chosen_uid is None:
for uid in key.uids.values():
......@@ -661,14 +662,15 @@ Sign all identities? [y/N] \
except GpgRuntimeError as e:
logger.warning(_('failed to create email: %s'), e)
break
return self.sendmail(msg)
ret = ret and self.sendmail(msg)
else:
try:
msg = EmailFactory(self.tmpkeyring.export_data(fpr), fpr, self.chosen_uid, from_user, self.options.to)
except GpgRuntimeError as e:
logger.warning(_('failed to create email: %s'), e)
break
return self.sendmail(msg)
ret = self.sendmail(msg)
return ret
def sendmail(self, msg):
"""actually send the email
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment