1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
/* Cronos II
* Copyright (C) 2000-2001 Pablo Fernndez Navarro
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef INIT_H
#define INIT_H
#ifdef __cplusplus
extern "C" {
#endif
#include "account.h"
#if USE_GNOME
# include <gnome.h>
#else
# include <gtk/gtk.h>
#endif
#define ROOT "/.CronosII"
#define CONFIG "/cronos.conf"
#define TMP "/tmp"
typedef enum {
INIT_DEFAULT_MIME_PART_PLAIN,
INIT_DEFAULT_MIME_PART_HTML
} InitDefaultMimePart;
#ifdef BUILD_ADDRESS_BOOK
typedef enum {
INIT_ADDRESS_BOOK_INIT_START,
INIT_ADDRESS_BOOK_INIT_REQ,
INIT_ADDRESS_BOOK_INIT_OPEN,
} InitAddressBookInitializationMode;
#endif
typedef struct {
Account *account_head; /* Pointer to the first element of the account's linked list */
Mailbox *mailbox_head; /* Pointer to the first element of the mailbox's linked list */
C2DynamicModule *module_head; /* Pointer to the first element of the module's linked list */
gboolean empty_garbage; /* Should delete the Garbage mailbox when exiting */
guint8 check_timeout; /* Will auto check for mails every $check_timeout minutes */
gboolean check_at_start; /* Check for mail at start */
gboolean use_outbox; /* Keep a copy in the Outbox mailbox when sending a mail */
char *prepend_char_on_re; /* Prepend this char to each line when Replying or Forwarding */
guint16 message_bigger; /* Do not download message bigger than */
int timeout; /* Configurable timeout for net related process */
guint8 mark_as_read; /* Seconds before marking a mail as readed */
gboolean use_persistent_smtp_connection;
char *persistent_smtp_address;
int persistent_smtp_port;
InitDefaultMimePart default_mime_part;/* Default MIME Part (plain or html) */
#ifdef BUILD_ADDRESS_BOOK
InitAddressBookInitializationMode addrbook_init; /* When to initializate the address book */
#endif
GdkColor color_reply_original_message; /* Replying and forwarding: Original message color */
GdkColor color_misc_body; /* Message Text Color */
gboolean queue_state;
} Conf;
Conf *config;
void
cronos_init (void);
#ifdef __cplusplus
}
#endif
#endif
|