t = time(NULL) + (86400*7);
t_subject = _("Later");
} else {
- g_warning("unknown spec date\n");
+ g_warning("unknown spec date");
return NULL;
}
xml_tag_add_attr(tag, xml_attr_new("type", tmp));
g_free(tmp);
- tmp = g_strdup_printf("%lu", event->postponed);
+ tmp = g_strdup_printf("%lld", (long long)event->postponed);
xml_tag_add_attr(tag, xml_attr_new("postponed", tmp));
g_free(tmp);
xml_free_tree(rootnode);
if (prefs_file_close(pfile) < 0) {
- g_warning("failed to write event.\n");
+ g_warning("failed to write event.");
return;
}
gchar *description = NULL, *url = NULL, *recur = NULL;
VCalEvent *event = NULL;
enum icalproperty_method method = ICAL_METHOD_REQUEST;
- enum icalproperty_kind type = ICAL_VEVENT_COMPONENT;
+ enum icalcomponent_kind type = ICAL_VEVENT_COMPONENT;
gint sequence = 0, rec_occurence = 0;
time_t postponed = (time_t)0;
xmlnode = node->data;
if (strcmp2(xmlnode->tag->tag, "event") != 0) {
- g_warning("tag name != \"event\"\n");
+ g_warning("tag name != \"event\"");
return NULL;
}
xmlnode = node->data;
if (strcmp2(xmlnode->tag->tag, "answer") != 0) {
- g_warning("tag name != \"answer\"\n");
+ g_warning("tag name != \"answer\"");
return event;
}
list = xmlnode->tag->attr;
g_free(path);
if (!node) {
- g_warning("no node\n");
+ g_warning("no node");
return NULL;
}
else if (status == ICAL_PARTSTAT_TENTATIVE)
prefix = _("Tentatively Accepted: ");
else
- prefix = "Re: ";
- } else if (event->method == ICAL_METHOD_PUBLISH)
+ prefix = "Re: ";
+ } else if (event->method == ICAL_METHOD_PUBLISH) {
method_str = "PUBLISH";
- else
- method_str = "REQUEST";
+ } else if (event->method == ICAL_METHOD_CANCEL) {
+ method_str = "CANCEL";
+ } else {
+ method_str = "REQUEST";
+ }
subject = g_strdup_printf("%s%s", prefix, event->summary);
folderitem = account_get_special_folder(account, F_QUEUE);
if (!folderitem) {
- g_warning("can't find queue folder for %s\n", account->address);
+ g_warning("can't find queue folder for %s", account->address);
g_unlink(tmpfile);
g_free(tmpfile);
return FALSE;
folder_item_scan(folderitem);
if ((msgnum = folder_item_add_msg(folderitem, tmpfile, NULL, TRUE)) < 0) {
- g_warning("can't queue the message\n");
+ g_warning("can't queue the message");
g_unlink(tmpfile);
g_free(tmpfile);
return FALSE;