+2001-03-29 Kjartan Maraas <kmaraas@gnome.org>
+
+ * broken-date-parser.c: #include <stdio.h>, <stdlib.h> and <string.h>
+ * broken-date-parser.h: Remove all includes but <glib.h>
+ * camel-address.h: Added #include <glib.h>
+ * camel-data-wrapper.c: Move system includes to the top.
+ * camel-data-wrapper.h: #include <glib.h>
+ * camel-exception.c: #ifdef HAVE_CONFIG_H
+ * camel-exception.h: Remove #include <glib.h>
+ * camel-filter-driver.c: #ifdef HAVE_CONFIG_H and move system
+ headers to top. Mark strings in camel_exception_set*() for i18n.
+ * camel-filter-driver.h: #include <glib.h>
+ * camel-filter-search.c: #ifdef HAVE_CONFIG_H
+ * camel-folder-search.c: #include <config.h>
+ * camel-folder-search.h: Header shuffling
+ * camel-folder-summary.h: Same here
+ * camel-folder-thread.c: #ifdef HAVE_CONFIG_H
+ * camel-folder.c: Here too.
+ * camel-folder.h: #include <glib.h>
+ * camel-internet-address.c: Move system headers up
+ * camel-lock.c: #ifdef HAVE_CONFIG_H
+ * camel-medium.c: Same here
+ * camel-mime-filter-bestenc.c: Move system headers up
+ * camel-mime-filter-from.c: Same here
+ * camel-mime-filter-linewrap.c: And here
+ * camel-mime-filter.c: #include <string.h> to fix warnings from new gcc
+ * camel-mime-filter.h: System headers moved up
+ * camel-mime-message.c: Here too. #ifdef HAVE_CONFIG_H added
+ * camel-mime-part-utils.c: #ifdef HAVE_CONFIG_H added
+ * camel-mime-part.c: Here too, and shuffle headers
+ * camel-mime-utils.c: #ifdef HAVE_CONFIG_H. Remove const from two
+ variables to remove warning.
+ * camel-mime-utils.h: Shuffle headers
+ * camel-movemail.c: #ifdef HAVE_CONFIG_H. Mark string in camel_exception_set
+ * camel-multipart.c: #ifdef HAVE_CONFIG_H. Added includes to remove
+ warnings from new gcc
+ * camel-object.c: #ifdef HAVE_CONFIG_H
+ * camel-object.h: Shuffle headers
+ * camel-operation.c: #ifdef HAVE_CONFIG_H
+ * camel-provider.c: #ifdef HAVE_CONFIG_H. Shuffle headers. Mark a string
+ * camel-remote-store.c: #ifdef HAVE_CONFIG_H
+ * camel-sasl-anonymous.c: #ifdef HAVE_CONFIG_H. #include <string.h>
+ * camel-sasl-cram-md5.c: #ifdef HAVE_CONFIG_H. #include <string.h> and
+ <stdio.h> to remove warnings.
+ * camel-sasl-digest-md5.c: #ifdef HAVE_CONFIG_H. shuffle headers
+ * camel-sasl-digest-md5.h: Shuffle headers.
+ * camel-sasl-kerberos4.c: #ifdef HAVE_CONFIG_H. Shuffle headers.
+ * camel-sasl-kerberos4.h: Shuffle headers.
+ * camel-sasl-plain.c: #ifdef HAVE_CONFIG_H. Shuffle
+ * camel-sasl.c: #ifdef HAVE_CONFIG_H. #include <string.h>
+ * camel-search-private.c: #include <config.h>
+ * camel-seekable-stream.c: #ifdef HAVE_CONFIG_H
+ * camel-seekable-stream.h: Shuffle
+ * camel-seekable-substream.c: #ifdef HAVE_CONFIG_H
+ * camel-service.c: Same
+ * camel-service.h: Shuffle
+ * camel-session.c: #ifdef HAVE_CONFIG_H
+ * camel-store.c: Same
+ * camel-stream-buffer.c: Here too
+ * camel-stream-buffer.h: Shuffle
+ * camel-stream-filter.c: #include <string.h>
+ * camel-stream-fs.c: #ifdef HAVE_CONFIG_H
+ * camel-stream-fs.h: Shuffle headers
+ * camel-stream-mem.c: Same as above
+ * camel-stream-mem.h: Here too
+ * camel-stream-null.c: #ifdef HAVE_CONFIG_H
+ * camel-stream.c: Here too
+ * camel-stream.h: Shuffle
+ * camel-tcp-stream-openssl.c: #ifdef HAVE_CONFIG_H
+ * camel-tcp-stream-raw.c: Same here. and move local includes down
+ * camel-tcp-stream-ssl.c: Same as above
+ * camel-tcp-stream.c: #ifdef HAVE_CONFIG_H
+ * camel-tcp-stream.h: move local include down
+ * camel-transport.c: #ifdef HAVE_CONFIG_H
+ * camel-transport.h: #include <glib.h>
+ * camel-uid-cache.c: #ifdef HAVE_CONFIG_H. Shuffle headers
+ * camel-uid-cache.h: Shuffle
+ * camel-url.c: #ifdef HAVE_CONFIG_H
+ * camel-vee-folder.c: #ifdef HAVE_CONFIG_H. Shuffle headers
+ * camel-vee-folder.h: #include <glib.h>
+ * camel-vee-store.h: Same here
+ * camel.c: #ifdef HAVE_CONFIG_H
+ * gstring-util.c: Here too
+ * hash-table-utils.c: Remove #include <glib.h>
+ * hash-table-utils.h: #include it here instead.
+ * string-utils.c: #ifdef HAVE_CONFIG_H
+ * providers/cache/camel-cache-map.c: #ifdef HAVE_CONFIG_H, shuffle
+ headers and mark strings in camel_exception_set*()
+ * providers/cache/camel-cache-provider.c: #ifdef HAVE_CONFIG_H
+ * providers/cache/camel-cache-store.c: Same here, and mark a string.
+ * providers/imap/camel-imap-command.c: #ifdef HAVE_CONFIG_H
+ * providers/imap/camel-imap-command.h: Shuffle header
+ * providers/imap/camel-imap-folder.c: #ifdef HAVE_CONFIG_H
+ * providers/imap/camel-imap-message-cache.c: #ifdef HAVE_CONFIG_H
+ * providers/imap/camel-imap-provider.c: #ifdef HAVE_CONFIG_H and
+ #include <string.h>
+ * providers/imap/camel-imap-search.c: #ifdef HAVE_CONFIG_H
+ * providers/imap/camel-imap-store.c: #ifdef HAVE_CONFIG_H and mark
+ a string.
+ * providers/imap/camel-imap-summary.c: Shuffle headers
+ * providers/imap/camel-imap-wrapper.c: #ifdef HAVE_CONFIG_H. Shuffle
+ * providers/local/camel-local-folder.c: #ifdef HAVE_CONFIG_H
+ * providers/local/camel-local-provider.c: #ifdef HAVE_CONFIG_H
+ * providers/local/camel-local-store.c: Same here
+ * providers/local/camel-local-summary.c: Here too, shuffle, mark a string
+ * providers/local/camel-maildir-folder.c: #ifdef HAVE_CONFIG_H
+ * providers/local/camel-maildir-store.c: Same
+ * providers/local/camel-maildir-summary.c: Here too
+ * providers/local/camel-mbox-summary.c: And here
+ * providers/local/camel-mbox-store.c: And here
+ * providers/local/camel-mbox-summary.c: #include <config.h>
+ * providers/local/camel-mh-folder.c: #ifdef HAVE_CONFIG_H
+ * providers/local/camel-mh-store.c: same
+ * providers/local/camel-mh-summary.c: #ifdef HAVE_CONFIG_H, shuffle headers
+ and mark a string for translation.
+ * providers/nntp/camel-nntp-auth.c: #include <config.h>
+ * providers/nntp/camel-nntp-store.c: Remove superfluous arg to
+ CAMEL_SERVICE_CLASS to make it compile
+ * providers/pop3/camel-pop3-provider.c: #ifdef HAVE_CONFIG_H
+ * providers/pop3/camel-pop3-store.c: Same here
+ * providers/sendmail/camel-sendmail-provider.c: Here too
+ * providers/sendmail/camel-sendmail-transport.c: Here too
+ * providers/smtp/camel-smtp-provider.c: Same
+ * providers/smtp/camel-smtp-transport.c: #ifdef HAVE_CONFIG_H, mark
+ strings for translations.
+
2001-03-29 Dan Winship <danw@ximian.com>
* camel-url.c (camel_url_to_string): change "gboolean show_passwd"
*
*/
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include "broken-date-parser.h"
/* prototypes for functions dealing with broken date formats */
*
*/
-#include <config.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#include <glib.h>
-#include <time.h>
-
-#include <ctype.h>
/* prototypes for functions dealing with broken date formats */
#ifndef _CAMEL_ADDRESS_H
#define _CAMEL_ADDRESS_H
+#include <glib.h>
#include <camel/camel-object.h>
#define CAMEL_ADDRESS(obj) CAMEL_CHECK_CAST (obj, camel_address_get_type (), CamelAddress)
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*/
+
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
+#include <errno.h>
+
#include "camel-data-wrapper.h"
#include "camel-mime-utils.h"
#include "camel-stream.h"
#include "camel-exception.h"
-#include <errno.h>
-
#define d(x)
static CamelObjectClass *parent_class = NULL;
#pragma }
#endif /* __cplusplus }*/
+#include <glib.h>
#include <camel/camel-object.h>
#define CAMEL_DATA_WRAPPER_TYPE (camel_data_wrapper_get_type ())
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
+#include <glib.h>
#include "camel-exception.h"
/* i dont know why gthread_mutex stuff even exists, this is easier */
#pragma }
#endif /* __cplusplus }*/
-#include <glib.h>
#include <camel/camel-types.h>
typedef enum {
* USA
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <string.h>
+#include <time.h>
+
+#include <glib.h>
+
#include "camel-filter-driver.h"
#include "camel-filter-search.h"
#include "camel-service.h"
#include "camel-mime-message.h"
-#include <glib.h>
-
-#include <time.h>
-
#include "e-util/e-sexp.h"
#include "e-util/e-memory.h"
#include "e-util/e-msgport.h" /* for edlist */
fd = open (mbox, O_RDONLY);
if (fd == -1) {
- camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM, "Unable to open spool folder");
+ camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM, _("Unable to open spool folder"));
goto fail;
}
/* to get the filesize */
mp = camel_mime_parser_new ();
camel_mime_parser_scan_from (mp, TRUE);
if (camel_mime_parser_init_with_fd (mp, fd) == -1) {
- camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM, "Unable to process spool folder");
+ camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM, _("Unable to process spool folder"));
goto fail;
}
fd = -1;
if (st.st_size > 0)
pc = (int)(100.0 * ((double)camel_mime_parser_tell (mp) / (double)st.st_size));
- report_status (driver, CAMEL_FILTER_STATUS_START, pc, "Getting message %d (%d%%)", i, pc);
+ report_status (driver, CAMEL_FILTER_STATUS_START, pc, _("Getting message %d (%d%%)"), i, pc);
msg = camel_mime_message_new ();
if (camel_mime_part_construct_from_parser (CAMEL_MIME_PART (msg), mp) == -1) {
- report_status (driver, CAMEL_FILTER_STATUS_END, 100, "Failed message %d", i);
- camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM, "Cannot open message");
+ report_status (driver, CAMEL_FILTER_STATUS_END, 100, _("Failed message %d"), i);
+ camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM, _("Cannot open message"));
camel_object_unref (CAMEL_OBJECT (msg));
goto fail;
}
status = camel_filter_driver_filter_message (driver, msg, NULL, NULL, NULL, source_url, ex);
camel_object_unref (CAMEL_OBJECT (msg));
if (camel_exception_is_set (ex) || status == -1) {
- report_status (driver, CAMEL_FILTER_STATUS_END, 100, "Failed message %d", i);
+ report_status (driver, CAMEL_FILTER_STATUS_END, 100, _("Failed message %d"), i);
goto fail;
}
}
if (p->defaultfolder) {
- report_status(driver, CAMEL_FILTER_STATUS_PROGRESS, 100, "Syncing folder");
+ report_status(driver, CAMEL_FILTER_STATUS_PROGRESS, 100, _("Syncing folder"));
camel_folder_sync(p->defaultfolder, FALSE, ex);
}
- report_status (driver, CAMEL_FILTER_STATUS_END, 100, "Complete");
+ report_status (driver, CAMEL_FILTER_STATUS_END, 100, _("Complete"));
return 0;
#ifndef _CAMEL_FILTER_DRIVER_H
#define _CAMEL_FILTER_DRIVER_H
+#include <glib.h>
#include <camel/camel-object.h>
#include <camel/camel-session.h>
#include <camel/camel-folder.h>
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
/* (from glibc headers:
POSIX says that <sys/types.h> must be included (by the caller) before <regex.h>. */
+
#include <sys/types.h>
#include <regex.h>
#include <string.h>
It implements enough to do basic searches on folders that can provide
an in-memory summary and a body index. */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#ifndef _CAMEL_FOLDER_SEARCH_H
#define _CAMEL_FOLDER_SEARCH_H
-#include <camel/camel-object.h>
-#include <e-util/e-sexp.h>
#include <gal/util/e-util.h>
+#include <e-util/e-sexp.h>
#include <libibex/ibex.h>
#include <camel/camel-folder.h>
+#include <camel/camel-object.h>
#define CAMEL_FOLDER_SEARCH_TYPE (camel_folder_search_get_type ())
#define CAMEL_FOLDER_SEARCH(obj) CAMEL_CHECK_CAST (obj, camel_folder_search_get_type (), CamelFolderSearch)
#ifndef _CAMEL_FOLDER_SUMMARY_H
#define _CAMEL_FOLDER_SUMMARY_H
-#include <camel/camel-object.h>
#include <stdio.h>
#include <time.h>
#include <camel/camel-mime-parser.h>
+#include <camel/camel-object.h>
#include <libibex/ibex.h>
#define CAMEL_FOLDER_SUMMARY(obj) CAMEL_CHECK_CAST (obj, camel_folder_summary_get_type (), CamelFolderSummary)
/* TODO: This could probably be made a camel object, but it isn't really required */
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <glib.h>
#include <ctype.h>
+#include <glib.h>
#include "camel-folder-thread.h"
#include "e-util/e-memory.h"
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
#include <string.h>
-#include "camel-folder.h"
-#include "camel-exception.h"
+#include <camel/camel-folder.h>
+#include <camel/camel-exception.h>
#include "camel-store.h"
#include "camel-mime-message.h"
#include "string-utils.h"
#pragma }
#endif /* __cplusplus }*/
+#include <glib.h>
#include <camel/camel-object.h>
#include <camel/camel-folder-summary.h>
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "camel-mime-utils.h"
-#include "camel-internet-address.h"
-
#include <stdio.h>
#include <string.h>
+#include "camel-mime-utils.h"
+#include "camel-internet-address.h"
+
#define d(x)
static int internet_decode (CamelAddress *, const char *raw);
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*/
+
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
#include <stdio.h>
#include <ctype.h>
#include "camel-medium.h"
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "camel-mime-filter-bestenc.h"
-
#include <string.h>
+#include "camel-mime-filter-bestenc.h"
+
static void camel_mime_filter_bestenc_class_init (CamelMimeFilterBestencClass *klass);
static void camel_mime_filter_bestenc_init (CamelMimeFilter *obj);
* USA
*/
-#include "camel-mime-filter-from.h"
#include <string.h>
+#include "camel-mime-filter-from.h"
#define d(x)
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "camel-mime-filter-linewrap.h"
#include <ctype.h>
+#include "camel-mime-filter-linewrap.h"
static void filter (CamelMimeFilter *f, char *in, size_t len, size_t prespace,
char **out, size_t *outlen, size_t *outprespace);
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include <string.h>
#include "camel-mime-filter.h"
/*#define MALLOC_CHECK */ /* for some malloc checking, requires mcheck enabled */
#ifndef _CAMEL_MIME_FILTER_H
#define _CAMEL_MIME_FILTER_H
-#include <camel/camel-object.h>
#include <sys/types.h>
+#include <camel/camel-object.h>
#define CAMEL_MIME_FILTER_TYPE (camel_mime_filter_get_type ())
#define CAMEL_MIME_FILTER(obj) CAMEL_CHECK_CAST (obj, camel_mime_filter_get_type (), CamelMimeFilter)
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
+#include <stdio.h>
+#include <string.h>
#include "camel-mime-message.h"
#include "camel-multipart.h"
#include "camel-mime-filter-charset.h"
#include "camel-mime-filter-bestenc.h"
-#include <stdio.h>
-#include <string.h>
-
#define d(x)
/* these 2 below should be kept in sync */
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*/
+
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
#include <string.h>
#include "string-utils.h"
#include "camel-mime-part-utils.h"
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
#include <string.h>
-#include "camel-mime-part.h"
#include <stdio.h>
-#include "string-utils.h"
-#include "hash-table-utils.h"
-#include "camel-mime-part-utils.h"
#include <ctype.h>
+#include "hash-table-utils.h"
#include "camel-mime-parser.h"
#include "camel-stream-mem.h"
#include "camel-stream-filter.h"
#include "camel-mime-filter-basic.h"
#include "camel-mime-filter-crlf.h"
#include "camel-mime-filter-charset.h"
+#include "camel-mime-part.h"
+#include "camel-mime-part-utils.h"
#include "camel-exception.h"
+#include "string-utils.h"
#define d(x) /*(printf("%s(%d): ", __FILE__, __LINE__),(x))*/
/* dont touch this file without my permission - Michael */
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <stdio.h>
-
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/param.h> /* for MAXHOSTNAMELEN */
#include <unicode.h>
#include <iconv.h>
-#include <glib.h>
#include <time.h>
#include <ctype.h>
#include <errno.h>
-
#include <regex.h>
+#include <glib.h>
+
#include "camel-mime-utils.h"
#include "camel-charset-map.h"
{
const char *inptr = in+2;
const char *inend = in+len-2;
- const char *inbuf;
+ char *inbuf;
char *encname;
int tmplen;
int ret;
iconv_t ic = (iconv_t *)-1;
char *buffer, *out, *ascii;
size_t inlen, outlen, enclen, bufflen;
- const char *inptr, *p;
+ char *inptr, *p;
int first = 1;
d(printf("Converting [%d] '%.*s' to %s\n", len, len, in, type));
#ifndef _CAMEL_MIME_UTILS_H
#define _CAMEL_MIME_UTILS_H
-#include <glib.h>
#include <time.h>
+#include <glib.h>
/* maximum size of a line from header_fold() */
#define CAMEL_FOLD_SIZE (77)
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <sys/stat.h>
#include <sys/uio.h>
fail:
camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
- "Error copying "
- "mail temp file: %s",
+ _("Error copying "
+ "mail temp file: %s"),
g_strerror (errno));
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
+#include <string.h> /* strlen() */
+#include <unistd.h> /* for getpid */
+#include <time.h> /* for time */
+
#include "camel-stream-mem.h"
#include "camel-multipart.h"
#include "camel-mime-part.h"
#include "camel-exception.h"
#include "md5-utils.h"
-#include <unistd.h> /* for getpid */
-#include <time.h> /* for time */
-
#define d(x)
static void add_part (CamelMultipart *multipart,
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
+#include <string.h>
#include "camel-object.h"
/* I just mashed the keyboard for these... */
#endif /* __cplusplus } */
#include <stdlib.h> /* size_t */
-#include <camel/camel-types.h>
#include <glib.h>
#include <libgnome/gnome-defs.h>
#include <libgnome/gnome-i18n.h>
+#include <camel/camel-types.h>
#ifdef G_DISABLE_CHECKS
#define CAMEL_CHECK_CAST( obj, ctype, ptype ) ((ptype *) obj)
-
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdio.h>
#ifdef ENABLE_THREADS
/* FIXME: Shouldn't we add a version number to providers ? */
-#include "config.h"
-#include "camel-provider.h"
-#include "camel-exception.h"
-#include "hash-table-utils.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <dirent.h>
#include <errno.h>
#include <gmodule.h>
+#include "camel-provider.h"
+#include "camel-exception.h"
+#include "hash-table-utils.h"
+
/**
* camel_provider_init:
*
if (!g_module_supported ()) {
camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
- "Could not load %s: Module loading "
- "not supported on this system.",
+ _("Could not load %s: Module loading "
+ "not supported on this system."),
path);
return;
}
*
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <sys/time.h>
#include <sys/types.h>
*
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
+#include <string.h>
#include "camel-sasl-anonymous.h"
#include "camel-internet-address.h"
#include <string.h>
*
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
+#include <stdio.h>
+#include <string.h>
#include "camel-sasl-cram-md5.h"
#include "camel-mime-utils.h"
#include "camel-service.h"
#include <e-util/md5-utils.h>
-#include <stdio.h>
-#include <string.h>
CamelServiceAuthType camel_sasl_cram_md5_authtype = {
N_("CRAM-MD5"),
*
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
-#include "camel-sasl-digest-md5.h"
-#include "camel-mime-utils.h"
-#include <e-util/md5-utils.h>
+#endif
+
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
-
#include <iconv.h>
+#include "camel-sasl-digest-md5.h"
+#include "camel-mime-utils.h"
+#include <e-util/md5-utils.h>
+
#define d(x)
#pragma }
#endif /* __cplusplus }*/
-#include <camel/camel-sasl.h>
#include <sys/types.h>
#include <netdb.h>
+#include <camel/camel-sasl.h>
#define CAMEL_SASL_DIGEST_MD5_TYPE (camel_sasl_digest_md5_get_type ())
#define CAMEL_SASL_DIGEST_MD5(obj) (CAMEL_CHECK_CAST((obj), CAMEL_SASL_DIGEST_MD5_TYPE, CamelSaslDigestMd5))
*
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#ifdef HAVE_KRB4
*/
#undef _
+#include <string.h>
#include "camel-sasl-kerberos4.h"
#include "camel-service.h"
-#include <string.h>
CamelServiceAuthType camel_sasl_kerberos4_authtype = {
N_("Kerberos 4"),
#pragma }
#endif /* __cplusplus }*/
-#include <camel/camel-sasl.h>
#include <sys/types.h>
#include <netdb.h>
+#include <camel/camel-sasl.h>
#define CAMEL_SASL_KERBEROS4_TYPE (camel_sasl_kerberos4_get_type ())
#define CAMEL_SASL_KERBEROS4(obj) (CAMEL_CHECK_CAST((obj), CAMEL_SASL_KERBEROS4_TYPE, CamelSaslKerberos4))
*
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
+#include <string.h>
#include "camel-sasl-plain.h"
#include "camel-service.h"
-#include <string.h>
CamelServiceAuthType camel_sasl_plain_authtype = {
N_("Password"),
*
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
+#include <string.h>
#include "camel-sasl.h"
#include "camel-mime-utils.h"
#include "camel-service.h"
/* (from glibc headers:
POSIX says that <sys/types.h> must be included (by the caller) before <regex.h>. */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <sys/types.h>
#include <regex.h>
#include <string.h>
* USA
*/
-
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
#include "camel-seekable-stream.h"
static CamelStreamClass *parent_class = NULL;
#pragma }
#endif /* __cplusplus }*/
-#include <camel/camel-stream.h>
#include <sys/types.h>
#include <unistd.h>
+#include <camel/camel-stream.h>
#define CAMEL_SEEKABLE_STREAM_TYPE (camel_seekable_stream_get_type ())
#define CAMEL_SEEKABLE_STREAM(obj) (CAMEL_CHECK_CAST((obj), CAMEL_SEEKABLE_STREAM_TYPE, CamelSeekableStream))
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*/
+
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
#include "camel-seekable-substream.h"
static CamelSeekableStreamClass *parent_class = NULL;
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*/
+
+#ifdef HAVE_CONFIG_H
#include <config.h>
-#include "camel-service.h"
-#include "camel-session.h"
-#include "camel-exception.h"
+#endif
#include <ctype.h>
#include <stdlib.h>
+#include "camel-service.h"
+#include "camel-session.h"
+#include "camel-exception.h"
#include "camel-private.h"
static CamelObjectClass *parent_class = NULL;
#pragma }
#endif /* __cplusplus }*/
+#include <netdb.h>
#include <camel/camel-object.h>
#include <camel/camel-url.h>
#include <camel/camel-provider.h>
-#include <netdb.h>
#define CAMEL_SERVICE_TYPE (camel_service_get_type ())
#define CAMEL_SERVICE(obj) (CAMEL_CHECK_CAST((obj), CAMEL_SERVICE_TYPE, CamelService))
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
#include <errno.h>
#include <stdio.h>
#include <string.h>
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
#include <string.h>
#include "camel-session.h"
-
#include "camel-store.h"
#include "camel-folder.h"
#include "camel-vtrash-folder.h"
#include "camel-exception.h"
-
#include "camel-private.h"
static CamelServiceClass *parent_class = NULL;
* USA
*/
-
+#ifdef HAVE_CONFIG_H
#include <config.h>
-#include "camel-stream-buffer.h"
+#endif
+
+#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
+#include "camel-stream-buffer.h"
static CamelStreamClass *parent_class = NULL;
#pragma }
#endif /* __cplusplus }*/
-#include <camel/camel-seekable-stream.h>
#include <stdio.h>
+#include <camel/camel-seekable-stream.h>
#define CAMEL_STREAM_BUFFER_TYPE (camel_stream_buffer_get_type ())
#define CAMEL_STREAM_BUFFER(obj) (CAMEL_CHECK_CAST((obj), CAMEL_STREAM_BUFFER_TYPE, CamelStreamBuffer))
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include <string.h>
#include "camel-stream-filter.h"
#define d(x)
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
-#include "camel-stream-fs.h"
-#include "camel-session.h"
+#endif
+
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include "camel-operation.h"
+#include "camel-stream-fs.h"
+#include "camel-session.h"
static CamelSeekableStreamClass *parent_class = NULL;
#pragma }
#endif /* __cplusplus }*/
-#include <camel/camel-seekable-stream.h>
-
/* for open flags */
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <camel/camel-seekable-stream.h>
+
#define CAMEL_STREAM_FS_TYPE (camel_stream_fs_get_type ())
#define CAMEL_STREAM_FS(obj) (CAMEL_CHECK_CAST((obj), CAMEL_STREAM_FS_TYPE, CamelStreamFs))
#define CAMEL_STREAM_FS_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_STREAM_FS_TYPE, CamelStreamFsClass))
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
-#include "camel-stream-mem.h"
+#endif
+
+#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
+#include "camel-stream-mem.h"
+
static CamelSeekableStreamClass *parent_class = NULL;
/* Returns the class for a CamelStreamMem */
#pragma }
#endif /* __cplusplus }*/
-#include <camel/camel-seekable-stream.h>
#include <sys/types.h>
+#include <camel/camel-seekable-stream.h>
#define CAMEL_STREAM_MEM_TYPE (camel_stream_mem_get_type ())
#define CAMEL_STREAM_MEM(obj) (CAMEL_CHECK_CAST((obj), CAMEL_STREAM_MEM_TYPE, CamelStreamMem))
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
#include "camel-stream-null.h"
static CamelObjectClass *parent_class = NULL;
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
+#include <string.h>
#include "camel-stream.h"
static CamelObjectClass *parent_class = NULL;
#pragma }
#endif /* __cplusplus }*/
-#include <camel/camel-object.h>
#include <stdarg.h>
#include <unistd.h>
+#include <camel/camel-object.h>
#define CAMEL_STREAM_TYPE (camel_stream_get_type ())
#define CAMEL_STREAM(obj) (CAMEL_CHECK_CAST((obj), CAMEL_STREAM_TYPE, CamelStream))
*
*/
-
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#ifdef HAVE_OPENSSL
-#include "camel-tcp-stream-openssl.h"
-#include "camel-operation.h"
#include <openssl/openssl.h>
#include <sys/time.h>
#include <sys/types.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
+#include "camel-tcp-stream-openssl.h"
+#include "camel-operation.h"
static CamelTcpStreamClass *parent_class = NULL;
*
*/
-
+#ifdef HAVE_CONFIG_H
#include <config.h>
-#include "camel-tcp-stream-raw.h"
-#include "camel-operation.h"
+#endif
+
#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
+#include "camel-tcp-stream-raw.h"
+#include "camel-operation.h"
static CamelTcpStreamClass *parent_class = NULL;
*
*/
-
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#ifdef HAVE_NSS
-#include "camel-tcp-stream-ssl.h"
-#include "camel-session.h"
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "nss.h" /* Don't use <> here or it will include the system nss.h instead */
#include <ssl.h>
+#include "camel-tcp-stream-ssl.h"
+#include "camel-session.h"
+
static CamelTcpStreamClass *parent_class = NULL;
/* Returns the class for a CamelTcpStreamSSL */
*
*/
-
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include "camel-tcp-stream.h"
#pragma }
#endif /* __cplusplus }*/
-#include <camel/camel-stream.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <unistd.h>
+#include <camel/camel-stream.h>
+
#define CAMEL_TCP_STREAM_TYPE (camel_tcp_stream_get_type ())
#define CAMEL_TCP_STREAM(obj) (CAMEL_CHECK_CAST((obj), CAMEL_TCP_STREAM_TYPE, CamelTcpStream))
#define CAMEL_TCP_STREAM_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_TCP_STREAM_TYPE, CamelTcpStreamClass))
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*/
+
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
#include "camel-transport.h"
#include "camel-exception.h"
#pragma }
#endif /* __cplusplus }*/
+#include <glib.h>
#include <camel/camel-service.h>
#define CAMEL_TRANSPORT_TYPE (camel_transport_get_type ())
* USA
*/
-#include "config.h"
-#include "camel-uid-cache.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
+#include "camel-uid-cache.h"
+
static void free_uid (gpointer key, gpointer value, gpointer data);
static void maybe_write_uid (gpointer key, gpointer value, gpointer data);
#pragma }
#endif /* __cplusplus */
-#include <glib.h>
#include <stdio.h>
+#include <glib.h>
typedef struct {
int fd, level;
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
#include "camel-url.h"
#include "camel-exception.h"
#include "camel-mime-utils.h"
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
+#include <string.h>
#include "camel-exception.h"
#include "camel-vee-folder.h"
#include "e-util/e-memory.h"
#endif
-#include <string.h>
-
#define d(x)
#define _PRIVATE(o) (((CamelVeeFolder *)(o))->priv)
#ifndef _CAMEL_VEE_FOLDER_H
#define _CAMEL_VEE_FOLDER_H
+#include <glib.h>
#include <camel/camel-folder.h>
#define CAMEL_VEE_FOLDER(obj) CAMEL_CHECK_CAST (obj, camel_vee_folder_get_type (), CamelVeeFolder)
#ifndef _CAMEL_VEE_STORE_H
#define _CAMEL_VEE_STORE_H
+#include <glib.h>
#include <camel/camel-store.h>
#define CAMEL_VEE_STORE(obj) CAMEL_CHECK_CAST (obj, camel_vee_store_get_type (), CamelVeeStore)
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
-#include "camel.h"
+#endif
+
#include <unicode.h>
#ifdef HAVE_NSS
#include <nspr.h>
#include <ssl.h>
#endif /* HAVE_NSS */
+#include "camel.h"
+
gboolean camel_verbose_debug = FALSE;
gint
* USA
*/
-
-
+#ifdef HAVE_CONFIG_H
#include <config.h>
-#include "gstring-util.h"
+#endif
+
#include <string.h>
+#include "gstring-util.h"
/**
* g_string_equals : test if two string are equal
*/
#include <ctype.h>
-#include "glib.h"
#include "hash-table-utils.h"
#pragma }
#endif /* __cplusplus }*/
+#include <glib.h>
+
void g_hash_table_generic_free (gpointer key, gpointer value, gpointer user_data);
gint g_strcase_equal (gconstpointer a, gconstpointer b);
* USA
*/
-#include "camel-cache-map.h"
-#include <camel/camel-exception.h>
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
+#include "camel-cache-map.h"
+#include <camel/camel-exception.h>
+
/**
* camel_cache_map_new:
*
if (fd == -1) {
g_free (tmpfile);
camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
- "Could not create cache map file: %s",
+ _("Could not create cache map file: %s"),
g_strerror (errno));
return;
}
if (close (fd) == -1 ||
rename (tmpfile, file) == -1) {
camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
- "Could not save cache map file: %s",
+ _("Could not save cache map file: %s"),
g_strerror (errno));
unlink (tmpfile);
}
f = fopen (file, "r");
if (!f) {
camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
- "Could not open cache map file: %s",
+ _("Could not open cache map file: %s"),
g_strerror (errno));
return;
}
q = strchr (buf, '\n');
if (!p || !q) {
camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM,
- "Bad cache file.");
+ _("Bad cache file."));
return;
}
*p++ = *q = '\0';
* USA
*/
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "camel-cache-store.h"
#include "camel-provider.h"
#include "camel-session.h"
* USA
*/
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <sys/types.h>
#include <sys/socket.h>
if (!lf) {
camel_object_unref (CAMEL_OBJECT (rf));
camel_exception_setv (ex, camel_exception_get_id (ex),
- "Could not create cache folder:\n%s",
+ _("Could not create cache folder:\n%s"),
camel_exception_get_description (ex));
return NULL;
}
*
*/
-
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <stdarg.h>
#include <stdio.h>
#pragma }
#endif /* __cplusplus }*/
-#include "camel-imap-types.h"
#include <glib.h>
+#include "camel-imap-types.h"
struct _CamelImapResponse {
CamelFolder *folder;
* USA
*/
-
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <stdlib.h>
#include <sys/types.h>
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <ctype.h>
#include <dirent.h>
*
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
-#include "config.h"
+#include <string.h>
#include "camel-imap-store.h"
#include "camel-provider.h"
#include "camel-session.h"
*
*/
-
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <string.h>
*
*/
-
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
if (!selectable) {
camel_exception_setv (ex, CAMEL_EXCEPTION_STORE_NO_FOLDER,
- "%s is not a selectable folder",
+ _("%s is not a selectable folder"),
folder_name);
g_free (short_name);
return NULL;
* USA
*/
-#include "camel-imap-summary.h"
-#include <camel/camel-mime-message.h>
-
#include <sys/stat.h>
#include <sys/uio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
+#include "camel-imap-summary.h"
+#include <camel/camel-mime-message.h>
+
#define CAMEL_IMAP_SUMMARY_VERSION (0x300)
static int summary_header_load (CamelFolderSummary *, FILE *);
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
+#include <errno.h>
+#include <string.h>
#include "camel-imap-folder.h"
#include "camel-imap-wrapper.h"
#include "camel-mime-filter-charset.h"
#include "camel-mime-part.h"
-#include <errno.h>
-#include <string.h>
-
static CamelDataWrapperClass *parent_class = NULL;
/* Returns the class for a CamelDataWrapper */
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <stdlib.h>
#include <sys/types.h>
* USA
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
-#include "config.h"
#include "camel-provider.h"
#include "camel-session.h"
#include "camel-url.h"
* USA
*/
-
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <sys/stat.h>
#include <errno.h>
* USA
*/
-#include "camel-local-summary.h"
-#include <camel/camel-mime-message.h>
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <ctype.h>
-
#include <sys/stat.h>
#include <sys/uio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
+#include "camel-local-summary.h"
+#include <camel/camel-mime-message.h>
+
#define io(x)
#define d(x) /*(printf("%s(%d): ", __FILE__, __LINE__),(x))*/
camel_folder_change_info_add_uid(ci, camel_message_info_uid(mi));
} else {
d(printf("Failed!\n"));
- camel_exception_set(ex, 1, "Unable to add message to summary: unknown reason");
+ camel_exception_set(ex, 1, _("Unable to add message to summary: unknown reason"));
}
return mi;
}
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <stdlib.h>
#include <sys/types.h>
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <sys/stat.h>
#include <errno.h>
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "camel-maildir-summary.h"
-#include <camel/camel-mime-message.h>
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <sys/stat.h>
#include <sys/uio.h>
#include <ctype.h>
+#include "camel-maildir-summary.h"
+#include <camel/camel-mime-message.h>
+
#include "camel-private.h"
#include "e-util/e-memory.h"
dir = opendir(cur);
if (dir == NULL) {
- camel_exception_setv(ex, 1, "Cannot open maildir directory path: %s: %s", cls->folder_path, strerror(errno));
+ camel_exception_setv(ex, 1, _("Cannot open maildir directory path: %s: %s"), cls->folder_path, strerror(errno));
g_free(cur);
return -1;
}
no longer exist */
dir = opendir(cur);
if (dir == NULL) {
- camel_exception_setv(ex, 1, "Cannot open maildir directory path: %s: %s", cls->folder_path, strerror(errno));
+ camel_exception_setv(ex, 1, _("Cannot open maildir directory path: %s: %s"), cls->folder_path, strerror(errno));
g_free(cur);
g_free(new);
return -1;
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <stdlib.h>
#include <sys/types.h>
mf->lockfd = open(lf->folder_path, O_RDWR, 0);
if (mf->lockfd == -1) {
- camel_exception_setv(ex, 1, "Cannot create folder lock on %s: %s", lf->folder_path, strerror(errno));
+ camel_exception_setv(ex, 1, _("Cannot create folder lock on %s: %s"), lf->folder_path, strerror(errno));
return -1;
}
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <sys/stat.h>
#include <errno.h>
* USA
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "camel-mbox-summary.h"
#include "camel/camel-mime-message.h"
#include "camel/camel-operation.h"
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <stdlib.h>
#include <sys/types.h>
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <sys/stat.h>
#include <errno.h>
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "camel-mh-summary.h"
-#include <camel/camel-mime-message.h>
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <sys/stat.h>
#include <sys/uio.h>
#include <ctype.h>
+#include "camel-mh-summary.h"
+#include <camel/camel-mime-message.h>
+
#define d(x) /*(printf("%s(%d): ", __FILE__, __LINE__),(x))*/
#define CAMEL_MH_SUMMARY_VERSION (0x2000)
no longer exist */
dir = opendir(cls->folder_path);
if (dir == NULL) {
- camel_exception_setv(ex, 1, "Cannot open MH directory path: %s: %s", cls->folder_path, strerror(errno));
+ camel_exception_setv(ex, 1, _("Cannot open MH directory path: %s: %s"), cls->folder_path, strerror(errno));
return -1;
}
* USA
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+#include <string.h>
#include <camel-nntp-auth.h>
#include <camel-nntp-store.h>
#include <camel-nntp-resp-codes.h>
}
/* read the time */
- if (!fgets (buf, 300, fp)) {
+ if (!fgets (buf, sizeof (buf), fp)) {
camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE,
_("Unable to load grouplist file for %s: %s"),
CAMEL_SERVICE(store)->url->host,
sscanf (buf, "%lu", &time);
list->time = time;
- while (fgets (buf, 300, fp)) {
+ while (fgets (buf, sizeof (buf), fp)) {
CamelNNTPGroupListEntry *entry = g_new (CamelNNTPGroupListEntry, 1);
char **split_line = g_strsplit (buf, " ", 4);
* USA
*/
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <string.h>
#include "camel-nntp-store.h"
#include "camel-provider.h"
#include "camel-session.h"
CAMEL_URL_NEED_HOST | CAMEL_URL_ALLOW_USER |
CAMEL_URL_ALLOW_PASSWORD | CAMEL_URL_ALLOW_AUTH,
- { 0, 0 },
-
- NULL
+ /* ... */
};
void
GList *prev;
g_warning ("nntp::query_auth_types: not implemented. Defaulting.");
- prev = CAMEL_SERVICE_CLASS (remote_store_class)->query_auth_types (service, connect, ex);
+ prev = CAMEL_SERVICE_CLASS (remote_store_class)->query_auth_types (service, ex);
return g_list_prepend (prev, &password_authtype);
}
* USA
*/
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "camel-pop3-store.h"
#include "camel-provider.h"
#include "camel-session.h"
* USA
*/
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <sys/types.h>
#include <sys/socket.h>
* USA
*/
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "camel-provider.h"
#include "camel-sendmail-transport.h"
#include "camel-session.h"
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <errno.h>
#include <fcntl.h>
* USA
*/
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "camel-smtp-transport.h"
#include "camel-provider.h"
#include "camel-session.h"
* USA
*/
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <sys/param.h>
#include <sys/types.h>
if (!transport->is_esmtp || !g_hash_table_lookup (transport->authtypes, service->url->authmech)) {
camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_CANT_AUTHENTICATE,
- "SMTP server %s does not support requested "
- "authentication type %s", service->url->host,
+ _("SMTP server %s does not support requested "
+ "authentication type %s"), service->url->host,
service->url->authmech);
camel_service_disconnect (service, TRUE, NULL);
return FALSE;
authtype = camel_sasl_authtype (service->url->authmech);
if (!authtype) {
camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_CANT_AUTHENTICATE,
- "No support for authentication type %s",
+ _("No support for authentication type %s"),
service->url->authmech);
camel_service_disconnect (service, TRUE, NULL);
return FALSE;
* USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
#include "string-utils.h"
#include "string.h"