adefdefe5e0b2ead2835ad698946ba2f57319995
[claws.git] / src / common / defs.h
1 /*
2  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999-2004 Hiroyuki Yamamoto
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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 #if HAVE_PATHS_H
28 #  include <paths.h>
29 #endif
30
31 #if HAVE_SYS_PARAM_H
32 #  include <sys/param.h>
33 #endif
34
35 #define INBOX_DIR               "inbox"
36 #define OUTBOX_DIR              "sent"
37 #define QUEUE_DIR               "queue"
38 #define DRAFT_DIR               "draft"
39 #define TRASH_DIR               "trash"
40 #ifndef CLAWS /* easier to sync */
41 #define RC_DIR                  ".sylpheed"
42 #else
43 #define RC_DIR                  CFG_RC_DIR      
44 #endif /* CLAWS */
45 #define NEWS_CACHE_DIR          "newscache"
46 #define IMAP_CACHE_DIR          "imapcache"
47 #define MBOX_CACHE_DIR          "mboxcache"
48 #define HEADER_CACHE_DIR        "headercache" 
49 #define MIME_TMP_DIR            "mimetmp"
50 #define COMMON_RC               "sylpheedrc"
51 #define ACCOUNT_RC              "accountrc"
52 #define CUSTOM_HEADER_RC        "customheaderrc"
53 #define DISPLAY_HEADER_RC       "dispheaderrc"
54 #define FOLDERITEM_RC           "folderitemrc"
55 #define SCORING_RC              "scoringrc"
56 #define FILTERING_RC            "filteringrc"
57 #define MATCHER_RC              "matcherrc"
58 #define MENU_RC                 "menurc"
59 #define ACTIONS_RC              "actionsrc"
60 #define RENDERER_RC             "rendererrc"
61 #define COMMAND_HISTORY         "command_history"
62 #define QUICKSEARCH_HISTORY     "quicksearch_history"
63 #define TEMPLATE_DIR            "templates"
64 #define TMP_DIR                 "tmp"
65 #define NEWSGROUP_LIST          ".newsgroup_list"
66 #define ADDRESS_BOOK            "addressbook.xml"
67 #define MANUAL_HTML_INDEX       "sylpheed.html"
68 #define FAQ_HTML_INDEX          "sylpheed-faq.html"
69 #define HOMEPAGE_URI            "http://claws.sylpheed.org/"
70 #define SYLDOC_URI              "http://sylpheeddoc.sourceforge.net/"
71 #define SYLDOC_MANUAL_HTML_INDEX "/manual/manual.html"
72 #define SYLDOC_FAQ_HTML_INDEX   "/faq/faq.html"
73 #define CLAWS_FAQ_URI           "http://sylpheed-claws.sourceforge.net/phpwiki/index.php"
74 #define CLAWS_BUGZILLA_URI      "http://www.thewildbeast.co.uk/sylpheed-claws/bugzilla/enter_bug.cgi"
75 #define CLAWS_THEMES_URI        "http://sylpheed-claws.sourceforge.net/themes.php"
76 #define THEMEINFO_FILE          ".sylpheed_themeinfo"
77 #define FOLDER_LIST             "folderlist.xml"
78 #define CACHE_FILE              ".sylpheed_cache"
79 #define MARK_FILE               ".sylpheed_mark"
80 #define CACHE_VERSION           20
81 #define MARK_VERSION            2
82
83 #define DEFAULT_SIGNATURE       ".signature"
84 #define DEFAULT_INC_PATH        "/usr/bin/mh/inc"
85 #define DEFAULT_INC_PROGRAM     "inc"
86 /* #define DEFAULT_INC_PATH     "/usr/bin/imget" */
87 /* #define DEFAULT_INC_PROGRAM  "imget" */
88 #define DEFAULT_SENDMAIL_CMD    "/usr/sbin/sendmail -t -i"
89 #define DEFAULT_BROWSER_CMD     "mozilla -remote 'openURL(%s, new-window)'"
90
91 #ifdef _PATH_MAILDIR
92 #  define DEFAULT_SPOOL_PATH    _PATH_MAILDIR
93 #else
94 #  define DEFAULT_SPOOL_PATH    "/var/spool/mail"
95 #endif
96
97 #define BUFFSIZE                        8192
98
99 #ifndef MAXPATHLEN
100 #  define MAXPATHLEN                    4095
101 #endif
102
103 #define DEFAULT_HEIGHT                  460
104 #define DEFAULT_FOLDERVIEW_WIDTH        179
105 #define DEFAULT_MAINVIEW_WIDTH          600
106 #define DEFAULT_SUMMARY_HEIGHT          140
107 #define DEFAULT_HEADERVIEW_HEIGHT       40
108 #define DEFAULT_COMPOSE_HEIGHT          560
109 #define BORDER_WIDTH                    2
110 #define CTREE_INDENT                    18
111 #define FOLDER_SPACING                  4
112 #define MAX_ENTRY_LENGTH                8191
113 #define COLOR_DIM                       35000
114 #define UI_REFRESH_INTERVAL             50000   /* usec */
115 #define FOLDER_UPDATE_INTERVAL          1500    /* msec */
116 #define PROGRESS_UPDATE_INTERVAL        200     /* msec */
117 #define SESSION_TIMEOUT                 60      /* sec */
118 #define MAX_HISTORY_SIZE                16
119
120 #define NORMAL_FONT prefs_common.normalfont
121 #define BOLD_FONT   prefs_common.boldfont
122 #define SMALL_FONT      prefs_common.smallfont
123
124 #define DEFAULT_PIXMAP_THEME    "INTERNAL_DEFAULT"
125 #define PIXMAP_THEME_DIR                "themes"
126
127 #endif /* __DEFS_H__ */