Fix protocol part of some more URLs
[claws.git] / src / common / defs.h
1 /*
2  * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999-2016 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 #ifndef __DEFS_H__
20 #define __DEFS_H__
21
22 #ifdef HAVE_CONFIG_H
23 #include "claws-features.h"
24 #endif
25
26 #include <glib.h>
27
28 #if HAVE_PATHS_H
29 #  include <paths.h>
30 #endif
31
32 #if HAVE_SYS_PARAM_H
33 #  include <sys/param.h>
34 #endif
35
36 #define INBOX_DIR               "inbox"
37 #define OUTBOX_DIR              "sent"
38 #define QUEUE_DIR               "queue"
39 #define DRAFT_DIR               "draft"
40 #define TRASH_DIR               "trash"
41 #define TAGS_DIR                "tagsdb"
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 HEADER_CACHE_DIR        "headercache" 
50 #define MIME_TMP_DIR            "mimetmp"
51 #define COMMON_RC               "clawsrc"
52 #define OLD_COMMON_RC           "sylpheedrc"
53 #define ACCOUNT_RC              "accountrc"
54 #define CUSTOM_HEADER_RC        "customheaderrc"
55 #define DISPLAY_HEADER_RC       "dispheaderrc"
56 #define FOLDERITEM_RC           "folderitemrc"
57 #define SCORING_RC              "scoringrc"
58 #define FILTERING_RC            "filteringrc"
59 #define MATCHER_RC              "matcherrc"
60 #define MENU_RC                 "menurc"
61 #define RENDERER_RC             "rendererrc"
62 #define TAGS_RC                 "tagsrc"
63 #define PASSWORD_STORE_RC                       "passwordstorerc"
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"
74 #define TMP_DIR                 "tmp"
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            "https://www.claws-mail.org/"
81 #define MANUAL_URI              "https://www.claws-mail.org/documentation.php"
82 #define FAQ_URI                 "https://www.claws-mail.org/faq/index.php"
83 #define PLUGINS_URI             "https://www.claws-mail.org/plugins.php"
84 #define DICTS_URI               "https://www.claws-mail.org/win32/dictionaries.php"
85 #define BUGZILLA_URI            "https://www.thewildbeast.co.uk/claws-mail/bugzilla/enter_bug.cgi"
86 #define THEMES_URI              "https://www.claws-mail.org/themes.php"
87 #define TOOLS_URI               "https://www.claws-mail.org/tools.php"
88 #define MAILING_LIST_URI        "https://www.claws-mail.org/MLs.php"
89 #define USERS_ML_ADDR           "users@lists.claws-mail.org"
90 #define USERS_ML_URI            "https://lists.claws-mail.org/cgi-bin/mailman/listinfo/users"
91 #define GPL_URI                 "https://www.gnu.org/licenses/gpl.html"
92 #define DONATE_URI              "https://www.claws-mail.org/sponsors.php"
93 #define CONFIG_VERSIONS_URI     "https://www.claws-mail.org/cvc.php"
94 #define RELEASE_NOTES_FILE      "RELEASE_NOTES"
95 #define THEMEINFO_FILE          ".claws_themeinfo"
96 #define FOLDER_LIST             "folderlist.xml"
97 #define OLD_CACHE_FILE          ".sylpheed_claws_cache"
98 #define CACHE_FILE              ".claws_cache"
99 #define OLD_MARK_FILE           ".sylpheed_mark"
100 #define MARK_FILE               ".claws_mark"
101 #define TAGS_FILE               ".claws_tags"
102 #define PRINTING_PAGE_SETUP_STORAGE_FILE "print_page_setup"
103 #define CACHE_VERSION           24
104 #define MARK_VERSION            2
105 #define TAGS_VERSION            1
106
107 #ifdef G_OS_WIN32
108 #  define ACTIONS_RC            "actionswinrc"
109 #  define COMMAND_HISTORY       "command_history_win"
110 #  define DEFAULT_SIGNATURE     "signature.txt"
111 #  define DEFAULT_W32_GTK_THEME "MS-Windows"
112 #else
113 #  define ACTIONS_RC            "actionsrc"
114 #  define COMMAND_HISTORY       "command_history"
115 #  define DEFAULT_SIGNATURE     ".signature"
116 #endif
117
118 #define DEFAULT_INC_PATH        "/usr/bin/mh/inc"
119 #define DEFAULT_INC_PROGRAM     "inc"
120 /* #define DEFAULT_INC_PATH     "/usr/bin/imget" */
121 /* #define DEFAULT_INC_PROGRAM  "imget" */
122 #define DEFAULT_SENDMAIL_CMD    "/usr/sbin/sendmail -t -i"
123 #define DEFAULT_BROWSER_CMD     "firefox '%s'"
124 #define DEFAULT_EDITOR_CMD      "gedit '%s'"
125 #define DEFAULT_MIME_CMD        "metamail -d -b -x -c %s '%s'"
126 #define DEFAULT_IMAGE_VIEWER_CMD "display '%s'"
127 #define DEFAULT_AUDIO_PLAYER_CMD "play '%s'"
128
129 #ifdef _PATH_MAILDIR
130 #  define DEFAULT_SPOOL_PATH    _PATH_MAILDIR
131 #else
132 #  define DEFAULT_SPOOL_PATH    "/var/spool/mail"
133 #endif
134
135 #define BUFFSIZE                        8192
136
137 #define RFC822_DATE_BUFFSIZE    128
138
139 #ifndef MAXPATHLEN
140 #  define MAXPATHLEN                    4095
141 #endif
142
143 #define DEFAULT_HEIGHT                  460
144 #define DEFAULT_FOLDERVIEW_WIDTH        179
145 #define DEFAULT_MAINVIEW_WIDTH          600
146 #define DEFAULT_SUMMARY_HEIGHT          140
147 #define DEFAULT_HEADERVIEW_HEIGHT       40
148 #define DEFAULT_COMPOSE_HEIGHT          560
149 #define BORDER_WIDTH                    2
150 #define CTREE_INDENT                    18
151 #define FOLDER_SPACING                  4
152 #define MAX_ENTRY_LENGTH                8191
153 #define COLOR_DIM                       35000
154 #define UI_REFRESH_INTERVAL             50000   /* usec */
155 #define FOLDER_UPDATE_INTERVAL          1500    /* msec */
156 #define PROGRESS_UPDATE_INTERVAL        200     /* msec */
157 #define SESSION_TIMEOUT_INTERVAL        60      /* sec */
158 #define MAX_HISTORY_SIZE                32
159 #define HSPACING_NARROW                 4
160 #define VSPACING                        10
161 #define VSPACING_NARROW                 4
162 #define VSPACING_NARROW_2               2
163 #define VBOX_BORDER                     8
164 #define DEFAULT_ENTRY_WIDTH             80
165 /* labels bigger than this causes crash with the X Window System error:
166    'BadAlloc (insufficient resources for operation)' */
167 #define MAX_MENU_LABEL_LENGTH           5453
168
169 #define BOLD_FONT prefs_common.boldfont
170 #define NORMAL_FONT prefs_common.normalfont
171 #define SMALL_FONT      prefs_common.smallfont
172
173 #define DEFAULT_PIXMAP_THEME    "INTERNAL_DEFAULT"
174 #define PIXMAP_THEME_DIR                "themes"
175 #ifdef HAVE_SVG
176 #define MIN_PPI 96
177 #define MAX_PPI 300
178 #endif
179
180 #define AVATAR_NONE     0
181 #define AVATAR_XFACE    1
182 #define AVATAR_FACE     2
183
184 #endif /* __DEFS_H__ */