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