diff options
author | dequis <dx@dxzone.com.ar> | 2015-05-08 00:26:19 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-05-28 02:26:30 -0300 |
commit | faeb521e66d825e68eb7f9eef8f32ddabbfd9c49 (patch) | |
tree | e0aad1ff01d2f8a963f39fad8520c6ed38834e92 /protocols/jabber/jabber.c | |
parent | dd43c6256c143e9e6a479e024cb5b7631027efba (diff) |
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
Diffstat (limited to 'protocols/jabber/jabber.c')
-rw-r--r-- | protocols/jabber/jabber.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |