From faeb521e66d825e68eb7f9eef8f32ddabbfd9c49 Mon Sep 17 00:00:00 2001 From: dequis Date: Fri, 8 May 2015 00:26:19 -0300 Subject: Simplify display of gmail notifications - Add gmail_notifications_limit hidden setting, set to 5 by default. - Don't show "snippets" in email notifications. Not very useful and they make the whole thing seem too spammy - Show sender name instead of your own email - Default values for empty subject / sender --- protocols/jabber/jabber.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'protocols/jabber/jabber.c') diff --git a/protocols/jabber/jabber.c b/protocols/jabber/jabber.c index 184021dd..08da6e26 100644 --- a/protocols/jabber/jabber.c +++ b/protocols/jabber/jabber.c @@ -103,6 +103,10 @@ static void jabber_init(account_t *acc) s = set_add(&acc->set, "gmail_notifications", "false", set_eval_bool, acc); s->flags |= ACC_SET_OFFLINE_ONLY; + /* changing this is rarely needed so keeping it secret */ + s = set_add(&acc->set, "gmail_notifications_limit", "5", set_eval_int, acc); + s->flags |= SET_HIDDEN_DEFAULT; + s = set_add(&acc->set, "notify_handle", NULL, NULL, acc); s->flags |= ACC_SET_OFFLINE_ONLY | SET_NULL_OK; -- cgit v1.2.3