764930e4255e1533fcd6cdf87ce310fbb46c7b47
[claws.git] / src / common / defs.h
1 /*
2  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999-2011 Hiroyuki Yamamoto and the Claws Mail 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 3 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, see <http://www.gnu.org/licenses/>.
17  * 
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-claws"
48 #define OLDER_GTK2_RC_DIR       ".sylpheed-gtk2"
49 #define OLD_GTK1_RC_DIR         ".sylpheed"
50 #define SYLPHEED_RC_DIR         ".sylpheed-2.0"
51 #define NEWS_CACHE_DIR          "newscache"
52 #define IMAP_CACHE_DIR          "imapcache"
53 #define MBOX_CACHE_DIR          "mboxcache"
54 #define HEADER_CACHE_DIR        "headercache" 
55 #define MIME_TMP_DIR            "mimetmp"
56 #define COMMON_RC               "clawsrc"
57 #define OLD_COMMON_RC           "sylpheedrc"
58 #define ACCOUNT_RC              "accountrc"
59 #define CUSTOM_HEADER_RC        "customheaderrc"
60 #define DISPLAY_HEADER_RC       "dispheaderrc"
61 #define FOLDERITEM_RC           "folderitemrc"
62 #define SCORING_RC              "scoringrc"
63 #define FILTERING_RC            "filteringrc"
64 #define MATCHER_RC              "matcherrc"
65 #define MENU_RC                 "menurc"
66 #define RENDERER_RC             "rendererrc"
67 #define TAGS_RC                 "tagsrc"
68 #define QUICKSEARCH_HISTORY     "quicksearch_history"
69 #define SUMMARY_SEARCH_FROM_HISTORY     "summarysearch_from_history"
70 #define SUMMARY_SEARCH_TO_HISTORY       "summarysearch_to_history"
71 #define SUMMARY_SEARCH_SUBJECT_HISTORY  "summarysearch_subject_history"
72 #define SUMMARY_SEARCH_BODY_HISTORY     "summary_searchbody_history"
73 #define SUMMARY_SEARCH_ADV_CONDITION_HISTORY    "summarysearch_adv_history"
74 #define MESSAGE_SEARCH_HISTORY  "messagesearch_history"
75 #define COMPOSE_SAVE_TO_HISTORY "compose_save_to_history"
76 #define ADDRESSBOOK_CUSTOM_ATTRIBUTES "attributesrc"
77 #define TEMPLATE_DIR            "templates"
78 #define TMP_DIR                 "tmp"
79 #define UIDL_DIR                "uidl"
80 #define NEWSGROUP_LIST          ".newsgroup_list"
81 #define ADDRESS_BOOK            "addressbook.xml"
82 #define ADDRBOOK_DIR            "addrbook"
83 #define MANUAL_HTML_INDEX       "claws-mail-manual.html"
84 #define HOMEPAGE_URI            "http://www.claws-mail.org/"
85 #define MANUAL_URI              "http://www.claws-mail.org/documentation.php"
86 #define FAQ_URI                 "http://www.claws-mail.org/faq/index.php"
87 #define PLUGINS_URI             "http://www.claws-mail.org/plugins.php"
88 #define DICTS_URI               "http://www.claws-mail.org/win32/dictionaries.php"
89 #define BUGZILLA_URI            "http://www.thewildbeast.co.uk/claws-mail/bugzilla/enter_bug.cgi"
90 #define THEMES_URI              "http://www.claws-mail.org/themes.php"
91 #define TOOLS_URI               "http://www.claws-mail.org/tools.php"
92 #define MAILING_LIST_URI        "http://www.claws-mail.org/MLs.php"
93 #define USERS_ML_ADDR           "claws-mail-users@dotsrc.org"
94 #define GPL_URI                 "http://www.gnu.org/licenses/gpl.html"
95 #define DONATE_URI              "http://www.claws-mail.org/sponsors.php"
96 #define RELEASE_NOTES_FILE      "RELEASE_NOTES"
97 #define THEMEINFO_FILE          ".claws_themeinfo"
98 #define FOLDER_LIST             "folderlist.xml"
99 #define OLD_CACHE_FILE          ".sylpheed_claws_cache"
100 #define CACHE_FILE              ".claws_cache"
101 #define OLD_MARK_FILE           ".sylpheed_mark"
102 #define MARK_FILE               ".claws_mark"
103 #define TAGS_FILE               ".claws_tags"
104 #define PRINTING_PAGE_SETUP_STORAGE_FILE "print_page_setup"
105 #define CACHE_VERSION           24
106 #define MARK_VERSION            2
107 #define TAGS_VERSION            1
108
109 #ifdef MAEMO
110 #define MMC1_PATH "/media/mmc1"
111 #define MMC2_PATH "/media/mmc2"
112 #endif
113
114 #ifdef G_OS_WIN32
115 #  define ACTIONS_RC            "actionswinrc"
116 #  define COMMAND_HISTORY       "command_history_win"
117 #  define DEFAULT_SIGNATURE     "signature.txt"
118 #else
119 #  define ACTIONS_RC            "actionsrc"
120 #  define COMMAND_HISTORY       "command_history"
121 # ifndef MAEMO
122 #  define DEFAULT_SIGNATURE     ".signature"
123 # else
124 #  define DEFAULT_SIGNATURE     "MyDocs/signature.txt"
125 # endif
126 #endif
127
128 #define DEFAULT_INC_PATH        "/usr/bin/mh/inc"
129 #define DEFAULT_INC_PROGRAM     "inc"
130 /* #define DEFAULT_INC_PATH     "/usr/bin/imget" */
131 /* #define DEFAULT_INC_PROGRAM  "imget" */
132 #define DEFAULT_SENDMAIL_CMD    "/usr/sbin/sendmail -t -i"
133 #define DEFAULT_BROWSER_CMD     "firefox '%s'"
134 #ifndef MAEMO
135 #define DEFAULT_EDITOR_CMD      "gedit '%s'"
136 #else
137 #define DEFAULT_EDITOR_CMD      "leafpad '%s'"
138 #endif
139 #define DEFAULT_MIME_CMD        "metamail -d -b -x -c %s '%s'"
140 #define DEFAULT_IMAGE_VIEWER_CMD "display '%s'"
141 #define DEFAULT_AUDIO_PLAYER_CMD "play '%s'"
142
143 #ifdef _PATH_MAILDIR
144 #  define DEFAULT_SPOOL_PATH    _PATH_MAILDIR
145 #else
146 #  define DEFAULT_SPOOL_PATH    "/var/spool/mail"
147 #endif
148
149 #define BUFFSIZE                        8192
150
151 #ifndef MAXPATHLEN
152 #  define MAXPATHLEN                    4095
153 #endif
154
155 #define DEFAULT_HEIGHT                  460
156 #define DEFAULT_FOLDERVIEW_WIDTH        179
157 #define DEFAULT_MAINVIEW_WIDTH          600
158 #define DEFAULT_SUMMARY_HEIGHT          140
159 #define DEFAULT_HEADERVIEW_HEIGHT       40
160 #define DEFAULT_COMPOSE_HEIGHT          560
161 #define BORDER_WIDTH                    2
162 #define CTREE_INDENT                    18
163 #define FOLDER_SPACING                  4
164 #define MAX_ENTRY_LENGTH                8191
165 #define COLOR_DIM                       35000
166 #define UI_REFRESH_INTERVAL             50000   /* usec */
167 #define FOLDER_UPDATE_INTERVAL          1500    /* msec */
168 #define PROGRESS_UPDATE_INTERVAL        200     /* msec */
169 #define SESSION_TIMEOUT_INTERVAL        60      /* sec */
170 #define MAX_HISTORY_SIZE                32
171
172 #define BOLD_FONT prefs_common.boldfont
173 #define NORMAL_FONT prefs_common.normalfont
174 #define SMALL_FONT      prefs_common.smallfont
175
176 #define DEFAULT_PIXMAP_THEME    "INTERNAL_DEFAULT"
177 #define PIXMAP_THEME_DIR                "themes"
178
179 #endif /* __DEFS_H__ */