Statistics
| Branch: | Tag: | Revision:

root / libsylph / defs.h @ 8d7dcace

History | View | Annotate | Download (3.96 KB)

1
/*
2
 * LibSylph -- E-Mail client library
3
 * Copyright (C) 1999-2010 Hiroyuki Yamamoto
4
 *
5
 * This library is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU Lesser General Public
7
 * License as published by the Free Software Foundation; either
8
 * version 2.1 of the License, or (at your option) any later version.
9
 *
10
 * This library 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 GNU
13
 * Lesser General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU Lesser General Public
16
 * License along with this library; if not, write to the Free Software
17
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  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
#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 JUNK_DIR                "junk"
47
#if defined(G_OS_WIN32) || defined(__APPLE__)
48
#  define RC_DIR                "Sylpheed"
49
#else
50
#  define RC_DIR                ".sylpheed-2.0"
51
#endif
52
#define OLD_RC_DIR                ".sylpheed"
53
#define NEWS_CACHE_DIR                "newscache"
54
#define IMAP_CACHE_DIR                "imapcache"
55
#define MIME_TMP_DIR                "mimetmp"
56
#define COMMON_RC                "sylpheedrc"
57
#define ACCOUNT_RC                "accountrc"
58
#define FILTER_RC                "filterrc"
59
#define FILTER_LIST                "filter.xml"
60
#define FILTER_HEADER_RC        "filterheaderrc"
61
#define CUSTOM_HEADER_RC        "customheaderrc"
62
#define DISPLAY_HEADER_RC        "dispheaderrc"
63
#define MENU_RC                        "menurc"
64
#define ACTIONS_RC                "actionsrc"
65
#define COMMAND_HISTORY                "command_history"
66
#define TEMPLATE_DIR                "templates"
67
#define TMP_DIR                        "tmp"
68
#define UIDL_DIR                "uidl"
69
#define PLUGIN_DIR                "plugins"
70
#define NEWSGROUP_LIST                ".newsgroup_list"
71
#define ADDRESS_BOOK                "addressbook.xml"
72
#define MANUAL_HTML_INDEX        "sylpheed.html"
73
#define FAQ_HTML_INDEX                "sylpheed-faq.html"
74
#define HOMEPAGE_URI                "http://sylpheed.sraoss.jp/"
75
#define DOWNLOAD_URI                "http://sylpheed.sraoss.jp/download.php"
76
#define VERSION_URI                "http://sylpheed.sraoss.jp/version.txt"
77
#define PLUGIN_HOMEPAGE_URI        "http://sylpheed.sraoss.jp/en/plugin.html"
78
#define PLUGIN_VERSION_URI        "http://sylpheed.sraoss.jp/plugin_version.txt"
79
#define FOLDER_LIST                "folderlist.xml"
80
#define CACHE_FILE                ".sylpheed_cache"
81
#define MARK_FILE                ".sylpheed_mark"
82
#define SEARCH_CACHE                "search_cache"
83
#define CACHE_VERSION                0x21
84
#define MARK_VERSION                2
85
#define SEARCH_CACHE_VERSION        1
86

    
87
#ifdef G_OS_WIN32
88
#  define REMOTE_CMD_PORT        50215
89
#endif
90

    
91
#ifdef G_OS_WIN32
92
#  define DEFAULT_SIGNATURE        "signature.txt"
93
#else
94
#  define DEFAULT_SIGNATURE        ".signature"
95
#endif
96
#define DEFAULT_INC_PATH        "/usr/bin/mh/inc"
97
#define DEFAULT_INC_PROGRAM        "inc"
98
/* #define DEFAULT_INC_PATH        "/usr/bin/imget" */
99
/* #define DEFAULT_INC_PROGRAM        "imget" */
100
#define DEFAULT_SENDMAIL_CMD        "/usr/sbin/sendmail -t -i"
101
#ifdef __APPLE__
102
#  define DEFAULT_BROWSER_CMD        "open '%s'"
103
#else
104
#  define DEFAULT_BROWSER_CMD        "xdg-open '%s'"
105
#endif
106

    
107
#ifdef _PATH_MAILDIR
108
#  define DEFAULT_SPOOL_PATH        _PATH_MAILDIR
109
#else
110
#  define DEFAULT_SPOOL_PATH        "/var/spool/mail"
111
#endif
112

    
113
#define BUFFSIZE                        8192
114

    
115
#ifndef MAXPATHLEN
116
#  define MAXPATHLEN                        4095
117
#endif
118

    
119
#define DEFAULT_HEIGHT                        460
120
#define DEFAULT_FOLDERVIEW_WIDTH        179
121
#define DEFAULT_MAINVIEW_WIDTH                600
122
#define DEFAULT_SUMMARY_HEIGHT                140
123
#define DEFAULT_HEADERVIEW_HEIGHT        40
124
#define DEFAULT_COMPOSE_HEIGHT                560
125
#define BORDER_WIDTH                        2
126
#define CTREE_INDENT                        18
127
#define FOLDER_SPACING                        4
128
#define MAX_ENTRY_LENGTH                8191
129
#define COLOR_DIM                        35000
130
#define UI_REFRESH_INTERVAL                50000        /* usec */
131
#define FOLDER_UPDATE_INTERVAL                1500        /* msec */
132
#define PROGRESS_UPDATE_INTERVAL        200        /* msec */
133
#define SESSION_TIMEOUT_INTERVAL        60        /* sec */
134
#define MAX_HISTORY_SIZE                16
135

    
136
#define DEFAULT_MESSAGE_FONT        "Monospace 12"
137

    
138
#endif /* __DEFS_H__ */