+2003-12-03 [christoph] 0.9.7claws15
+
+ * src/addressbook.c
+ * src/addrindex.h
+ * src/addritem.c
+ * src/expldifdlg.h
+ * src/exportldif.c
+ * src/filtering.c
+ * src/folder.c
+ * src/folderview.c
+ * src/jpilot.c
+ * src/localfolder.c
+ * src/matcher.h
+ * src/matcher_parser_lex.l
+ * src/matcher_parser_parse.y
+ * src/news.c
+ * src/prefs_filtering_action.c
+ * src/prefs_folder_item.c
+ * src/prefs_fonts.c
+ * src/procmsg.c
+ * src/sgpgme.c
+ clean up warnings
+
+ * src/procmime.c
+ revert 0.9.7claws14 change
+
2003-12-03 [alfons] 0.9.7claws14
* src/procmime.c
* src/alertpanel.h
* src/setup.c
- * src/plugins/image_viewe/plugin.c
+ * src/plugins/image_viewer/plugin.c
compile again, we need stddef.h for size_t
2003-12-03 [paul] 0.9.7claws12
MICRO_VERSION=7
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=14
+EXTRA_VERSION=15
if test $EXTRA_VERSION -eq 0; then
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
else
g_free( searchTerm );
}
-/**
- * Browse address entry for highlighted entry.
- */
-static void addressbook_browse_entry_cb( void ) {
- GtkCTree *clist = GTK_CTREE(addrbook.clist);
- AddressObject *obj;
- AddressDataSource *ds;
- AddressInterface *iface;
- ItemPerson *person;
- ItemEMail *email;
-
- if( addrbook.listSelected == NULL ) return;
- obj = gtk_ctree_node_get_row_data( clist, addrbook.listSelected );
- g_return_if_fail(obj != NULL);
-
- ds = addressbook_find_datasource( GTK_CTREE_NODE(addrbook.treeSelected) );
- if( ds == NULL ) return;
- iface = ds->interface;
- if( ! iface->haveLibrary ) return;
-
- person = NULL;
- if( obj->type == ADDR_ITEM_EMAIL ) {
- email = ( ItemEMail * ) obj;
- if( email == NULL ) return;
- person = ( ItemPerson * ) ADDRITEM_PARENT(email);
- }
- else if( obj->type == ADDR_ITEM_PERSON ) {
- person = ( ItemPerson * ) obj;
- }
- else {
- /* None of these */
- return;
- }
-
- if( iface->type == ADDR_IF_LDAP ) {
-#ifdef USE_LDAP
- browseldap_entry( ds, person->externalID );
-#endif
- }
-}
-
/* **********************************************************************
* Build lookup tables.
* ***********************************************************************
gboolean addrindex_load_completion(
gint (*callBackFunc)
( const gchar *, const gchar *, const gchar * ) );
+gint addrindex_setup_explicit_search(
+ AddressDataSource *ds, const gchar *searchTerm, ItemFolder *folder,
+ void *callBackEnd, void *callBackEntry );
#endif /* __ADDRINDEX_H__ */
#include <stdio.h>
#include <string.h>
+#include "utils.h"
#include "addritem.h"
#include "mgutils.h"
}
g_slist_free(list);
- cur = g_slist_find_custom(plugin_types, type, list_find_by_string);
+ cur = g_slist_find_custom(plugin_types, (gpointer) type, list_find_by_string);
if (cur) {
g_free(cur->data);
g_slist_remove(plugin_types, cur);
void ssl_init(void)
{
SSL_METHOD *meth;
- FILE *cert_test;
/* Global system initialization*/
SSL_library_init();
* Export addressbook to HTML file.
*/
-#ifndef __EXPORT_HTML_H__
-#define __EXPORT_HTML_H__
+#ifndef __EXPORT_LDIF_H__
+#define __EXPORT_LDIF_H__
/* Function prototypes */
-void addressbook_exp_html( AddressCache *cache );
+void addressbook_exp_ldif( AddressCache *cache );
-#endif /* __EXPORT_HTML_H__ */
+#endif /* __EXPORT_LDIF_H__ */
/*
* End of Source.
* \return ctl Export control data.
*/
void exportldif_free( ExportLdifCtl *ctl ) {
- GList *node;
-
g_return_if_fail( ctl != NULL );
g_free( ctl->path );
gchar *list_str;
gchar *action_list_str;
gchar *filtering_str;
- GSList * tmp;
action_list_str = filteringaction_list_to_string(prop->action_list);
{
XMLAttr *a = (XMLAttr *) _a;
XMLAttr *b = (XMLAttr *) _b;
- gint ret;
return g_str_equal(a->name, b->name) ? 0 : 1;
}
g_slist_free(done);
}
-static void folderview_recollapse_all_nodes(FolderView *folderview)
-{
- GSList *list = folderview->nodes_to_recollapse;
- if (!list) return;
- for (; list != NULL; list = g_slist_next(list))
- if (list->data)
- gtk_ctree_collapse(GTK_CTREE(folderview->ctree),
- GTK_CTREE_NODE(list->data));
- g_slist_free(folderview->nodes_to_recollapse);
- folderview->nodes_to_recollapse = NULL;
-}
-
static void folderview_move_to_cb(FolderView *folderview)
{
FolderItem *from_folder = NULL, *to_folder = NULL;
*mem_rh = NULL;
}
-/* Shamelessly copied from JPilot (libplugin.c) */
-static int jpilot_free_db_list( GList **br_list ) {
- GList *temp_list, *first;
- buf_rec *br;
-
- /* Go to first entry in the list */
- first=NULL;
- for( temp_list = *br_list; temp_list; temp_list = temp_list->prev ) {
- first = temp_list;
- }
- for (temp_list = first; temp_list; temp_list = temp_list->next) {
- if (temp_list->data) {
- br=temp_list->data;
- if (br->buf) {
- free(br->buf);
- temp_list->data=NULL;
- }
- free(br);
- }
- }
- g_list_free(*br_list);
- *br_list=NULL;
- return 0;
-}
-
/* Shamelessly copied from JPilot (libplugin.c) */
/* Read file size */
static int jpilot_get_info_size( FILE *in, int *size ) {
return addrcache_get_all_persons( pilotFile->addressCache );
}
-/**
- * Check label list for specified label name.
- * \param ai Address info to check.
- * \param lblCheck Label name to check.
- * \return Index of label in address structure. <code>-1</code> if NULL/empty
- * label name, <code>-2</code> if label not found.
-*/
-static gint jpilot_check_label( struct AddressAppInfo *ai, gchar *lblCheck ) {
- gint i;
- gchar *lblName;
-
- if( lblCheck == NULL ) return -1;
- if( strlen( lblCheck ) < 1 ) return -1;
- for( i = 0; i < JPILOT_NUM_LABELS; i++ ) {
- lblName = ai->labels[i];
- if( lblName ) {
- if( strlen( lblName ) ) {
- if( g_strcasecmp( lblName, lblCheck ) == 0 ) return i;
- }
- }
- }
- return -2;
-}
-
/**
* Validate that all parameters specified.
* \param pilotFile JPilot control data.
{
LocalFolder *folder = LOCAL_FOLDER(_folder);
XMLTag *tag;
- XMLAttr *attr;
tag = folder_get_xml(_folder);
void prefs_matcher_read_config (void);
void prefs_matcher_write_config (void);
-void *matcher_parser_scan_string (gchar *str);
#endif
#include <string.h>
#include <glib.h>
+#include "matcher.h"
#include "matcher_parser_lex.h"
#include "matcher_parser_parse.h"
}
| MATCHER_ADD_SCORE MATCHER_INTEGER
{
- gint action_type = MATCHACTION_ADD_SCORE;
gint score = 0;
score = strtol($2, NULL, 10);
}
| MATCHER_SET_SCORE MATCHER_INTEGER
{
- gint action_type = MATCHACTION_SET_SCORE;
gint score = 0;
score = strtol($2, NULL, 10);
{
MsgInfo *msginfo;
gchar buf[NNTPBUFSIZE];
- gchar *subject, *sender, *size, *line, *date, *msgid, *ref, *tmp, *xref;
+ gchar *subject, *sender, *size, *line, *date, *msgid, *ref, *tmp;
gchar *p;
gint num, size_int, line_int;
gchar *xover_buf;
#include "alertpanel.h"
#include "folder.h"
#include "description_window.h"
+#include "addr_compl.h"
#include "matcher_parser.h"
#include "colorlabel.h"
static GSList *prefs_filtering_action_get_list(void)
{
gchar *action_str;
- FilteringAction *action;
gint row = 1;
GSList *action_list;
gchar *buf;
struct FolderItemGeneralPage *page = (struct FolderItemGeneralPage *) _page;
FolderItemPrefs *prefs = page->item->prefs;
- gboolean old_simplify_val;
- gchar *old_simplify_str;
g_return_if_fail(prefs != NULL);
#if USE_ASPELL
GtkWidget *checkbtn_enable_default_dictionary;
GtkWidget *optmenu_default_dictionary;
- GtkWidget *optmenu_default_dictionary_menu;
- GtkWidget *opemenu_default_dictionary_menuitem;
#endif
GList *cur_ac;
GList *account_list;
#include "gtk/gtkutils.h"
#include "gtk/prefswindow.h"
+#include "manage_window.h"
+
typedef struct _FontsPage
{
PrefsPage page;
FontsPage *prefs_fonts = (FontsPage *) _page;
GtkWidget *table;
- GtkWidget *frame_font;
- GtkWidget *table1;
GtkWidget *label_textfont;
GtkWidget *entry_textfont;
GtkWidget *entry_smallfont;
g_return_if_fail(content_type != NULL);
g_return_if_fail(mimeinfo != NULL);
+ mimeinfo->type = MIMETYPE_UNKNOWN;
+
/* Split content type into parts and remove trailing
and leading whitespaces from all strings */
content_type_parts = g_strsplit(content_type, ";", 0);
}
/* Get mimeinfo->type and mimeinfo->subtype */
- mimeinfo->type = MIMETYPE_UNKNOWN;
str = content_type_parts[0];
if (str == NULL) {
g_strfreev(content_type_parts);
mimeinfo->offset = offset;
mimeinfo->length = length;
- /* RFC 2045, page 13 says that the mime subtype is MANDATORY; if
- * it's not available than don't parse */
- if (content_type != NULL && strchr(content_type, '/')) {
+ if (content_type != NULL) {
procmime_parse_content_type(content_type, mimeinfo);
} else {
mimeinfo->type = MIMETYPE_TEXT;
gint first;
};
-static gboolean procmsg_ignore_node(GNode *node, gpointer data)
-{
- MsgInfo *msginfo = (MsgInfo *)node->data;
-
- procmsg_msginfo_unset_flags(msginfo, MSG_NEW | MSG_UNREAD, 0);
- procmsg_msginfo_set_flags(msginfo, MSG_IGNORE_THREAD, 0);
-
- return FALSE;
-}
-
/* CLAWS subject threading:
in the first round it inserts subject lines in a
if (sigstatus != GPGME_SIG_STAT_BAD) {
gint j = 1;
- while (uid = gpgme_key_get_string_attr(key, GPGME_ATTR_USERID, NULL, j)) {
+ while ((uid = gpgme_key_get_string_attr(key, GPGME_ATTR_USERID, NULL, j)) != 0) {
g_string_sprintfa(siginfo,
_(" aka \"%s\"\n"),
uid);