2006-03-28 [colin] 2.0.0cvs180
[claws.git] / src / common / defs.h
1 /*
2  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999-2006 Hiroyuki Yamamoto and the Sylpheed-Claws team
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19
20 #ifndef __DEFS_H__
21 #define __DEFS_H__
22
23 #ifdef HAVE_CONFIG_H
24 #  include "config.h"
25 #endif
26
27 #include <glibconfig.h>
28
29 #ifdef G_OS_WIN32
30 #  include <glib/gwin32.h>
31 #endif
32
33 #if HAVE_PATHS_H
34 #  include <paths.h>
35 #endif
36
37 #if HAVE_SYS_PARAM_H
38 #  include <sys/param.h>
39 #endif
40
41 #define INBOX_DIR               "inbox"
42 #define OUTBOX_DIR              "sent"
43 #define QUEUE_DIR               "queue"
44 #define DRAFT_DIR               "draft"
45 #define TRASH_DIR               "trash"
46 #define RC_DIR                  CFG_RC_DIR
47 #define OLD_GTK2_RC_DIR         ".sylpheed-gtk2"
48 #define OLD_GTK1_RC_DIR         ".sylpheed"
49 #define NEWS_CACHE_DIR          "newscache"
50 #define IMAP_CACHE_DIR          "imapcache"
51 #define MBOX_CACHE_DIR          "mboxcache"
52 #define HEADER_CACHE_DIR        "headercache" 
53 #define MIME_TMP_DIR            "mimetmp"
54 #define COMMON_RC               "sylpheedrc"
55 #define ACCOUNT_RC              "accountrc"
56 #define CUSTOM_HEADER_RC        "customheaderrc"
57 #define DISPLAY_HEADER_RC       "dispheaderrc"
58 #define FOLDERITEM_RC           "folderitemrc"
59 #define SCORING_RC              "scoringrc"
60 #define FILTERING_RC            "filteringrc"
61 #define MATCHER_RC              "matcherrc"
62 #define MENU_RC                 "menurc"
63 #define RENDERER_RC             "rendererrc"
64 #define QUICKSEARCH_HISTORY     "quicksearch_history"
65 #define TEMPLATE_DIR            "templates"
66 #define TMP_DIR                 "tmp"
67 #define UIDL_DIR                "uidl"
68 #define NEWSGROUP_LIST          ".newsgroup_list"
69 #define ADDRESS_BOOK            "addressbook.xml"
70 #define MANUAL_HTML_INDEX       "sylpheed-claws-manual.html"
71 #define HOMEPAGE_URI            "http://claws.sylpheed.org/"
72 #define MANUAL_URI              "http://claws.sylpheed.org/manual/"
73 #define FAQ_URI                 "http://claws.sylpheed.org/faq.php"
74 #define PLUGINS_URI             "http://claws.sylpheed.org/plugins.php"
75 #define BUGZILLA_URI            "http://www.thewildbeast.co.uk/sylpheed-claws/bugzilla/enter_bug.cgi"
76 #define THEMES_URI              "http://claws.sylpheed.org/themes.php"
77 #define MAILING_LIST_URI        "http://claws.sylpheed.org/MLs.php"
78 #define GPL_URI                 "http://www.gnu.org/licenses/gpl.html"
79 #define DONATE_URI              "https://sourceforge.net/donate/index.php?group_id=25528"
80 #define THEMEINFO_FILE          ".sylpheed_themeinfo"
81 #define FOLDER_LIST             "folderlist.xml"
82 #define CACHE_FILE              ".sylpheed_claws_cache"
83 #define MARK_FILE               ".sylpheed_mark"
84 #define CACHE_VERSION           24
85 #define MARK_VERSION            2
86
87 #ifdef G_OS_WIN32
88 #  define ACTIONS_RC            "actionswinrc"
89 #  define COMMAND_HISTORY       "command_history_win"
90 #  define DEFAULT_SIGNATURE     "signature.txt"
91 #else
92 #  define ACTIONS_RC            "actionsrc"
93 #  define COMMAND_HISTORY       "command_history"
94 #  define DEFAULT_SIGNATURE     ".signature"
95 #endif
96
97 #define DEFAULT_INC_PATH        "/usr/bin/mh/inc"
98 #define DEFAULT_INC_PROGRAM     "inc"
99 /* #define DEFAULT_INC_PATH     "/usr/bin/imget" */
100 /* #define DEFAULT_INC_PROGRAM  "imget" */
101 #define DEFAULT_SENDMAIL_CMD    "/usr/sbin/sendmail -t -i"
102 #define DEFAULT_BROWSER_CMD     "mozilla-firefox -remote 'openURL(%s,new-window)'"
103 #define DEFAULT_EDITOR_CMD      "gedit %s"
104 #define DEFAULT_MIME_CMD        "metamail -d -b -x -c %s '%s'"
105 #define DEFAULT_IMAGE_VIEWER_CMD "display '%s'"
106 #define DEFAULT_AUDIO_PLAYER_CMD "play '%s'"
107
108 #ifdef _PATH_MAILDIR
109 #  define DEFAULT_SPOOL_PATH    _PATH_MAILDIR
110 #else
111 #  define DEFAULT_SPOOL_PATH    "/var/spool/mail"
112 #endif
113
114 #define BUFFSIZE                        8192
115
116 #ifndef MAXPATHLEN
117 #  define MAXPATHLEN                    4095
118 #endif
119
120 #define DEFAULT_HEIGHT                  460
121 #define DEFAULT_FOLDERVIEW_WIDTH        179
122 #define DEFAULT_MAINVIEW_WIDTH          600
123 #define DEFAULT_SUMMARY_HEIGHT          140
124 #define DEFAULT_HEADERVIEW_HEIGHT       40
125 #define DEFAULT_COMPOSE_HEIGHT          560
126 #define BORDER_WIDTH                    2
127 #define CTREE_INDENT                    18
128 #define FOLDER_SPACING                  4
129 #define MAX_ENTRY_LENGTH                8191
130 #define COLOR_DIM                       35000
131 #define UI_REFRESH_INTERVAL             50000   /* usec */
132 #define FOLDER_UPDATE_INTERVAL          1500    /* msec */
133 #define PROGRESS_UPDATE_INTERVAL        200     /* msec */
134 #define SESSION_TIMEOUT_INTERVAL        60      /* sec */
135 #define MAX_HISTORY_SIZE                16
136
137 #define NORMAL_FONT prefs_common.normalfont
138 #define SMALL_FONT      prefs_common.smallfont
139
140 #define DEFAULT_PIXMAP_THEME    "INTERNAL_DEFAULT"
141 #define PIXMAP_THEME_DIR                "themes"
142
143 #endif /* __DEFS_H__ */