[geary/mjog/mail-merge-plugin: 72/72] MailMerge.Folder: Throttle sending rate to 30 per minute
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/mail-merge-plugin: 72/72] MailMerge.Folder: Throttle sending rate to 30 per minute
- Date: Tue, 18 Aug 2020 06:32:46 +0000 (UTC)
commit c3c134f09ac620203e756ae3580a30ef243b2423
Author: Michael Gratton <mike vee net>
Date: Sat Aug 15 11:37:14 2020 +1000
MailMerge.Folder: Throttle sending rate to 30 per minute
src/client/plugin/mail-merge/mail-merge-folder.vala | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/client/plugin/mail-merge/mail-merge-folder.vala
b/src/client/plugin/mail-merge/mail-merge-folder.vala
index 404e55a07..bd6cafca7 100644
--- a/src/client/plugin/mail-merge/mail-merge-folder.vala
+++ b/src/client/plugin/mail-merge/mail-merge-folder.vala
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]