Statistics
| Revision:

root / libsylph / defs.h @ 3040

History | View | Annotate | Download (3.9 kB)

1 528 hiro
/*
2 578 hiro
 * LibSylph -- E-Mail client library
3 3033 hiro
 * Copyright (C) 1999-2012 Hiroyuki Yamamoto
4 528 hiro
 *
5 578 hiro
 * This library is free software; you can redistribute it and/or
6 578 hiro
 * modify it under the terms of the GNU Lesser General Public
7 578 hiro
 * License as published by the Free Software Foundation; either
8 578 hiro
 * version 2.1 of the License, or (at your option) any later version.
9 528 hiro
 *
10 578 hiro
 * This library is distributed in the hope that it will be useful,
11 528 hiro
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 578 hiro
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 578 hiro
 * Lesser General Public License for more details.
14 528 hiro
 *
15 578 hiro
 * You should have received a copy of the GNU Lesser General Public
16 578 hiro
 * License along with this library; if not, write to the Free Software
17 578 hiro
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18 528 hiro
 */
19 528 hiro
20 528 hiro
#ifndef __DEFS_H__
21 528 hiro
#define __DEFS_H__
22 528 hiro
23 528 hiro
#ifdef HAVE_CONFIG_H
24 528 hiro
#  include "config.h"
25 528 hiro
#endif
26 528 hiro
27 3033 hiro
#include <glib.h>
28 528 hiro
29 528 hiro
#if HAVE_PATHS_H
30 528 hiro
#  include <paths.h>
31 528 hiro
#endif
32 528 hiro
33 528 hiro
#if HAVE_SYS_PARAM_H
34 528 hiro
#  include <sys/param.h>
35 528 hiro
#endif
36 528 hiro
37 528 hiro
#define INBOX_DIR                "inbox"
38 528 hiro
#define OUTBOX_DIR                "sent"
39 528 hiro
#define QUEUE_DIR                "queue"
40 528 hiro
#define DRAFT_DIR                "draft"
41 528 hiro
#define TRASH_DIR                "trash"
42 2638 hiro
#define JUNK_DIR                "junk"
43 2848 hiro
#if defined(G_OS_WIN32) || defined(__APPLE__)
44 528 hiro
#  define RC_DIR                "Sylpheed"
45 528 hiro
#else
46 528 hiro
#  define RC_DIR                ".sylpheed-2.0"
47 528 hiro
#endif
48 528 hiro
#define OLD_RC_DIR                ".sylpheed"
49 528 hiro
#define NEWS_CACHE_DIR                "newscache"
50 528 hiro
#define IMAP_CACHE_DIR                "imapcache"
51 528 hiro
#define MIME_TMP_DIR                "mimetmp"
52 528 hiro
#define COMMON_RC                "sylpheedrc"
53 528 hiro
#define ACCOUNT_RC                "accountrc"
54 528 hiro
#define FILTER_RC                "filterrc"
55 528 hiro
#define FILTER_LIST                "filter.xml"
56 528 hiro
#define FILTER_HEADER_RC        "filterheaderrc"
57 528 hiro
#define CUSTOM_HEADER_RC        "customheaderrc"
58 528 hiro
#define DISPLAY_HEADER_RC        "dispheaderrc"
59 528 hiro
#define MENU_RC                        "menurc"
60 528 hiro
#define ACTIONS_RC                "actionsrc"
61 528 hiro
#define COMMAND_HISTORY                "command_history"
62 528 hiro
#define TEMPLATE_DIR                "templates"
63 528 hiro
#define TMP_DIR                        "tmp"
64 528 hiro
#define UIDL_DIR                "uidl"
65 2534 hiro
#define PLUGIN_DIR                "plugins"
66 528 hiro
#define NEWSGROUP_LIST                ".newsgroup_list"
67 528 hiro
#define ADDRESS_BOOK                "addressbook.xml"
68 528 hiro
#define MANUAL_HTML_INDEX        "sylpheed.html"
69 528 hiro
#define FAQ_HTML_INDEX                "sylpheed-faq.html"
70 1179 hiro
#define HOMEPAGE_URI                "http://sylpheed.sraoss.jp/"
71 2707 hiro
#define DOWNLOAD_URI                "http://sylpheed.sraoss.jp/download.php"
72 2164 hiro
#define VERSION_URI                "http://sylpheed.sraoss.jp/version.txt"
73 2707 hiro
#define PLUGIN_HOMEPAGE_URI        "http://sylpheed.sraoss.jp/en/plugin.html"
74 2707 hiro
#define PLUGIN_VERSION_URI        "http://sylpheed.sraoss.jp/plugin_version.txt"
75 528 hiro
#define FOLDER_LIST                "folderlist.xml"
76 528 hiro
#define CACHE_FILE                ".sylpheed_cache"
77 528 hiro
#define MARK_FILE                ".sylpheed_mark"
78 880 hiro
#define SEARCH_CACHE                "search_cache"
79 528 hiro
#define CACHE_VERSION                0x21
80 528 hiro
#define MARK_VERSION                2
81 880 hiro
#define SEARCH_CACHE_VERSION        1
82 528 hiro
83 528 hiro
#ifdef G_OS_WIN32
84 694 hiro
#  define REMOTE_CMD_PORT        50215
85 692 hiro
#endif
86 692 hiro
87 692 hiro
#ifdef G_OS_WIN32
88 528 hiro
#  define DEFAULT_SIGNATURE        "signature.txt"
89 528 hiro
#else
90 528 hiro
#  define DEFAULT_SIGNATURE        ".signature"
91 528 hiro
#endif
92 528 hiro
#define DEFAULT_INC_PATH        "/usr/bin/mh/inc"
93 528 hiro
#define DEFAULT_INC_PROGRAM        "inc"
94 528 hiro
/* #define DEFAULT_INC_PATH        "/usr/bin/imget" */
95 528 hiro
/* #define DEFAULT_INC_PROGRAM        "imget" */
96 528 hiro
#define DEFAULT_SENDMAIL_CMD        "/usr/sbin/sendmail -t -i"
97 2847 hiro
#ifdef __APPLE__
98 2847 hiro
#  define DEFAULT_BROWSER_CMD        "open '%s'"
99 2847 hiro
#else
100 2847 hiro
#  define DEFAULT_BROWSER_CMD        "xdg-open '%s'"
101 2847 hiro
#endif
102 528 hiro
103 528 hiro
#ifdef _PATH_MAILDIR
104 528 hiro
#  define DEFAULT_SPOOL_PATH        _PATH_MAILDIR
105 528 hiro
#else
106 528 hiro
#  define DEFAULT_SPOOL_PATH        "/var/spool/mail"
107 528 hiro
#endif
108 528 hiro
109 528 hiro
#define BUFFSIZE                        8192
110 528 hiro
111 528 hiro
#ifndef MAXPATHLEN
112 528 hiro
#  define MAXPATHLEN                        4095
113 528 hiro
#endif
114 528 hiro
115 528 hiro
#define DEFAULT_HEIGHT                        460
116 528 hiro
#define DEFAULT_FOLDERVIEW_WIDTH        179
117 528 hiro
#define DEFAULT_MAINVIEW_WIDTH                600
118 528 hiro
#define DEFAULT_SUMMARY_HEIGHT                140
119 528 hiro
#define DEFAULT_HEADERVIEW_HEIGHT        40
120 528 hiro
#define DEFAULT_COMPOSE_HEIGHT                560
121 528 hiro
#define BORDER_WIDTH                        2
122 528 hiro
#define CTREE_INDENT                        18
123 528 hiro
#define FOLDER_SPACING                        4
124 528 hiro
#define MAX_ENTRY_LENGTH                8191
125 528 hiro
#define COLOR_DIM                        35000
126 528 hiro
#define UI_REFRESH_INTERVAL                50000        /* usec */
127 528 hiro
#define FOLDER_UPDATE_INTERVAL                1500        /* msec */
128 528 hiro
#define PROGRESS_UPDATE_INTERVAL        200        /* msec */
129 528 hiro
#define SESSION_TIMEOUT_INTERVAL        60        /* sec */
130 528 hiro
#define MAX_HISTORY_SIZE                16
131 528 hiro
132 528 hiro
#define DEFAULT_MESSAGE_FONT        "Monospace 12"
133 528 hiro
134 528 hiro
#endif /* __DEFS_H__ */