Changeset 0864a52 for protocols/purple


Ignore:
Timestamp:
2015-05-28T05:26:30Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
b38f655
Parents:
faeb521
git-author:
dequis <dx@…> (08-05-15 04:16:37)
git-committer:
dequis <dx@…> (28-05-15 05:26:30)
Message:

imcb_notify_email: change parameters to take a format string

Saves some messing with g_strdup_printf for the callers, and
flags/sent_at weren't used anyway.

Also check if the mail_notifications setting is enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/purple/purple.c

    rfaeb521 r0864a52  
    12611261{
    12621262        struct im_connection *ic = purple_ic_by_gc(gc);
    1263         char *msg = g_strdup_printf("Received e-mail from %s for %s: %s <%s>", from, to, subject, url);
    1264 
    1265         imcb_notify_email(ic, set_getstr(&ic->acc->set, "notify_handle"), msg, 0, 0);
    1266         g_free(msg);
     1263
     1264        imcb_notify_email(ic, "Received e-mail from %s for %s: %s <%s>", from, to, subject, url);
    12671265
    12681266        return NULL;
Note: See TracChangeset for help on using the changeset viewer.