MailMerge.Folder: Throttle sending rate to 30 per minute
This commit is contained in:
parent
182c498827
commit
c3c134f09a
1 changed files with 4 additions and 0 deletions
|
|
@ -385,6 +385,10 @@ public class MailMerge.Folder : Geary.AbstractLocalFolder {
|
|||
this.composed.unset(id);
|
||||
this._properties.set_total(last);
|
||||
notify_email_removed(Geary.Collection.single(id));
|
||||
|
||||
// Rate limit to ~30/minute for now
|
||||
GLib.Timeout.add_seconds(2, this.send_loop.callback);
|
||||
yield;
|
||||
} catch (GLib.Error err) {
|
||||
warning("Error sending merge email: %s", err.message);
|
||||
send_error(err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue