Statistics
| Revision:

root / libsylph / defs.h @ 528

History | View | Annotate | Download (3.5 kB)

1 528 hiro
/*
2 528 hiro
 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 528 hiro
 * Copyright (C) 1999-2005 Hiroyuki Yamamoto
4 528 hiro
 *
5 528 hiro
 * This program is free software; you can redistribute it and/or modify
6 528 hiro
 * it under the terms of the GNU General Public License as published by
7 528 hiro
 * the Free Software Foundation; either version 2 of the License, or
8 528 hiro
 * (at your option) any later version.
9 528 hiro
 *
10 528 hiro
 * This program is distributed in the hope that it will be useful,
11 528 hiro
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 528 hiro
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 528 hiro
 * GNU General Public License for more details.
14 528 hiro
 *
15 528 hiro
 * You should have received a copy of the GNU General Public License
16 528 hiro
 * along with this program; if not, write to the Free Software
17 528 hiro
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 528 hiro
 */
19 528 hiro
20 528 hiro
#ifndef __DEFS_H__
21 528 hiro
#define __DEFS_H__
22 528 hiro
23 528 hiro
#ifdef HAVE_CONFIG_H
24 528 hiro
#  include "config.h"
25 528 hiro
#endif
26 528 hiro
27 528 hiro
#include <glibconfig.h>
28 528 hiro
29 528 hiro
#ifdef G_OS_WIN32
30 528 hiro
#  include <glib/gwin32.h>
31 528 hiro
#endif
32 528 hiro
33 528 hiro
#if HAVE_PATHS_H
34 528 hiro
#  include <paths.h>
35 528 hiro
#endif
36 528 hiro
37 528 hiro
#if HAVE_SYS_PARAM_H
38 528 hiro
#  include <sys/param.h>
39 528 hiro
#endif
40 528 hiro
41 528 hiro
#define INBOX_DIR                "inbox"
42 528 hiro
#define OUTBOX_DIR                "sent"
43 528 hiro
#define QUEUE_DIR                "queue"
44 528 hiro
#define DRAFT_DIR                "draft"
45 528 hiro
#define TRASH_DIR                "trash"
46 528 hiro
#ifdef G_OS_WIN32
47 528 hiro
#  define RC_DIR                "Sylpheed"
48 528 hiro
#else
49 528 hiro
#  define RC_DIR                ".sylpheed-2.0"
50 528 hiro
#endif
51 528 hiro
#define OLD_RC_DIR                ".sylpheed"
52 528 hiro
#define NEWS_CACHE_DIR                "newscache"
53 528 hiro
#define IMAP_CACHE_DIR                "imapcache"
54 528 hiro
#define MIME_TMP_DIR                "mimetmp"
55 528 hiro
#define COMMON_RC                "sylpheedrc"
56 528 hiro
#define ACCOUNT_RC                "accountrc"
57 528 hiro
#define FILTER_RC                "filterrc"
58 528 hiro
#define FILTER_LIST                "filter.xml"
59 528 hiro
#define FILTER_HEADER_RC        "filterheaderrc"
60 528 hiro
#define CUSTOM_HEADER_RC        "customheaderrc"
61 528 hiro
#define DISPLAY_HEADER_RC        "dispheaderrc"
62 528 hiro
#define MENU_RC                        "menurc"
63 528 hiro
#define ACTIONS_RC                "actionsrc"
64 528 hiro
#define COMMAND_HISTORY                "command_history"
65 528 hiro
#define TEMPLATE_DIR                "templates"
66 528 hiro
#define TMP_DIR                        "tmp"
67 528 hiro
#define UIDL_DIR                "uidl"
68 528 hiro
#define NEWSGROUP_LIST                ".newsgroup_list"
69 528 hiro
#define ADDRESS_BOOK                "addressbook.xml"
70 528 hiro
#define MANUAL_HTML_INDEX        "sylpheed.html"
71 528 hiro
#define FAQ_HTML_INDEX                "sylpheed-faq.html"
72 528 hiro
#define HOMEPAGE_URI                "http://sylpheed.good-day.net/"
73 528 hiro
#define FOLDER_LIST                "folderlist.xml"
74 528 hiro
#define CACHE_FILE                ".sylpheed_cache"
75 528 hiro
#define MARK_FILE                ".sylpheed_mark"
76 528 hiro
#define CACHE_VERSION                0x21
77 528 hiro
#define MARK_VERSION                2
78 528 hiro
79 528 hiro
#ifdef G_OS_WIN32
80 528 hiro
#  define DEFAULT_SIGNATURE        "signature.txt"
81 528 hiro
#else
82 528 hiro
#  define DEFAULT_SIGNATURE        ".signature"
83 528 hiro
#endif
84 528 hiro
#define DEFAULT_INC_PATH        "/usr/bin/mh/inc"
85 528 hiro
#define DEFAULT_INC_PROGRAM        "inc"
86 528 hiro
/* #define DEFAULT_INC_PATH        "/usr/bin/imget" */
87 528 hiro
/* #define DEFAULT_INC_PROGRAM        "imget" */
88 528 hiro
#define DEFAULT_SENDMAIL_CMD        "/usr/sbin/sendmail -t -i"
89 528 hiro
#define DEFAULT_BROWSER_CMD        "mozilla-firefox -remote 'openURL(%s,new-window)'"
90 528 hiro
91 528 hiro
#ifdef _PATH_MAILDIR
92 528 hiro
#  define DEFAULT_SPOOL_PATH        _PATH_MAILDIR
93 528 hiro
#else
94 528 hiro
#  define DEFAULT_SPOOL_PATH        "/var/spool/mail"
95 528 hiro
#endif
96 528 hiro
97 528 hiro
#define BUFFSIZE                        8192
98 528 hiro
99 528 hiro
#ifndef MAXPATHLEN
100 528 hiro
#  define MAXPATHLEN                        4095
101 528 hiro
#endif
102 528 hiro
103 528 hiro
#define DEFAULT_HEIGHT                        460
104 528 hiro
#define DEFAULT_FOLDERVIEW_WIDTH        179
105 528 hiro
#define DEFAULT_MAINVIEW_WIDTH                600
106 528 hiro
#define DEFAULT_SUMMARY_HEIGHT                140
107 528 hiro
#define DEFAULT_HEADERVIEW_HEIGHT        40
108 528 hiro
#define DEFAULT_COMPOSE_HEIGHT                560
109 528 hiro
#define BORDER_WIDTH                        2
110 528 hiro
#define CTREE_INDENT                        18
111 528 hiro
#define FOLDER_SPACING                        4
112 528 hiro
#define MAX_ENTRY_LENGTH                8191
113 528 hiro
#define COLOR_DIM                        35000
114 528 hiro
#define UI_REFRESH_INTERVAL                50000        /* usec */
115 528 hiro
#define FOLDER_UPDATE_INTERVAL                1500        /* msec */
116 528 hiro
#define PROGRESS_UPDATE_INTERVAL        200        /* msec */
117 528 hiro
#define SESSION_TIMEOUT_INTERVAL        60        /* sec */
118 528 hiro
#define MAX_HISTORY_SIZE                16
119 528 hiro
120 528 hiro
#define DEFAULT_MESSAGE_FONT        "Monospace 12"
121 528 hiro
122 528 hiro
#endif /* __DEFS_H__ */