Fix few messages (simply wrong, or typos).
(_("Action's user argument"), message, NULL);
break;
default:
- g_warning("Unsupported action type %d", type);
+ g_warning("unsupported action type %d", type);
}
return user_str;
addrcompl_initialize();
if (! addrindex_dbus_load_completion(add_address, &error)) {
- g_warning("Failed to populate address completion list");
+ g_warning("failed to populate address completion list");
g_error_free(error);
return;
}
ADDRITEM_ID(person), ".png", NULL );
gdk_pixbuf_save(picture, name, "png", &error, NULL);
if (error) {
- g_warning("Failed to save image: %s",
- error->message);
+ g_warning("failed to save image: %s", error->message);
g_error_free(error);
}
addritem_person_set_picture( person, ADDRITEM_ID(person) ) ;
if (connection == NULL || *error) {
if (! *error)
g_set_error(error, client_object_error_quark(), 1, "Unable to connect to dbus");
- g_warning("Unable to connect to dbus: %s", (*error)->message);
+ g_warning("unable to connect to dbus: %s", (*error)->message);
return FALSE;
}
"/org/clawsmail/contacts",
"org.clawsmail.Contacts");
if (proxy == NULL) {
- g_warning("Could not get a proxy object");
+ g_warning("could not get a proxy object");
g_set_error(error, client_object_error_quark(), 1, "Could not get a proxy object");
return FALSE;
}
utf8 = g_convert(locale, -1, "UTF-8", current, &read, &write, &error);
if (error) {
- g_warning("Failed to convert [%s]: %s", charset, error->message);
+ g_warning("failed to convert [%s]: %s", charset, error->message);
g_free(current);
return NULL;
}
}
else {
if (error.message) {
- g_warning("Reception error: %s", error.message);
+ g_warning("reception error: %s", error.message);
dbus_error_free(&error);
}
debug_print("Unhandled signal received\n");
if (!org_clawsmail_Contacts_ping(proxy, &reply, error)) {
if (! *error)
g_set_error(error, client_object_error_quark(), 1, "Woops remote method failed");
- g_warning ("Woops remote method failed: %s", (*error)->message);
+ g_warning("woops remote method failed: %s", (*error)->message);
}
if (reply && strcmp("PONG", reply) == 0)
result = TRUE;
proxy, contact->book, dbus_contact.data, dbus_contact.emails, error)) {
if (! *error)
g_set_error(error, client_object_error_quark(), 1, "Woops remote method failed");
- g_warning ("Woops remote method failed: %s", (*error)->message);
+ g_warning("woops remote method failed: %s", (*error)->message);
dbus_contact_free(&dbus_contact);
return -1;
}
proxy, "*", NULL, &list, error)) {
if (! *error)
g_set_error(error, client_object_error_quark(), 1, "Woops remote method failed");
- g_warning ("Woops remote method failed: %s", (*error)->message);
+ g_warning("woops remote method failed: %s", (*error)->message);
g_strfreev(list);
return FALSE;
}
if (!org_clawsmail_Contacts_show_addressbook(proxy, compose, error)) {
if (! *error)
g_set_error(error, client_object_error_quark(), 1, "Woops remote method failed");
- g_warning ("Woops remote method failed: %s", (*error)->message);
+ g_warning("woops remote method failed: %s", (*error)->message);
}
}
if (!org_clawsmail_Contacts_book_list(proxy, &book_names, error)) {
if (! *error)
g_set_error(error, client_object_error_quark(), 1, "Woops remote method failed");
- g_warning ("Woops remote method failed: %s", (*error)->message);
+ g_warning("woops remote method failed: %s", (*error)->message);
g_strfreev(book_names);
return books;
}
bus = dbus_bus_get (DBUS_BUS_SESSION, error);
if (!bus) {
- g_warning ("Failed to connect to the D-BUS daemon: %s", error->message);
+ g_warning("failed to connect to the D-BUS daemon: %s", error->message);
dbus_error_free(error);
return;
}
if (!org_clawsmail_Contacts_get_vcard(proxy, account, &vcard, error)) {
if (! *error)
g_set_error(error, client_object_error_quark(), 1, "Woops remote method failed");
- g_warning ("Woops remote method failed: %s", (*error)->message);
+ g_warning("woops remote method failed: %s", (*error)->message);
g_free(vcard);
vcard = NULL;
}
void addressbook_install_hooks(GError** error) {
if ((guint)-1 == hooks_register_hook(COMPOSE_CREATED_HOOKLIST, my_compose_create_hook, NULL)) {
- g_warning("Could not register hook for adding vCards");
+ g_warning("could not register hook for adding vCards");
if (error) {
g_set_error(error, client_object_error_quark(), 1,
"Could not register hook for adding vCards");
if ( !is_dir_exist(indexdir) ) {
if ( make_dir(indexdir) < 0 ) {
addrindex_set_file_path( addrIndex, get_rc_dir() );
- g_warning( "couldn't create dir '%s'", indexdir);
+ g_warning("couldn't create dir '%s'", indexdir);
} else {
if (!migrate_addrbook(get_rc_dir(), indexdir)) {
remove_dir_recursive(indexdir);
node->list = g_list_append( node->list, newNode );
}
else {
- g_warning("Invalid tag");
+ g_warning("invalid tag");
}
}
}
}
if (avatarr == NULL) {
- g_warning("Internal rendering invoked with NULL argument");
+ g_warning("internal rendering invoked with NULL argument");
return FALSE;
}
if (avatarr->image != NULL) {
- g_warning("Memory leak: image widget not destroyed");
+ g_warning("memory leak: image widget not destroyed");
}
aface = procmsg_msginfo_get_avatar(avatarr->full_msginfo, AVATAR_FACE);
void avatars_init(void)
{
if (avatar_render_hook_id != HOOK_NONE) {
- g_warning("Internal avatars rendering already initialized");
+ g_warning("internal avatars rendering already initialized");
return;
}
avatar_render_hook_id = hooks_register_hook(AVATAR_IMAGE_RENDER_HOOKLIST, avatars_internal_rendering_hook, NULL);
if (avatar_render_hook_id == HOOK_NONE) {
- g_warning("Failed to register avatars internal rendering hook");
+ g_warning("failed to register avatars internal rendering hook");
}
}
debug_print("%s %s exited with status %d\n",
args[0], filename, WEXITSTATUS(status));
if (truncate(filename, 0) < 0)
- g_warning("couln't truncate: %s", filename);
+ g_warning("couldn't truncate: %s", filename);
}
}
}
if (n_read < sizeof(buf) && claws_ferror(src_fp))
break;
if (claws_fwrite(buf, 1, n_read, dest_fp) < n_read) {
- g_warning("writing to %s failed.", dest);
+ g_warning("writing to %s failed", dest);
claws_fclose(dest_fp);
claws_fclose(src_fp);
claws_unlink(dest);
if (n_read < sizeof(buf) && claws_ferror(src_fp))
break;
if (claws_fwrite(buf, 1, n_read, dest_fp) < n_read) {
- g_warning("writing to %s failed.", dest);
+ g_warning("writing to %s failed", dest);
claws_fclose(dest_fp);
claws_fclose(src_fp);
claws_unlink(dest);
gint move_file(const gchar *src, const gchar *dest, gboolean overwrite)
{
if (overwrite == FALSE && is_file_exist(dest)) {
- g_warning("move_file(): file %s already exists.", dest);
+ g_warning("move_file(): file %s already exists", dest);
return -1;
}
}
if (err) {
- g_warning("writing to %s failed.", dest);
+ g_warning("writing to %s failed", dest);
claws_unlink(dest);
return -1;
}
}
if (r == EOF) {
- g_warning("writing to %s failed.", dest);
+ g_warning("writing to %s failed", dest);
claws_fclose(dest_fp);
claws_fclose(src_fp);
claws_unlink(dest);
} else if (proxy_info->proxy_type == PROXY_SOCKS4) {
return socks4_connect(sock, hostname, port);
} else {
- g_warning("proxy_connect: unknown SOCKS type: %d\n",
+ g_warning("proxy_connect: unknown SOCKS type: %d",
proxy_info->proxy_type);
}
session->conn_id = sock_connect_async(server, port, session_connect_cb,
session);
if (session->conn_id < 0) {
- g_warning("can't connect to server.");
+ g_warning("can't connect to server");
session_close(session);
if (session->connect_finished)
session->connect_finished(session, FALSE);
sock = sock_connect(server, port);
if (sock == NULL) {
- g_warning("can't connect to server.");
+ g_warning("can't connect to server");
session_close(session);
if (session->connect_finished)
session->connect_finished(session, FALSE);
session->conn_id = 0;
if (!sock) {
- g_warning("can't connect to server.");
+ g_warning("can't connect to server");
session->state = SESSION_ERROR;
if (session->connect_finished)
session->connect_finished(session, FALSE);
sock_set_nonblocking_mode(sock, FALSE);
if (proxy_connect(sock, session->server, session->port,
session->proxy_info) < 0) {
- g_warning("can't establish SOCKS connection.");
+ g_warning("can't establish SOCKS connection");
session->state = SESSION_ERROR;
return -1;
}
if (session->ssl_type == SSL_TUNNEL) {
sock_set_nonblocking_mode(sock, FALSE);
if (!ssl_init_socket(sock)) {
- g_warning("can't initialize SSL/TLS.");
+ g_warning("can't initialize SSL/TLS");
log_error(LOG_PROTOCOL, _("SSL/TLS handshake failed\n"));
session->state = SESSION_ERROR;
if (session->connect_finished)
{
Session *session = SESSION(data);
- g_warning("session timeout.");
+ g_warning("session timeout");
if (session->io_tag > 0) {
g_source_remove(session->io_tag);
sock_set_nonblocking_mode(session->sock, FALSE);
if (!ssl_init_socket(session->sock)) {
- g_warning("couldn't start STARTTLS session.");
+ g_warning("couldn't start STARTTLS session");
if (nb_mode)
sock_set_nonblocking_mode(session->sock, session->nonblocking);
return -1;
}
if (0 < session->read_buf_len) {
- g_warning("protocol violation: suffix data after STARTTLS detected.");
+ g_warning("protocol violation: suffix data after STARTTLS detected");
if (nb_mode)
sock_set_nonblocking_mode(session->sock, session->nonblocking);
return -1;
SESSION_BUFFSIZE - 1);
if (read_len == -1 && session->state == SESSION_DISCONNECTED) {
- g_warning ("sock_read: session disconnected");
+ g_warning("sock_read: session disconnected");
if (session->io_tag > 0) {
g_source_remove(session->io_tag);
session->io_tag = 0;
if (FD_ISSET(fd, &fds)) {
return 0;
} else {
- g_warning("Socket IO timeout");
+ g_warning("socket IO timeout");
log_error(LOG_PROTOCOL, _("Socket IO timeout.\n"));
return -1;
}
g_io_channel_set_encoding(source, NULL, &err);
if (err) {
- g_warning("can unset encoding: %s", err->message);
+ g_warning("can't unset encoding: %s", err->message);
g_error_free(err);
return FALSE;
}
if (claws_ssl_get_cert_file()) {
r = gnutls_certificate_set_x509_trust_file(xcred, claws_ssl_get_cert_file(), GNUTLS_X509_FMT_PEM);
if (r < 0)
- g_warning("Can't read SSL_CERT_FILE '%s': %s",
+ g_warning("can't read SSL_CERT_FILE '%s': %s",
claws_ssl_get_cert_file(),
gnutls_strerror(r));
} else {
}
if (r < 0)
- g_warning("Can't read SSL_CERT_FILE '%s': %s",
+ g_warning("can't read SSL_CERT_FILE '%s': %s",
claws_ssl_get_cert_file(),
gnutls_strerror(r));
} else {
#define TRY(func) { \
if (!(func)) \
{ \
- g_warning("Failed to write template to file"); \
+ g_warning("failed to write template to file"); \
if (fp) claws_fclose(fp); \
if (new) claws_unlink(new); \
g_free(new); \
#define TRY_NO_CLOSE(func) { \
if (!(func)) \
{ \
- g_warning("Failed to write template to file"); \
+ g_warning("failed to write template to file"); \
if (new) claws_unlink(new); \
g_free(new); \
g_free(filename); \
if (tmp) {
if (!is_file_entry_regular(tmp)) {
- g_warning("Refusing to insert '%s', not a regular file\n", tmp);
+ g_warning("refusing to insert '%s', not a regular file", tmp);
} else if (!g_file_get_contents(tmp, body, NULL, NULL)) {
g_warning("couldn't set insert file '%s' in body", value);
}
/* turn the command-line string into an array */
if (!g_shell_parse_argv(cmdline, NULL, &argv, &err)) {
- g_warning("could not parse command line from '%s': %s\n", cmdline, err->message);
+ g_warning("could not parse command line from '%s': %s", cmdline, err->message);
g_error_free(err);
return NULL;
}
NULL, NULL, &pid, NULL, &fd, NULL, &err)
&& err)
{
- g_warning("could not spawn '%s': %s\n", cmdline, err->message);
+ g_warning("could not spawn '%s': %s", cmdline, err->message);
g_error_free(err);
g_strfreev(argv);
return NULL;
g_free(tmp);
if (strlen(out) != *out_len) {
- g_warning ("strlen(out) %"G_GSIZE_FORMAT" != *out_len %"G_GSIZE_FORMAT, strlen(out), *out_len);
+ g_warning("strlen(out) %"G_GSIZE_FORMAT" != *out_len %"G_GSIZE_FORMAT, strlen(out), *out_len);
}
return out;
while (xml_parse_next_tag(file) == 0) {
if (file->level < level) break;
if (file->level == level) {
- g_warning("xml_build_tree(): Parse error in %s", file->path);
+ g_warning("xml_build_tree(): parse error in %s", file->path);
break;
}
file->need_codeconv = FALSE;
}
} else {
- g_warning("Can't get XML DTD in %s", file->path);
+ g_warning("can't get XML DTD in %s", file->path);
return -1;
}
}
if (xml_get_parenthesis(file, buf, sizeof(buf)) < 0) {
- g_warning("xml_parse_next_tag(): Can't parse next tag in %s", file->path);
+ g_warning("xml_parse_next_tag(): can't parse next tag in %s", file->path);
return -1;
}
/* end-tag */
if (buf[0] == '/') {
if (strcmp(xml_get_current_tag(file)->tag, buf + 1) != 0) {
- g_warning("xml_parse_next_tag(): Tag name mismatch in %s : %s (%s)", file->path, buf, xml_get_current_tag(file)->tag);
+ g_warning("xml_parse_next_tag(): tag name mismatch in %s : %s (%s)", file->path, buf, xml_get_current_tag(file)->tag);
return -1;
}
xml_pop_tag(file);
}
if (strlen(buf) == 0) {
- g_warning("xml_parse_next_tag(): Tag name is empty in %s", file->path);
+ g_warning("xml_parse_next_tag(): tag name is empty in %s", file->path);
return -1;
}
while (g_ascii_isspace(*bufp)) bufp++;
attr_name = bufp;
if ((p = strchr(attr_name, '=')) == NULL) {
- g_warning("xml_parse_next_tag(): Syntax error in %s, tag (a) %s", file->path, attr_name);
+ g_warning("xml_parse_next_tag(): syntax error in %s, tag (a) %s", file->path, attr_name);
return -1;
}
bufp = p;
while (g_ascii_isspace(*bufp)) bufp++;
if (*bufp != '"' && *bufp != '\'') {
- g_warning("xml_parse_next_tag(): Syntax error in %s, tag (b) %s", file->path, bufp);
+ g_warning("xml_parse_next_tag(): syntax error in %s, tag (b) %s", file->path, bufp);
return -1;
}
quote = *bufp;
bufp++;
attr_value = bufp;
if ((p = strchr(attr_value, quote)) == NULL) {
- g_warning("xml_parse_next_tag(): Syntax error in %s, tag (c) %s", file->path, attr_value);
+ g_warning("xml_parse_next_tag(): syntax error in %s, tag (c) %s", file->path, attr_value);
return -1;
}
bufp = p;
while ((start = strchr(p, '&')) != NULL) {
if ((end = strchr(start + 1, ';')) == NULL) {
- g_warning("Unescaped '&' appeared");
+ g_warning("unescaped '&' appeared");
p = start + 1;
continue;
}
fp = procmime_get_first_text_content(msginfo);
}
if (fp == NULL) {
- g_warning("Can't get text part");
+ g_warning("can't get text part");
}
if (fp != NULL) {
outfile = procmime_get_tmp_file_name(child);
if ((err = procmime_get_part(outfile, child)) < 0)
- g_warning("Can't get the part of multipart message. (%s)", g_strerror(-err));
+ g_warning("can't get the part of multipart message. (%s)", g_strerror(-err));
else {
gchar *content_type;
procmsg_save_to_outbox(outbox, tmp_enc_file, TRUE);
claws_unlink(tmp_enc_file);
} else {
- g_warning("Can't open file '%s'", tmp_enc_file);
+ g_warning("can't open file '%s'", tmp_enc_file);
}
} else {
g_warning("couldn't get tempfile");
}
if (!compose->to_list && !compose->newsgroup_list) {
- g_warning("can't get recipient list.");
+ g_warning("can't get recipient list");
return COMPOSE_QUEUE_ERROR_NO_MSG;
}
}
} else {
if (prefs_common_get_ext_editor_cmd())
- g_warning("External editor command-line is invalid: '%s'",
+ g_warning("external editor command-line is invalid: '%s'",
prefs_common_get_ext_editor_cmd());
cmd = g_strdup_printf(DEFAULT_EDITOR_CMD, tmp);
}
waitpid(compose->exteditor_pid, NULL, 0);
#endif /* G_OS_WIN32 */
- g_warning("Terminated process id: %d. "
- "Temporary file: %s", pid, compose->exteditor_file);
+ g_warning("terminated process id: %d, "
+ "temporary file: %s", pid, compose->exteditor_file);
g_spawn_close_pid(compose->exteditor_pid);
compose_set_ext_editor_sensitive(compose, TRUE);
cm_menu_set_sensitive_full(compose->ui_manager, "Menu/Edit/Undo", undostruct->undo_state);
break;
default:
- g_warning("Undo state not recognized");
+ g_warning("undo state not recognized");
break;
}
cm_menu_set_sensitive_full(compose->ui_manager, "Menu/Edit/Redo", undostruct->redo_state);
break;
default:
- g_warning("Redo state not recognized");
+ g_warning("redo state not recognized");
break;
}
}
if (action_table[action].do_action)
action_table[action].do_action(text);
else
- g_warning("Not implemented yet.");
+ g_warning("not implemented yet");
}
}
mbox = g_filename_from_utf8(utf8mbox, -1, NULL, NULL, NULL);
if (!mbox) {
- g_warning("export_ok_cb(): failed to convert character set.");
+ g_warning("export_ok_cb(): failed to convert character set");
mbox = g_strdup(utf8mbox);
}
conv_get_locale_charset_str(),
CS_UTF_8);
if (!filename) {
- g_warning("export_filesel_cb(): failed to convert character set.");
+ g_warning("export_filesel_cb(): failed to convert character set");
filename = g_strdup(oldstr);
}
gtk_entry_set_text(GTK_ENTRY(file_entry), filename);
if (xml_file_put_xml_decl(pfile->fp) < 0) {
prefs_file_close_revert(pfile);
- g_warning("failed to start write folder list.");
+ g_warning("failed to start write folder list");
return;
}
tag = xml_tag_new("folderlist");
if (xml_write_tree(rootnode, pfile->fp) < 0) {
prefs_file_close_revert(pfile);
- g_warning("failed to write folder list.");
+ g_warning("failed to write folder list");
} else if (prefs_file_close(pfile) < 0) {
- g_warning("failed to write folder list.");
+ g_warning("failed to write folder list");
}
xml_free_tree(rootnode);
}
continue;
if (folder->klass->create_tree(folder) < 0) {
- g_warning("%s: can't create the folder tree.",
+ g_warning("%s: can't create the folder tree",
LOCAL_FOLDER(folder)->rootpath);
continue;
}
node = gtk_cmctree_find_by_row_data(ctree, root, item);
if (!node)
- g_warning("%s not found.", item->path);
+ g_warning("%s not found", item->path);
else {
parent = GTK_CMCTREE_ROW(node)->parent;
if (*prev && parent == GTK_CMCTREE_ROW(*prev)->parent)
tmp = conv_codeset_strdup(buf, src_codeset, dest_codeset);
if (!tmp) {
- g_warning("Failed to convert character set of action configuration");
+ g_warning("failed to convert character set of action configuration");
tmp = g_strdup(buf);
}
cm_return_val_if_fail (tree_column >= 0, NULL);
if (tree_column >= columns) {
- g_warning("Wrong tree column");
+ g_warning("wrong tree column");
tree_column = 0;
print_backtrace();
}
return;
error:
- g_warning ("Can't convert string to GtkCMUnit.");
+ g_warning("can't convert string to GtkCMUnit");
}
switch (*format)
{
case 0:
- g_warning ("%s: unit-menu-format string ended within %%-sequence",
+ g_warning("%s: unit-menu-format string ended within %%-sequence",
G_STRFUNC);
break;
break;
default:
- g_warning ("%s: unit-menu-format contains unknown format "
+ g_warning("%s: unit-menu-format contains unknown format "
"sequence '%%%c'", G_STRFUNC, *format);
break;
}
wcs = g_utf8_to_ucs4(str, -1, &items_read, &items_written, &error);
if (error != NULL) {
- g_warning("An error occurred while converting a string from UTF-8 to UCS-4: %s",
+ g_warning("an error occurred while converting a string from UTF-8 to UCS-4: %s",
error->message);
g_error_free(error);
}
wcs = g_utf8_to_ucs4(str, -1, &items_read, &items_written, &error);
if (error != NULL) {
- g_warning("An error occurred while converting a string from UTF-8 to UCS-4: %s",
+ g_warning("an error occurred while converting a string from UTF-8 to UCS-4: %s",
error->message);
g_error_free(error);
}
if (!is_file_exist(filename)) {
gdk_pixbuf_save(picture, filename, "png", &error, NULL);
if (error) {
- g_warning("Failed to save image: %s",
+ g_warning("failed to save image: %s",
error->message);
g_error_free(error);
}
stream = procmime_get_part_as_inputstream(imageviewer->mimeinfo);
if (stream == NULL) {
- g_warning("Couldn't get image MIME part");
+ g_warning("couldn't get image MIME part");
return;
}
g_object_unref(stream);
if (error) {
- g_warning("Couldn't load image: %s\n", error->message);
+ g_warning("couldn't load image: %s", error->message);
gtk_label_set_text(GTK_LABEL(imageviewer->error_lbl), _("Error:"));
gtk_label_set_text(GTK_LABEL(imageviewer->error_msg), error->message);
gtk_notebook_set_current_page(GTK_NOTEBOOK(imageviewer->notebook), 0);
}
if (!pixbuf && !animation) {
- g_warning("Couldn't load the image");
+ g_warning("couldn't load the image");
return;
}
msginfo = (MsgInfo *)msglist->data;
src = msginfo->folder;
if (!same_dest_ok && src == dest) {
- g_warning("the src folder is identical to the dest.");
+ g_warning("the src folder is identical to the dest");
return -1;
}
new_item = imap_create_folder(folder, item, name);
if (!new_item) {
- g_warning("Can't create '%s'", name);
+ g_warning("can't create '%s'", name);
if (!folder->inbox) return NULL;
new_item = imap_create_folder(folder, folder->inbox, name);
if (!new_item)
- g_warning("Can't create '%s' under INBOX", name);
+ g_warning("can't create '%s' under INBOX", name);
else
new_item->stype = stype;
} else
if (strchr(name, imap_get_path_separator(session, IMAP_FOLDER(folder), item->path, &ok)) != NULL ||
is_fatal(ok)) {
- g_warning("New folder name must not contain the namespace "
- "path separator");
+ g_warning("new folder name must not contain the namespace path separator");
return -1;
}
mbox = g_filename_from_utf8(utf8mbox, -1, NULL, NULL, NULL);
if (!mbox) {
- g_warning("import_ok_cb(): failed to convert character set.");
+ g_warning("import_ok_cb(): failed to convert character set");
mbox = g_strdup(utf8mbox);
}
utf8_filename = g_filename_to_utf8(filename, -1, NULL, NULL, NULL);
if (!utf8_filename) {
- g_warning("import_filesel_cb(): failed to convert character set.");
+ g_warning("import_filesel_cb(): failed to convert character set");
utf8_filename = g_strdup(filename);
}
gtk_entry_set_text(GTK_ENTRY(file_entry), utf8_filename);
g_free(client_id);
if (error_string_ret[0] || mainwin->smc_conn == NULL)
- g_warning ("While connecting to session manager: %s.",
+ g_warning("while connecting to session manager: %s",
error_string_ret);
else {
SmPropValue *vals;
"com.google.code.Awn");
dbus_item_hook_id = hooks_register_hook (FOLDER_ITEM_UPDATE_HOOKLIST, dbus_status_update_item_hook, NULL);
if (dbus_item_hook_id == HOOK_NONE) {
- g_warning("Failed to register folder item update hook");
+ g_warning("failed to register folder item update hook");
uninstall_dbus_status_handler();
return;
}
dbus_folder_hook_id = hooks_register_hook (FOLDER_UPDATE_HOOKLIST, dbus_status_update_folder_hook, NULL);
if (dbus_folder_hook_id == HOOK_NONE) {
- g_warning("Failed to register folder update hook");
+ g_warning("failed to register folder update hook");
uninstall_dbus_status_handler();
return;
}
}
/* make the crash-indicator file */
if (str_write_to_file("foo", get_crashfile_name(), FALSE) < 0) {
- g_warning("Can't create the crash-indicator file.");
+ g_warning("can't create the crash-indicator file");
}
inc_autocheck_timer_init(mainwin);
buf[sizeof(buf) - 1] = '\0';
if (!STRNCMP(buf, ".\n")) break;
if (claws_fputs(buf, stdout) == EOF) {
- g_warning("writing to stdout failed.");
+ g_warning("writing to stdout failed");
break;
}
}
buf[sizeof(buf) - 1] = '\0';
if (!STRNCMP(buf, ".\n")) break;
if (claws_fputs(buf, stdout) == EOF) {
- g_warning("writing to stdout failed.");
+ g_warning("writing to stdout failed");
break;
}
}
buf[sizeof(buf) - 1] = '\0';
if (!STRNCMP(buf, ".\n")) break;
if (claws_fputs(buf, stdout) == EOF) {
- g_warning("writing to stdout failed.");
+ g_warning("writing to stdout failed");
break;
}
}
gtk_widget_queue_resize(vpaned);
break;
default:
- g_warning("Unknown layout");
+ g_warning("unknown layout");
return;
}
addressbook_dbus_open(FALSE, &error);
if (error) {
- g_warning("Failed to open address book: %s", error->message);
+ g_warning("failed to open address book: %s", error->message);
g_error_free(error);
}
#endif
/* ignore empty lines on the head */
do {
if (claws_fgets(buf, sizeof(buf), mbox_fp) == NULL) {
- g_warning("can't read mbox file.");
+ g_warning("can't read mbox file");
claws_fclose(mbox_fp);
return -1;
}
lockfile = g_strdup_printf("%s.%d", base, getpid());
if ((lockfp = claws_fopen(lockfile, "wb")) == NULL) {
FILE_OP_ERROR(lockfile, "claws_fopen");
- g_warning("can't create lock file '%s', use 'flock' instead of 'file' if possible.", lockfile);
+ g_warning("can't create lock file '%s', use 'flock' instead of 'file' if possible", lockfile);
g_free(lockfile);
return -1;
}
return -1;
}
if (retry == 0)
- g_warning("mailbox is owned by another"
- " process, waiting...");
+ g_warning("mailbox is owned by another process, waiting");
retry++;
sleep(5);
}
while ((n_read = read(srcfd, buf, sizeof(buf))) > 0) {
if (claws_fwrite(buf, 1, n_read, dest_fp) < n_read) {
- g_warning("writing to %s failed.", dest);
+ g_warning("writing to %s failed", dest);
claws_fclose(dest_fp);
claws_unlink(dest);
return -1;
if ((fp = claws_fopen(mbox, "wb")) == NULL) {
FILE_OP_ERROR(mbox, "claws_fopen");
- g_warning("can't truncate mailbox to zero.");
+ g_warning("can't truncate mailbox to zero");
return;
}
claws_safe_fclose(fp);
statusbar_pop_all();
if (!file) {
- g_warning("can't get message file path.");
+ g_warning("can't get message file path");
textview_show_error(messageview->mimeview->textview);
return -1;
}
file = procmsg_get_message_file_path(msginfo);
if (!file) {
- g_warning("can't get message file path.");
+ g_warning("can't get message file path");
return;
}
addressbook_dbus_open(FALSE, &error);
if (error) {
- g_warning("Failed to open address book: %s", error->message);
+ g_warning("failed to open address book: %s", error->message);
g_error_free(error);
}
#endif
cm_return_if_fail(path != NULL);
if ((dp = g_dir_open(path, 0, &error)) == NULL) {
- g_warning("Couldn't open directory '%s': %s (%d)",
+ g_warning("couldn't open directory '%s': %s (%d)",
path, error->message, error->code);
g_error_free(error);
g_free(path);
cm_return_val_if_fail(msginfo != NULL, -1);
if (msginfo->folder == dest) {
- g_warning("the src folder is identical to the dest.");
+ g_warning("the src folder is identical to the dest");
return -1;
}
{ \
if (!is_dir_exist(dir)) { \
if (is_file_exist(dir)) { \
- g_warning("File '%s' already exists. " \
- "Can't create folder.", dir); \
+ g_warning("file '%s' already exists, " \
+ "can't create folder", dir); \
return -1; \
} \
if (make_dir_hier(dir) < 0) \
size_t ni; \
\
if ((ni = claws_fread(&idata, sizeof(idata), 1, fp)) != 1) { \
- g_warning("read_int: Cache data corrupted, read %"G_GSIZE_FORMAT" of %"G_GSIZE_FORMAT" at " \
+ g_warning("read_int: cache data corrupted, read %"G_GSIZE_FORMAT" of %"G_GSIZE_FORMAT" at " \
"offset %ld", ni, sizeof(idata), ftell(fp)); \
procmsg_msginfo_free(&msginfo); \
error = TRUE; \
if (!swapping) {
if ((ni = claws_fread(&len, sizeof(len), 1, fp) != 1) ||
len > G_MAXINT) {
- g_warning("read_data_str: Cache data (len) corrupted, read %"G_GSIZE_FORMAT
+ g_warning("read_data_str: cache data (len) corrupted, read %"G_GSIZE_FORMAT
" of %"G_GSIZE_FORMAT" bytes at offset %ld", ni, sizeof(len),
ftell(fp));
return -1;
} else {
if ((ni = claws_fread(&len, sizeof(len), 1, fp) != 1) ||
bswap_32(len) > G_MAXINT) {
- g_warning("read_data_str: Cache data (len) corrupted, read %"G_GSIZE_FORMAT
+ g_warning("read_data_str: cache data (len) corrupted, read %"G_GSIZE_FORMAT
" of %"G_GSIZE_FORMAT" bytes at offset %ld", ni, sizeof(len),
ftell(fp));
return -1;
}
if ((ni = claws_fread(tmpstr, 1, len, fp)) != len) {
- g_warning("read_data_str: Cache data corrupted, read %"G_GSIZE_FORMAT" of %u "
+ g_warning("read_data_str: cache data corrupted, read %"G_GSIZE_FORMAT" of %u "
"bytes at offset %ld",
ni, len, ftell(fp));
g_free(tmpstr);
return 0;
if(len > 2*1024*1024) {
- g_warning("read_data_str: refusing to allocate %d bytes.", len);
+ g_warning("read_data_str: refusing to allocate %d bytes", len);
return -1;
}
filename = procmsg_get_message_file_path(msginfo);
if (!filename) {
- g_warning("can't get message file path.");
+ g_warning("can't get message file path");
return err;
}
tinfo = procheader_parse_file(filename, msginfo->flags, TRUE, TRUE);
if (prefs_write_param(param, pfile->fp) < 0) {
g_warning("failed to write " PREFS_BLOCK_NAME
- " configuration to file\n");
+ " configuration to file");
prefs_file_close_revert(pfile);
return;
}
return;
if (prefs_write_param(param, pfile->fp) < 0) {
- g_warning("failed to write AddressKeeper configuration to file");
+ g_warning("failed to write Address Keeper configuration to file");
prefs_file_close_revert(pfile);
return;
}
return;
if (prefs_write_param(param, pref_file->fp) < 0) {
- g_warning("failed to write Archiver Plugin configuration");
+ g_warning("failed to write Archiver plugin configuration");
prefs_file_close_revert(pref_file);
return;
}
debug_print("Cut-off date: %s\n", before);
if ((date = iso2GDate(before)) == NULL) {
- g_warning("Bad date format: %s", before);
+ g_warning("bad date format: %s", before);
return FALSE;
}
}
if (! g_date_valid(file_t)) {
- g_warning("Invalid msg date");
+ g_warning("invalid msg date");
return FALSE;
}
return TRUE;
if (prefs_write_param(prefs, pref_file->fp) < 0) {
- g_warning("failed to write AttRemover Plugin configuration");
+ g_warning("failed to write AttRemover plugin configuration");
prefs_file_close_revert(pref_file);
return TRUE;
}
return;
if (prefs_write_param(param, pfile->fp) < 0) {
- g_warning("failed to write AttachWarner configuration to file");
+ g_warning("failed to write Attach warner configuration to file");
prefs_file_close_revert(pfile);
return;
}
return;
if (prefs_write_param(param, pfile->fp) < 0) {
- g_warning("Failed to write Bogofilter configuration to file");
+ g_warning("failed to write Bogofilter configuration to file");
prefs_file_close_revert(pfile);
return;
}
if (hook_id == HOOK_NONE)
hook_id = hooks_register_hook(MAIL_LISTFILTERING_HOOKLIST, mail_filtering_hook, NULL);
if (hook_id == HOOK_NONE) {
- g_warning("Failed to register mail filtering hook");
+ g_warning("failed to register mail filtering hook");
config.process_emails = FALSE;
}
}
return;
if (prefs_write_param(param, pfile->fp) < 0) {
- g_warning("Failed to write Bsfilter configuration to file");
+ g_warning("failed to write Bsfilter configuration to file");
prefs_file_close_revert(pfile);
return;
}
if (hook_id == HOOK_NONE)
hook_id = hooks_register_hook(MAIL_FILTERING_HOOKLIST, mail_filtering_hook, NULL);
if (hook_id == HOOK_NONE) {
- g_warning("Failed to register mail filtering hook");
+ g_warning("failed to register mail filtering hook");
config.process_emails = FALSE;
}
}
outfile = procmime_get_tmp_file_name(mimeinfo);
if (procmime_get_part(outfile, mimeinfo) < 0)
- g_warning("Can't get the part of multipart message.");
+ g_warning("can't get the part of multipart message");
else {
max = config.clamav_max_size * 1048576; /* maximum file size */
if (g_stat(outfile, &info) == -1)
- g_warning("Can't determine file size");
+ g_warning("can't determine file size");
else {
if (info.st_size <= max) {
debug_print("Scanning %s\n", outfile);
debug_print("status: %d\n", result->status);
switch (result->status) {
case NO_SOCKET:
- g_warning("[scanning] No socket information");
+ g_warning("[scanning] no socket information");
if (config.alert_ack) {
alertpanel_error(_("Scanning\nNo socket information.\nAntivirus disabled."));
config.alert_ack = FALSE;
Clamd_Stat status = clamd_prepare();
switch (status) {
case NO_SOCKET:
- g_warning("[init] No socket information");
+ g_warning("[init] no socket information");
alertpanel_error(_("Init\nNo socket information.\nAntivirus disabled."));
break;
case NO_CONNECTION:
Clamd_Stat status = clamd_prepare();
switch (status) {
case NO_SOCKET:
- g_warning("[New config] No socket information");
+ g_warning("[New config] no socket information");
alertpanel_error(_("New config\nNo socket information.\nAntivirus disabled."));
break;
case NO_CONNECTION:
/*debug_set_mode(TRUE);*/
/*debug_print("%s : %s\n", folder, path);*/
if (! path) {
- g_warning("Missing path");
+ g_warning("missing path");
return;
}
if (config && config->ConfigType == AUTOMATIC &&
void clamd_create_config_manual(const gchar* host, int port) {
if (! host || port < 1) {
- g_warning("Missing host or port < 1");
+ g_warning("missing host or port < 1");
return;
}
if (config && config->ConfigType == MANUAL &&
const gchar *plugin_desc(void)
{
- return _("This Plugin is only a demo of how to write plugins for Claws Mail. "
+ return _("This plugin is only a demo of how to write plugins for Claws Mail. "
"It installs a hook for new log output and writes it to stdout."
"\n\n"
"It is not really useful.");
return;
if (prefs_write_param(param, pref_file->fp) < 0) {
- g_warning("failed to write Dillo Plugin configuration\n");
+ g_warning("failed to write Dillo plugin configuration");
prefs_file_close_revert(pref_file);
return;
}
utf8_filename = g_filename_to_utf8(filename, -1, NULL, NULL, NULL);
if (!utf8_filename) {
- g_warning("fancy_prefs_stylesheet_browse_cb(): failed to convert character set.");
+ g_warning("fancy_prefs_stylesheet_browse_cb(): failed to convert character set");
utf8_filename = g_strdup(filename);
}
gtk_entry_set_text(GTK_ENTRY(dest), utf8_filename);
return;
if (prefs_write_param(param, pref_file->fp) < 0) {
- g_warning("failed to write Fancy Plugin configuration");
+ g_warning("failed to write Fancy plugin configuration");
prefs_file_close_revert(pref_file);
return;
}
if (prefs_write_param(cm_gdata_param, pfile->fp) < 0) {
debug_print("failed!\n");
- g_warning("GData Plugin: Failed to write plugin configuration to file");
+ g_warning("GData plugin: failed to write plugin configuration to file");
prefs_file_close_revert(pfile);
return;
}
lock_images_cache();
auto i = m_images.find(url);
if(i == m_images.end()) {
- g_warning("image '%s' was not found in pixbuf cache\n", url);
+ g_warning("image '%s' was not found in pixbuf cache", url);
unlock_images_cache();
return;
}
if(i->second.first != NULL && i->second.first != image) {
- g_warning("pixbuf pointer for image '%s' changed\n", url);
+ g_warning("pixbuf pointer for image '%s' changed", url);
g_object_unref(i->second.first);
}
auto i = m_images.find(l->first);
if(i == m_images.end()) {
- g_warning("failed to find '%s' in m_images\n", l->first.c_str());
+ g_warning("failed to find '%s' in m_images", l->first.c_str());
continue;
}
const gchar *charset;
if (string == NULL) {
- g_warning("LH: couldn't get MIME part file\n");
+ g_warning("LH: couldn't get MIME part file");
return;
}
pixbuf = procmime_get_part_as_pixbuf(p, &error);
if (error != NULL) {
- g_warning("Couldn't load image: %s\n", error->message);
+ g_warning("couldn't load image: %s", error->message);
g_error_free(error);
return NULL;
}
if (read_len == -1 &&
session->state == SESSION_DISCONNECTED) {
- g_warning ("sock_read: session disconnected");
+ g_warning("sock_read: session disconnected");
if (session->io_tag > 0) {
g_source_remove(session->io_tag);
session->io_tag = 0;
cm_menu_set_sensitive_full(page->ui_manager, "Menu/Edit/Undo", undostruct->undo_state);
break;
default:
- g_warning("Undo state not recognized");
+ g_warning("undo state not recognized");
break;
}
cm_menu_set_sensitive_full(page->ui_manager, "Menu/Edit/Redo", undostruct->redo_state);
break;
default:
- g_warning("Redo state not recognized");
+ g_warning("redo state not recognized");
break;
}
}
return;
if (prefs_write_param(prefs, pref_file->fp) < 0) {
- g_warning("failed to write ManageSieve Plugin configuration");
+ g_warning("failed to write ManageSieve plugin configuration");
prefs_file_close_revert(pref_file);
return;
}
app_id->str,
&error);
if (error) {
- g_warning ("Failed to read hotkeys for application '%s': %s",
+ g_warning("failed to read hotkeys for application '%s': %s",
app_id->str, error->message);
g_error_free (error);
error = NULL;
if (error) {
gchar *path = g_file_get_path (home);
- g_warning ("Failed to read hotkey home directory '%s': %s",
+ g_warning("failed to read hotkey home directory '%s': %s",
path, error->message);
g_free (path);
g_error_free (error);
/* Ignore non hotkey groups */
if (!g_str_has_prefix (key_id->str, HOTKEY_GROUP)) {
- g_warning ("Hotkey file for %s contains non 'hotkey:' group '%s'",
+ g_warning("hotkey file for %s contains non 'hotkey:' group '%s'",
app_id, group);
g_string_free (key_id, TRUE);
continue;
error = NULL;
hotkey = get_hotkey_info_from_key_file (keyfile, app_id, key_id->str, &error);
if (error) {
- g_warning ("Failed to read hotkey '%s' for application '%s': %s",
+ g_warning("failed to read hotkey '%s' for application '%s': %s",
key_id->str, app_id, error->message);
g_error_free (error);
g_string_free (key_id, TRUE);
if (find_hotkey_from_key_id(self,
gtk_hotkey_info_get_key_id (hotkey))) {
- g_warning ("Hotkey '%s' already registered. Ignoring register request.",
+ g_warning("hotkey '%s' already registered. Ignoring register request",
gtk_hotkey_info_get_key_id (hotkey));
return FALSE;
}
gdk_flush ();
if (gdk_error_trap_pop ()) {
- g_warning ("Binding '%s' failed!", binding->keystring);
+ g_warning("binding '%s' failed!", binding->keystring);
return FALSE;
}
path = foldercheck_get_array_path();
if((pfile = prefs_write_open(path)) == NULL) {
- debug_print("Notification Plugin Error: Cannot open "
+ debug_print("Notification plugin error: cannot open "
"file " FOLDERCHECK_ARRAY " for writing\n");
return;
}
xml_write_tree(rootnode, pfile->fp);
if(prefs_file_close(pfile) < 0) {
- debug_print("Notification Plugin Error: Failed to write "
+ debug_print("Notification plugin error: failed to write "
"file " FOLDERCHECK_ARRAY "\n");
}
}
}
if((list == NULL) || (entry == NULL)) {
- g_warning("Did not find attribute \"name\" in tag \"branch\"");
+ g_warning("did not find attribute \"name\" in tag \"branch\"");
continue; /* with next branch */
}
/* These should all be leaves. */
if(!G_NODE_IS_LEAF(node))
- g_warning("Subnodes in \"branch\" nodes should all be leaves. "
- "Ignoring deeper subnodes.");
+ g_warning("subnodes in \"branch\" nodes should all be leaves, "
+ "ignoring deeper subnodes");
/* Check if tag is "folderitem" */
xmlnode = node->data;
}
}
if((list == NULL) || (item == NULL)) {
- g_warning("Did not find attribute \"identifier\" in tag "
+ g_warning("did not find attribute \"identifier\" in tag "
"\"folderitem\"");
continue; /* with next leaf node */
}
if (prefs_write_param(notify_param, pfile->fp) < 0) {
debug_print("failed!\n");
- g_warning("Notification Plugin: Failed to write plugin configuration "
+ g_warning("notification plugin: failed to write plugin configuration "
"to file");
prefs_file_close_revert(pfile);
return;
utf8_filename = g_filename_to_utf8(filename, -1, NULL, NULL, NULL);
if (!utf8_filename) {
- g_warning("notify_command_browse_cb(): failed to convert character set.");
+ g_warning("notify_command_browse_cb(): failed to convert character set");
utf8_filename = g_strdup(filename);
}
gtk_entry_set_text(GTK_ENTRY(dest), utf8_filename);
dest = poppler_document_find_dest(
viewer->pdf_doc, viewer->link_action->goto_remote.dest->named_dest);
if (dest->type != POPPLER_DEST_XYZ) {
- g_warning ("couldn't figure out link");
+ g_warning("couldn't figure out link");
poppler_dest_free(dest);
break;
}
viewer->pdf_page = poppler_document_get_page(viewer->pdf_doc, page_num - 1);
if (viewer->pdf_page == NULL) {
- g_warning("Page not found");
+ g_warning("page not found");
return;
}
}
else {
if (prefs_common_get_ext_editor_cmd())
- g_warning("Perl Plugin: External editor command-line is invalid: `%s'",
+ g_warning("Perl plugin: external editor command-line is invalid: `%s'",
prefs_common_get_ext_editor_cmd());
g_snprintf(buf, sizeof(buf), "emacs %s", perlfilter);
}
log_message(LOG_PROTOCOL, " MATCH: %s\n", text?text:"<no text specified>");
break;
default:
- g_warning("Perl Plugin: Wrong use of filter_log_write");
+ g_warning("Perl plugin: wrong use of filter_log_write");
break;
}
}
dXSARGS;
if(items != 1) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::init");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::init");
XSRETURN_UNDEF;
}
flag = SvIV(ST(0));
else
XSRETURN_NO;
default:
- g_warning("Perl Plugin: Wrong argument to ClawsMail::C::init");
+ g_warning("Perl plugin: wrong argument to ClawsMail::C::init");
XSRETURN_UNDEF;
}
}
dXSARGS;
if(items != 0) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::open_mail_file");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::open_mail_file");
XSRETURN_UNDEF;
}
file = procmsg_get_message_file_path(msginfo);
XSRETURN_UNDEF;
if((message_file = claws_fopen(file, "rb")) == NULL) {
FILE_OP_ERROR(file, "claws_fopen");
- g_warning("Perl Plugin: File open error in ClawsMail::C::open_mail_file");
+ g_warning("Perl plugin: file open error in ClawsMail::C::open_mail_file");
g_free(file);
XSRETURN_UNDEF;
}
{
dXSARGS;
if(items != 0) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::close_mail_file");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::close_mail_file");
XSRETURN_UNDEF;
}
if(message_file != NULL)
dXSARGS;
if(items != 0) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::get_next_header");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::get_next_header");
XSRETURN_EMPTY;
}
if(message_file == NULL) {
- g_warning("Perl Plugin: Message file not open. Use ClawsMail::C::open_message_file first.");
+ g_warning("Perl plugin: message file not open. Use ClawsMail::C::open_message_file first");
XSRETURN_EMPTY;
}
if(procheader_get_one_field(&buf, message_file, NULL) != -1) {
dXSARGS;
if(items != 0) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::get_next_body_line");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::get_next_body_line");
XSRETURN_UNDEF;
}
if(message_file == NULL) {
- g_warning("Perl Plugin: Message file not open. Use ClawsMail::C::open_message_file first.");
+ g_warning("Perl plugin: message file not open. Use ClawsMail::C::open_message_file first");
XSRETURN_UNDEF;
}
if(claws_fgets(buf, sizeof(buf), message_file) != NULL)
dXSARGS;
if(items != 1) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::check_flag");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::check_flag");
XSRETURN_UNDEF;
}
flag = SvIV(ST(0));
else
XSRETURN_NO;
default:
- g_warning("Perl Plugin: Unknown argument to ClawsMail::C::check_flag");
+ g_warning("Perl plugin: unknown argument to ClawsMail::C::check_flag");
XSRETURN_UNDEF;
}
}
dXSARGS;
if(items != 1) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::colorlabel");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::colorlabel");
XSRETURN_UNDEF;
}
color = SvIV(ST(0));
dXSARGS;
if(items != 1) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::age_greater");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::age_greater");
XSRETURN_UNDEF;
}
age = SvIV(ST(0));
dXSARGS;
if(items != 1) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::age_lower");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::age_lower");
XSRETURN_UNDEF;
}
age = SvIV(ST(0));
{
dXSARGS;
if(items != 0) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::tagged");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::tagged");
XSRETURN_UNDEF;
}
dXSARGS;
if(items != 0) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::get_tags");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::get_tags");
XSRETURN_UNDEF;
}
dXSARGS;
if(items != 1) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::set_tag");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::set_tag");
XSRETURN_UNDEF;
}
tag_str = SvPV_nolen(ST(0));
tag_id = tags_get_id_for_str(tag_str);
if(tag_id == -1) {
- g_warning("Perl Plugin: set_tag requested setting of a non-existing tag");
+ g_warning("Perl plugin: set_tag requested setting of a non-existing tag");
XSRETURN_UNDEF;
}
dXSARGS;
if(items != 1) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::unset_tag");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::unset_tag");
XSRETURN_UNDEF;
}
tag_str = SvPV_nolen(ST(0));
tag_id = tags_get_id_for_str(tag_str);
if(tag_id == -1) {
- g_warning("Perl Plugin: unset_tag requested setting of a non-existing tag");
+ g_warning("Perl plugin: unset_tag requested setting of a non-existing tag");
XSRETURN_UNDEF;
}
{
dXSARGS;
if(items != 0) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::clear_tags");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::clear_tags");
XSRETURN_UNDEF;
}
dXSARGS;
if(items != 1) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::make_sure_tag_exists");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::make_sure_tag_exists");
XSRETURN_UNDEF;
}
tag_str = SvPV_nolen(ST(0));
if(IS_NOT_RESERVED_TAG(tag_str) == FALSE) {
- g_warning("Perl Plugin: Trying to create a tag with a reserved name: %s", tag_str);
+ g_warning("Perl plugin: trying to create a tag with a reserved name: %s", tag_str);
XSRETURN_UNDEF;
}
dXSARGS;
if(items != 1) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::make_sure_folder_exists");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::make_sure_folder_exists");
XSRETURN_UNDEF;
}
dXSARGS;
if(items != 1 && items != 2) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::addr_in_addressbook");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::addr_in_addressbook");
XSRETURN_UNDEF;
}
dXSARGS;
if(items != 1) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::set_flag");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::set_flag");
XSRETURN_UNDEF;
}
flag = SvIV(ST(0));
filter_log_write(LOG_ACTION,"lock");
XSRETURN_YES;
default:
- g_warning("Perl Plugin: Unknown argument to ClawsMail::C::set_flag");
+ g_warning("Perl plugin: unknown argument to ClawsMail::C::set_flag");
XSRETURN_UNDEF;
}
}
dXSARGS;
if(items != 1) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::unset_flag");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::unset_flag");
XSRETURN_UNDEF;
}
flag = SvIV(ST(0));
filter_log_write(LOG_ACTION,"unlock");
XSRETURN_YES;
default:
- g_warning("Perl Plugin: Unknown argument to ClawsMail::C::unset_flag");
+ g_warning("Perl plugin: unknown argument to ClawsMail::C::unset_flag");
XSRETURN_UNDEF;
}
}
dXSARGS;
if(items != 1) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::move");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::move");
XSRETURN_UNDEF;
}
dest_folder = folder_find_item_from_identifier(targetfolder);
if (!dest_folder) {
- g_warning("Perl Plugin: move: folder not found '%s'",
+ g_warning("Perl plugin: move: folder not found '%s'",
targetfolder ? targetfolder :"");
XSRETURN_UNDEF;
}
if (folder_item_move_msg(dest_folder, msginfo) == -1) {
- g_warning("Perl Plugin: move: could not move message");
+ g_warning("Perl plugin: move: could not move message");
XSRETURN_UNDEF;
}
stop_filtering = TRUE;
dXSARGS;
if(items != 1) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::copy");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::copy");
XSRETURN_UNDEF;
}
targetfolder = SvPV_nolen(ST(0));
dest_folder = folder_find_item_from_identifier(targetfolder);
if (!dest_folder) {
- g_warning("Perl Plugin: copy: folder not found '%s'",
+ g_warning("Perl plugin: copy: folder not found '%s'",
targetfolder ? targetfolder :"");
XSRETURN_UNDEF;
}
if (folder_item_copy_msg(dest_folder, msginfo) == -1) {
- g_warning("Perl Plugin: copy: could not copy message");
+ g_warning("Perl plugin: copy: could not copy message");
XSRETURN_UNDEF;
}
logtext = g_strconcat("copy to ", targetfolder, NULL);
{
dXSARGS;
if(items != 0) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::delete");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::delete");
XSRETURN_UNDEF;
}
folder_item_remove_msg(msginfo->folder, msginfo->msgnum);
{
dXSARGS;
if(items != 0) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::hide");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::hide");
XSRETURN_UNDEF;
}
msginfo->hidden = TRUE;
dXSARGS;
if(items != 1) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::color");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::color");
XSRETURN_UNDEF;
}
color = SvIV(ST(0));
dXSARGS;
if(items != 1) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::change_score");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::change_score");
XSRETURN_UNDEF;
}
score = SvIV(ST(0));
dXSARGS;
if(items != 1) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::set_score");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::set_score");
XSRETURN_UNDEF;
}
score = SvIV(ST(0));
dXSARGS;
if(items != 3) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::forward");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::forward");
XSRETURN_UNDEF;
}
dXSARGS;
if(items != 2) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::redirect");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::redirect");
XSRETURN_UNDEF;
}
dXSARGS;
if(items != 0) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::move_to_trash");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::move_to_trash");
XSRETURN_UNDEF;
}
dest_folder = folder_get_default_trash();
if (!dest_folder) {
- g_warning("Perl Plugin: move_to_trash: Trash folder not found");
+ g_warning("Perl plugin: move_to_trash: Trash folder not found");
XSRETURN_UNDEF;
}
if (folder_item_move_msg(dest_folder, msginfo) == -1) {
- g_warning("Perl Plugin: move_to_trash: could not move message to trash");
+ g_warning("Perl plugin: move_to_trash: could not move message to trash");
XSRETURN_UNDEF;
}
stop_filtering = TRUE;
dXSARGS;
if(items != 0) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::abort");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::abort");
XSRETURN_UNDEF;
}
if(!manual_filtering) {
inbox_folder = folder_get_default_inbox();
if (!inbox_folder) {
- g_warning("Perl Plugin: abort: Inbox folder not found");
+ g_warning("Perl plugin: abort: inbox folder not found");
XSRETURN_UNDEF;
}
if (folder_item_move_msg(inbox_folder, msginfo) == -1) {
- g_warning("Perl Plugin: abort: Could not move message to default inbox");
+ g_warning("Perl plugin: abort: could not move message to default inbox");
XSRETURN_UNDEF;
}
filter_log_write(LOG_ACTION, "abort -- message moved to default inbox");
dXSARGS;
if(items != 2 && items != 3) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::get_attribute_value");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::get_attribute_value");
XSRETURN_UNDEF;
}
addr = SvPV_nolen(ST(0));
dXSARGS;
if(items != 2) {
- g_warning("Perl Plugin: Wrong number of arguments to ClawsMail::C::filter_log");
+ g_warning("Perl plugin: wrong number of arguments to ClawsMail::C::filter_log");
XSRETURN_UNDEF;
}
type = SvPV_nolen(ST(0));
else if(!strcmp(type, "LOG_MATCH"))
filter_log_write(LOG_MATCH, text);
else {
- g_warning("Perl Plugin: ClawsMail::C::filter_log -- wrong first argument");
+ g_warning("Perl plugin: ClawsMail::C::filter_log -- wrong first argument");
XSRETURN_UNDEF;
}
XSRETURN_YES;
dXSARGS;
if(items != 1 && items != 0) {
- g_warning("Perl Plugin: Wrong number of arguments to "
+ g_warning("Perl plugin: wrong number of arguments to "
"ClawsMail::C::filter_log_verbosity");
XSRETURN_UNDEF;
}
}
else {
if (prefs_common_get_ext_editor_cmd())
- g_warning("Perl Plugin: External editor command-line is invalid: `%s'",
+ g_warning("Perl plugin: External editor command-line is invalid: `%s'",
prefs_common_get_ext_editor_cmd());
g_snprintf(buf, sizeof(buf), "emacs %s", perlfilter);
}
};
if((my_perl = perl_alloc()) == NULL) {
- g_warning("Perl Plugin: Not enough memory to allocate Perl interpreter");
+ g_warning("Perl plugin: not enough memory to allocate Perl interpreter");
return -1;
}
PL_perl_destruct_level = 1;
PrefFile *pfile;
gchar *rcpath;
- debug_print("Saving Perl Plugin Configuration\n");
+ debug_print("Saving Perl plugin Configuration\n");
rcpath = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, COMMON_RC, NULL);
pfile = prefs_write_open(rcpath);
return;
if (prefs_write_param(param, pfile->fp) < 0) {
- g_warning("Perl Plugin: Failed to write Perl Plugin configuration to file");
+ g_warning("failed to write Perl plugin configuration to file");
prefs_file_close_revert(pfile);
return;
}
/* chmod for security */
if (change_file_mode_rw(fp, perlfilter) < 0) {
FILE_OP_ERROR(perlfilter, "chmod");
- g_warning("Perl Plugin: Can't change file mode");
+ g_warning("Perl plugin: can't change file mode");
}
claws_fclose(fp);
g_free(perlfilter);
if (!warned)
alertpanel_error(_("PGP Core: Can't get key - no gpg-agent running."));
else
- g_warning("PGP Core: Can't get key - no gpg-agent running.");
+ g_warning("PGP Core: can't get key - no gpg-agent running");
warned = TRUE;
} else if (gpg_err_code(err) != GPG_ERR_NO_ERROR && gpg_err_code(err) != GPG_ERR_EOF) {
return g_strdup_printf(_("The signature can't be checked - %s"),
conv_get_locale_charset_str_no_utf8());
}
if (!tmp) {
- g_warning("Can't convert charset to anything sane");
+ g_warning("can't convert charset to anything sane");
tmp = conv_codeset_strdup(textdata, CS_UTF_8, CS_US_ASCII);
}
g_free(textdata);
data->is_signed = FALSE;
data->sigstatus = NULL;
if ((err = gpgme_new(&data->ctx)) != GPG_ERR_NO_ERROR) {
- g_warning("Couldn't initialize GPG context: %s", gpgme_strerror(err));
+ g_warning("couldn't initialize GPG context: %s", gpgme_strerror(err));
return NULL;
}
return;
if (prefs_write_param(prefs, pref_file->fp) < 0) {
- g_warning("failed to write Python Plugin configuration");
+ g_warning("failed to write Python plugin configuration");
prefs_file_close_revert(pref_file);
return;
}
g_file_get_contents(path, &contents, NULL, &error);
if( error ) {
- g_warning("GError: '%s'", error->message);
+ g_warning("error: '%s'", error->message);
g_error_free(error);
}
if( contents != NULL ) {
lines = strsplit_no_copy(contents, '\n');
} else {
- g_warning("Badly formatted file found, ignoring: '%s'", path);
+ g_warning("badly formatted file found, ignoring: '%s'", path);
return NULL;
}
template = g_strconcat(dirname, G_DIR_SEPARATOR_S,
RSSYL_TMP_TEMPLATE, NULL);
if ((fd = g_mkstemp(template)) < 0) {
- g_warning("Couldn't g_mkstemp('%s'), not adding message!", template);
+ g_warning("couldn't g_mkstemp('%s'), not adding message!", template);
g_free(dirname);
g_free(template);
return;
f = claws_fdopen(fd, "w");
if (f == NULL) {
- g_warning("Couldn't open file '%s', not adding message!", template);
+ g_warning("couldn't open file '%s', not adding message!", template);
g_free(dirname);
g_free(template);
return;
g_file_get_contents(deleted_file, &contents, NULL, &error);
if (error) {
- g_warning("GError: '%s'", error->message);
+ g_warning("error: '%s'", error->message);
g_error_free(error);
}
if (contents != NULL) {
lines = strsplit_no_copy(contents, '\n');
} else {
- g_warning("Couldn't read '%s', ignoring", deleted_file);
+ g_warning("couldn't read '%s', ignoring", deleted_file);
g_free(deleted_file);
return;
}
utf8_filename = g_filename_to_utf8(filename, -1, NULL, NULL, NULL);
if (!utf8_filename) {
- g_warning("rssyl_prefs_cookies_browse_cb(): failed to convert character set.");
+ g_warning("rssyl_prefs_cookies_browse_cb(): failed to convert character set");
utf8_filename = g_strdup(filename);
}
gtk_entry_set_text(GTK_ENTRY(dest), utf8_filename);
return;
if( prefs_write_param(param, pref_file->fp) < 0 ) {
- g_warning("Failed to write RSSyl plugin configuration");
+ g_warning("failed to write RSSyl plugin configuration");
prefs_file_close_revert(pref_file);
return;
}
}
break;
default:
- g_warning("Unknown method");
+ g_warning("unknown method");
}
g_free(reqbody);
g_free(geturl);
return;
if (prefs_write_param(param, pref_file->fp) < 0) {
- g_warning("failed to write SpamReport Plugin configuration");
+ g_warning("failed to write SpamReport plugin configuration");
prefs_file_close_revert(pref_file);
return;
}
return;
if (prefs_write_param(param, pfile->fp) < 0) {
- g_warning("Failed to write SpamAssassin configuration to file");
+ g_warning("failed to write SpamAssassin configuration to file");
prefs_file_close_revert(pfile);
return;
}
if (hook_id == HOOK_NONE)
hook_id = hooks_register_hook(MAIL_FILTERING_HOOKLIST, mail_filtering_hook, NULL);
if (hook_id == HOOK_NONE) {
- g_warning("Failed to register mail filtering hook");
+ g_warning("failed to register mail filtering hook");
config.process_emails = FALSE;
}
}
g_strdup("Parsed from MS-TNEF"));
if (parse_result != 0) {
- g_warning("Failed to parse TNEF data.");
+ g_warning("failed to parse TNEF data");
TNEFFree(tnef);
return FALSE;
}
curl_easy_getinfo(curl_ctx, CURLINFO_RESPONSE_CODE, &response_code);
if (response_code < 200 || response_code >= 300) {
- g_warning("Can't export calendar, got code %ld", response_code);
+ g_warning("can't export calendar, got code %ld", response_code);
res = FALSE;
}
curl_easy_cleanup(curl_ctx);
);
if (!calendar) {
- g_warning ("can't generate calendar");
+ g_warning("can't generate calendar");
g_free(organizer);
g_free(tmpfile);
g_free(attendee);
ICAL_VEVENT_COMPONENT, (void*)0);
if (!ievent) {
- g_warning ("can't generate event");
+ g_warning("can't generate event");
g_free(organizer);
g_free(tmpfile);
g_free(attendee);
);
if (!calendar) {
- g_warning ("can't generate calendar");
+ g_warning("can't generate calendar");
g_free(tmpfile);
icalcomponent_free(ievent);
return NULL;
xml_free_tree(rootnode);
if (prefs_file_close(pfile) < 0) {
- g_warning("failed to write event.");
+ g_warning("failed to write event");
return;
}
debug_print("creating %s\n", tmpfile);
if (procmime_get_part(tmpfile, vcalviewer->mimeinfo) < 0) {
- g_warning("Can't get mimepart file");
+ g_warning("can't get mimepart file");
g_free(tmpfile);
return NULL;
}
utf8_filename = g_filename_to_utf8(filename, -1, NULL, NULL, NULL);
if (!utf8_filename) {
- g_warning("prefs_account_signature_browse_cb(): failed to convert character set.");
+ g_warning("prefs_account_signature_browse_cb(): failed to convert character set");
utf8_filename = g_strdup(filename);
}
gtk_entry_set_text(GTK_ENTRY(entry_sigpath), utf8_filename);
utf8_filename = g_filename_to_utf8(filename, -1, NULL, NULL, NULL);
if (!utf8_filename) {
- g_warning("prefs_account_cert_browse_cb(): failed to convert character set.");
+ g_warning("prefs_account_cert_browse_cb(): failed to convert character set");
utf8_filename = g_strdup(filename);
}
gtk_entry_set_text(GTK_ENTRY(entry_in_cert_file), utf8_filename);
utf8_filename = g_filename_to_utf8(filename, -1, NULL, NULL, NULL);
if (!utf8_filename) {
- g_warning("prefs_account_cert_browse_cb(): failed to convert character set.");
+ g_warning("prefs_account_cert_browse_cb(): failed to convert character set");
utf8_filename = g_strdup(filename);
}
gtk_entry_set_text(GTK_ENTRY(entry_out_cert_file), utf8_filename);
tmp = conv_codeset_strdup(buf, src_codeset, dest_codeset);
if (!tmp) {
- g_warning("Failed to convert character set of action configuration");
+ g_warning("failed to convert character set of action configuration");
tmp = g_strdup(buf);
}
act = conv_codeset_strdup(tmp, src_codeset, dest_codeset);
if (!act) {
- g_warning("Failed to convert character set of action configuration");
+ g_warning("failed to convert character set of action configuration");
act = g_strdup(act);
}
pos = prefs_common.folder_col_pos[type];
if (pos < 0 || pos >= N_FOLDER_COLS ||
state[pos].type != -1) {
- g_warning("Wrong column position");
+ g_warning("wrong column position");
prefs_folder_column_set_config(default_state);
return default_state;
}
cm_return_if_fail(rcfile != NULL);
if (encoding != NULL)
- g_warning("Encoding is ignored");
+ g_warning("encoding is ignored");
debug_print("Reading configuration...\n");
tmp = g_strdup("");
}
if (!tmp) {
- g_warning("Failed to convert character set.");
+ g_warning("failed to convert character set");
tmp = g_strdup(value);
}
g_free(*((gchar **)param[i].data));
#define TRY(func) \
if (!(func)) \
{ \
- g_warning("Failed to write configuration to file"); \
+ g_warning("failed to write configuration to file"); \
if (orig_fp) claws_fclose(orig_fp); \
prefs_file_close_revert(pfile); \
g_free(rcpath); \
}
if ((pfile = prefs_write_open(rcpath)) == NULL) {
- g_warning("Failed to write configuration to file");
+ g_warning("failed to write configuration to file");
if (orig_fp) claws_fclose(orig_fp);
g_free(rcpath);
return;
if (orig_fp) claws_fclose(orig_fp);
if (prefs_file_close(pfile) < 0)
- g_warning("Failed to write configuration to file");
+ g_warning("failed to write configuration to file");
g_free(rcpath);
debug_print("Configuration is saved.\n");
CS_INTERNAL)
: g_strdup("");
if (!tmp) {
- g_warning("Failed to convert character set.");
+ g_warning("failed to convert character set");
tmp = g_strdup(envstr);
}
*((gchar **)param[i].data) = tmp;
*((gint *)pparam->data) = atoi(entry_str);
break;
default:
- g_warning("Invalid PrefType for GtkEntry widget: %d",
+ g_warning("invalid PrefType for GtkEntry widget: %d",
pparam->type);
}
}
*str = pref_get_pref_from_entry(GTK_ENTRY(*pparam->widget));
break;
default:
- g_warning("Invalid escaped PrefType for GtkEntry widget: %d",
+ g_warning("invalid escaped PrefType for GtkEntry widget: %d",
pparam->type);
}
}
itos(*((gushort *)pparam->data)));
break;
default:
- g_warning("Invalid PrefType for GtkEntry widget: %d",
+ g_warning("invalid PrefType for GtkEntry widget: %d",
pparam->type);
}
}
*str ? *str : "");
break;
default:
- g_warning("Invalid escaped PrefType for GtkEntry widget: %d",
+ g_warning("invalid escaped PrefType for GtkEntry widget: %d",
pparam->type);
}
}
g_free(text);
break;
default:
- g_warning("Invalid PrefType for GtkText widget: %d",
+ g_warning("invalid PrefType for GtkText widget: %d",
pparam->type);
}
}
*str = pref_get_pref_from_textview(GTK_TEXT_VIEW(*pparam->widget));
break;
default:
- g_warning("Invalid escaped PrefType for GtkText widget: %d",
+ g_warning("invalid escaped PrefType for GtkText widget: %d",
pparam->type);
}
}
gtk_text_buffer_insert(buffer, &iter, buf, -1);
break;
default:
- g_warning("Invalid PrefType for GtkTextView widget: %d",
+ g_warning("invalid PrefType for GtkTextView widget: %d",
pparam->type);
}
}
*str ? *str : "");
break;
default:
- g_warning("Invalid escaped PrefType for GtkTextView widget: %d",
+ g_warning("invalid escaped PrefType for GtkTextView widget: %d",
pparam->type);
}
}
(GTK_SPIN_BUTTON(*pparam->widget));
break;
default:
- g_warning("Invalid PrefType for GtkSpinButton widget: %d",
+ g_warning("invalid PrefType for GtkSpinButton widget: %d",
pparam->type);
}
}
(gfloat)*((gushort *)pparam->data));
break;
default:
- g_warning("Invalid PrefType for GtkSpinButton widget: %d",
+ g_warning("invalid PrefType for GtkSpinButton widget: %d",
pparam->type);
}
}
sections_table = g_hash_table_lookup(whole_cache, rcfile);
if (sections_table == NULL) {
- g_warning("Can't find %s in the whole cache", rcfile?rcfile:"(null)");
+ g_warning("can't find %s in the whole cache", rcfile?rcfile:"(null)");
return FALSE;
}
values_table = g_hash_table_lookup(sections_table, label);
title = g_strdup(color_dialog_title[ctype]);
rgbvalue = prefs_common.color[ctype];
} else {
- g_warning("Unrecognized datatype '%s' in quote_color_set_dialog", type);
+ g_warning("unrecognized datatype '%s' in quote_color_set_dialog", type);
return;
}
}
folderview_set_target_folder_color(prefs_common.color[ctype]);
}
} else {
- g_warning("Unrecognized datatype '%s' in quote_color_set_dialog_ok", type);
+ g_warning("unrecognized datatype '%s' in quote_color_set_dialog_ok", type);
}
}
pos = prefs_common.summary_col_pos[type];
if (pos < 0 || pos >= N_SUMMARY_COLS ||
state[pos].type != -1) {
- g_warning("Wrong column position");
+ g_warning("wrong column position");
prefs_summary_column_set_config(default_state);
return default_state;
}
base = g_path_get_basename(filename);
if (TRUE == is_dir_exist(filename)) {
if (strcmp(base, ".") != 0 && strcmp(base, "..") != 0)
- g_warning("prefs_themes_file_remove(): subdir in theme dir skipped: '%s'.",
+ g_warning("prefs_themes_file_remove(): subdir in theme dir skipped: '%s'",
base);
}
else if (0 != claws_unlink(filename)) {
base = g_path_get_basename(filename);
if (TRUE == is_dir_exist(filename)) {
if (strcmp(base, ".") != 0 && strcmp(base, "..") !=0 )
- g_warning("prefs_themes_file_install(): subdir in theme dir skipped: '%s'.",
+ g_warning("prefs_themes_file_install(): subdir in theme dir skipped: '%s'",
base);
}
else {
if (procheader_scan_date_string(src, weekday, &day, month, &year,
&hh, &mm, &ss, zone) < 0) {
- g_warning("Invalid date: %s", src);
+ g_warning("invalid date: %s", src);
return FALSE;
}
if ((p = strstr(monthstr, month)) != NULL)
dmonth = (gint)(p - monthstr) / 3 + 1;
else {
- g_warning("Invalid month: %s", month);
+ g_warning("invalid month: %s", month);
dmonth = G_DATE_BAD_MONTH;
}
}
starting = FALSE;
if (((inread != inlen) || len < 0) && !got_error) {
- g_warning("Bad BASE64 content.");
+ g_warning("bad BASE64 content");
if (claws_fwrite(_("[Error decoding BASE64]\n"),
sizeof(gchar),
strlen(_("[Error decoding BASE64]\n")),
len = fromuutobits(outbuf, buf);
if (len <= 0) {
if (len < 0)
- g_warning("Bad UUENCODE content (%d)", len);
+ g_warning("bad UUENCODE content (%d)", len);
break;
}
if (claws_fwrite(outbuf, sizeof(gchar), len, outfp) < len)
if (mimeinfo->content == MIMECONTENT_FILE && mimeinfo->data.filename) {
if ((infp = claws_fopen(mimeinfo->data.filename, "rb")) == NULL) {
- g_warning("Can't open file %s", mimeinfo->data.filename);
+ g_warning("can't open file %s", mimeinfo->data.filename);
claws_fclose(outfp);
return FALSE;
}
}
} else {
claws_fclose(outfp);
- g_warning("Unknown mimeinfo");
+ g_warning("unknown mimeinfo");
return FALSE;
}
}
if ((r = procmime_get_part_to_stream(tmpfp, mimeinfo)) < 0) {
- g_warning("procmime_get_part_to_stream error %d\n", r);
+ g_warning("procmime_get_part_to_stream error %d", r);
return TRUE;
}
}
if (conv_fail)
- g_warning("procmime_get_text_content(): Code conversion failed.");
+ g_warning("procmime_get_text_content(): code conversion failed");
claws_fclose(tmpfp);
claws_fclose(fp);
if (!list)
- g_warning("Can't read mime.types");
+ g_warning("can't read mime.types");
return list;
}
data = g_malloc(null_terminate ? length + 1 : length);
if (data == NULL) {
- g_warning("Could not allocate %d bytes for procmime_get_part_as_string.\n",
+ g_warning("could not allocate %d bytes for procmime_get_part_as_string",
(null_terminate ? length + 1 : length));
claws_fclose(infp);
return NULL;
if (procmsg_send_message_queue_full(file,
!procmsg_is_last_for_account(queue, msginfo, elem),
errstr, queue, msginfo->msgnum, &queued_removed) < 0) {
- g_warning("Sending queued message %d failed.",
+ g_warning("sending queued message %d failed",
msginfo->msgnum);
err++;
} else {
if (msginfo == NULL) return NULL;
if (!file || !is_file_exist(file)) {
- g_warning("procmsg_msginfo_get_full_info_from_file(): can't get message file.");
+ g_warning("procmsg_msginfo_get_full_info_from_file(): can't get message file");
return NULL;
}
file = procmsg_get_message_file(msginfo);
}
if (!file || !is_file_exist(file)) {
- g_warning("procmsg_msginfo_get_full_info(): can't get message file.");
+ g_warning("procmsg_msginfo_get_full_info(): can't get message file");
return NULL;
}
if (!mailac) {
mailac = account_find_from_smtp_server(from, smtpserver);
if (!mailac) {
- g_warning("Account not found. "
- "Using current account...");
+ g_warning("account not found, "
+ "using current account...");
mailac = cur_account;
}
}
} else {
PrefsAccount tmp_ac;
- g_warning("Account not found.");
+ g_warning("account not found");
memset(&tmp_ac, 0, sizeof(PrefsAccount));
tmp_ac.address = from;
tmp_msginfo->folder = src_msginfo->folder;
tmp_msginfo->plaintext_file = g_strdup(tmpfile);
} else {
- g_warning("procmsg_msginfo_new_from_mimeinfo(): Can't generate new msginfo");
+ g_warning("procmsg_msginfo_new_from_mimeinfo(): can't generate new msginfo");
}
g_free(tmpfile);
{
stacksize--;
if (stacksize < 0) {
- g_warning("Error: visibility stack underflow");
+ g_warning("error: visibility stack underflow");
stacksize = 0;
}
}
gchar *quote_fmt_get_buffer(void)
{
if (current != &main_expr)
- g_warning("Error: parser still in sub-expr mode");
+ g_warning("error: parser still in sub-expr mode");
if (error != 0)
return NULL;
void quote_fmterror(char *str)
{
- g_warning("Error: %s at line %d", str, line);
+ g_warning("error: %s at line %d", str, line);
error = 1;
}
}
if (fp == NULL)
- g_warning("Can't get text part");
+ g_warning("can't get text part");
else {
account_sigsep_matchlist_create();
while (fgets(buf, sizeof(buf), fp) != NULL) {
if (!path) return FALSE;
if (folder_find_from_path(path)) {
- g_warning("The mailbox already exists.");
+ g_warning("the mailbox already exists");
return FALSE;
}
conv_get_locale_charset_str(),
CS_UTF_8);
if (!converted_filename) {
- g_warning("summary_save_as(): failed to convert character set.");
+ g_warning("summary_save_as(): failed to convert character set");
} else {
g_free(filename);
filename = converted_filename;
pixbuf = procmime_get_part_as_pixbuf(mimeinfo, &error);
if (error != NULL) {
- g_warning("Can't load the image: %s\n", error->message);
+ g_warning("can't load the image: %s", error->message);
g_error_free(error);
END_TIMING();
return;
if (!is_file_exist(filename)) {
gdk_pixbuf_save(picture, filename, "png", &error, NULL);
if (error) {
- g_warning("Failed to save image: %s",
+ g_warning("failed to save image: %s",
error->message);
g_error_free(error);
}
}
}
if ((item->index == -1) && !rewrite)
- g_warning("toolbar_parse_item: unrecognized action name '%s'\n", value);
+ g_warning("toolbar_parse_item: unrecognized action name '%s'", value);
attr = g_list_next(attr);
}
if (i != -1)
actions_execute(data, i, widget, source);
else
- g_warning ("Error: did not find Claws Action to execute");
+ g_warning("error: did not find Action to execute");
}
gboolean toolbar_check_action_btns(ToolbarType type)
utf8_filename = g_filename_to_utf8(filename, -1, NULL, NULL, NULL);
if (!utf8_filename) {
- g_warning("cert_browse_cb(): failed to convert character set.");
+ g_warning("cert_browse_cb(): failed to convert character set");
utf8_filename = g_strdup(filename);
}
gtk_entry_set_text(dest, utf8_filename);