2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team
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 3 of the License, or
8 * (at your option) any later version.
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.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 #include "claws-features.h"
34 # include <sys/param.h>
37 #define INBOX_DIR "inbox"
38 #define OUTBOX_DIR "sent"
39 #define QUEUE_DIR "queue"
40 #define DRAFT_DIR "draft"
41 #define TRASH_DIR "trash"
42 #define RC_DIR CFG_RC_DIR
43 #define OLD_GTK2_RC_DIR ".sylpheed-claws"
44 #define OLDER_GTK2_RC_DIR ".sylpheed-gtk2"
45 #define OLD_GTK1_RC_DIR ".sylpheed"
46 #define SYLPHEED_RC_DIR ".sylpheed-2.0"
47 #define NEWS_CACHE_DIR "newscache"
48 #define IMAP_CACHE_DIR "imapcache"
49 #define MBOX_CACHE_DIR "mboxcache"
50 #define HEADER_CACHE_DIR "headercache"
51 #define MIME_TMP_DIR "mimetmp"
52 #define COMMON_RC "clawsrc"
53 #define OLD_COMMON_RC "sylpheedrc"
54 #define ACCOUNT_RC "accountrc"
55 #define CUSTOM_HEADER_RC "customheaderrc"
56 #define DISPLAY_HEADER_RC "dispheaderrc"
57 #define FOLDERITEM_RC "folderitemrc"
58 #define SCORING_RC "scoringrc"
59 #define FILTERING_RC "filteringrc"
60 #define MATCHER_RC "matcherrc"
61 #define MENU_RC "menurc"
62 #define RENDERER_RC "rendererrc"
63 #define TAGS_RC "tagsrc"
64 #define QUICKSEARCH_HISTORY "quicksearch_history"
65 #define SUMMARY_SEARCH_FROM_HISTORY "summarysearch_from_history"
66 #define SUMMARY_SEARCH_TO_HISTORY "summarysearch_to_history"
67 #define SUMMARY_SEARCH_SUBJECT_HISTORY "summarysearch_subject_history"
68 #define SUMMARY_SEARCH_BODY_HISTORY "summary_searchbody_history"
69 #define SUMMARY_SEARCH_ADV_CONDITION_HISTORY "summarysearch_adv_history"
70 #define MESSAGE_SEARCH_HISTORY "messagesearch_history"
71 #define COMPOSE_SAVE_TO_HISTORY "compose_save_to_history"
72 #define ADDRESSBOOK_CUSTOM_ATTRIBUTES "attributesrc"
73 #define TEMPLATE_DIR "templates"
75 #define UIDL_DIR "uidl"
76 #define NEWSGROUP_LIST ".newsgroup_list"
77 #define ADDRESS_BOOK "addressbook.xml"
78 #define ADDRBOOK_DIR "addrbook"
79 #define MANUAL_HTML_INDEX "claws-mail-manual.html"
80 #define HOMEPAGE_URI "http://www.claws-mail.org/"
81 #define MANUAL_URI "http://www.claws-mail.org/documentation.php"
82 #define FAQ_URI "http://www.claws-mail.org/faq/index.php"
83 #define PLUGINS_URI "http://www.claws-mail.org/plugins.php"
84 #define DICTS_URI "http://www.claws-mail.org/win32/dictionaries.php"
85 #define BUGZILLA_URI "http://www.thewildbeast.co.uk/claws-mail/bugzilla/enter_bug.cgi"
86 #define THEMES_URI "http://www.claws-mail.org/themes.php"
87 #define TOOLS_URI "http://www.claws-mail.org/tools.php"
88 #define MAILING_LIST_URI "http://www.claws-mail.org/MLs.php"
89 #define USERS_ML_ADDR "users@lists.claws-mail.org"
90 #define GPL_URI "http://www.gnu.org/licenses/gpl.html"
91 #define DONATE_URI "http://www.claws-mail.org/sponsors.php"
92 #define RELEASE_NOTES_FILE "RELEASE_NOTES"
93 #define THEMEINFO_FILE ".claws_themeinfo"
94 #define FOLDER_LIST "folderlist.xml"
95 #define OLD_CACHE_FILE ".sylpheed_claws_cache"
96 #define CACHE_FILE ".claws_cache"
97 #define OLD_MARK_FILE ".sylpheed_mark"
98 #define MARK_FILE ".claws_mark"
99 #define TAGS_FILE ".claws_tags"
100 #define PRINTING_PAGE_SETUP_STORAGE_FILE "print_page_setup"
101 #define CACHE_VERSION 24
102 #define MARK_VERSION 2
103 #define TAGS_VERSION 1
106 #define MMC1_PATH "/media/mmc1"
107 #define MMC2_PATH "/media/mmc2"
111 # define ACTIONS_RC "actionswinrc"
112 # define COMMAND_HISTORY "command_history_win"
113 # define DEFAULT_SIGNATURE "signature.txt"
115 # define ACTIONS_RC "actionsrc"
116 # define COMMAND_HISTORY "command_history"
118 # define DEFAULT_SIGNATURE ".signature"
120 # define DEFAULT_SIGNATURE "MyDocs/signature.txt"
124 #define DEFAULT_INC_PATH "/usr/bin/mh/inc"
125 #define DEFAULT_INC_PROGRAM "inc"
126 /* #define DEFAULT_INC_PATH "/usr/bin/imget" */
127 /* #define DEFAULT_INC_PROGRAM "imget" */
128 #define DEFAULT_SENDMAIL_CMD "/usr/sbin/sendmail -t -i"
129 #define DEFAULT_BROWSER_CMD "firefox '%s'"
131 #define DEFAULT_EDITOR_CMD "gedit '%s'"
133 #define DEFAULT_EDITOR_CMD "leafpad '%s'"
135 #define DEFAULT_MIME_CMD "metamail -d -b -x -c %s '%s'"
136 #define DEFAULT_IMAGE_VIEWER_CMD "display '%s'"
137 #define DEFAULT_AUDIO_PLAYER_CMD "play '%s'"
140 # define DEFAULT_SPOOL_PATH _PATH_MAILDIR
142 # define DEFAULT_SPOOL_PATH "/var/spool/mail"
145 #define BUFFSIZE 8192
148 # define MAXPATHLEN 4095
151 #define DEFAULT_HEIGHT 460
152 #define DEFAULT_FOLDERVIEW_WIDTH 179
153 #define DEFAULT_MAINVIEW_WIDTH 600
154 #define DEFAULT_SUMMARY_HEIGHT 140
155 #define DEFAULT_HEADERVIEW_HEIGHT 40
156 #define DEFAULT_COMPOSE_HEIGHT 560
157 #define BORDER_WIDTH 2
158 #define CTREE_INDENT 18
159 #define FOLDER_SPACING 4
160 #define MAX_ENTRY_LENGTH 8191
161 #define COLOR_DIM 35000
162 #define UI_REFRESH_INTERVAL 50000 /* usec */
163 #define FOLDER_UPDATE_INTERVAL 1500 /* msec */
164 #define PROGRESS_UPDATE_INTERVAL 200 /* msec */
165 #define SESSION_TIMEOUT_INTERVAL 60 /* sec */
166 #define MAX_HISTORY_SIZE 32
167 #define HSPACING_NARROW 4
169 #define VSPACING_NARROW 4
170 #define VSPACING_NARROW_2 2
171 #define VBOX_BORDER 8
172 #define DEFAULT_ENTRY_WIDTH 80
173 /* labels bigger than this causes crash with the X Window System error:
174 'BadAlloc (insufficient resources for operation)' */
175 #define MAX_MENU_LABEL_LENGTH 5453
177 #define BOLD_FONT prefs_common.boldfont
178 #define NORMAL_FONT prefs_common.normalfont
179 #define SMALL_FONT prefs_common.smallfont
181 #define DEFAULT_PIXMAP_THEME "INTERNAL_DEFAULT"
182 #define PIXMAP_THEME_DIR "themes"
184 #endif /* __DEFS_H__ */