Statistics
| Branch: | Tag: | Revision:

root / libsylph / defs.h @ aebfd4cc

History | View | Annotate | Download (3.24 KB)

1
/*
2
 * LibSylph -- E-Mail client library
3
 * Copyright (C) 1999-2011 Hiroyuki Yamamoto
4
 */
5

    
6
#ifndef __DEFS_H__
7
#define __DEFS_H__
8

    
9
#ifdef HAVE_CONFIG_H
10
#  include "config.h"
11
#endif
12

    
13
#include <glibconfig.h>
14

    
15
#ifdef G_OS_WIN32
16
#  include <glib/gwin32.h>
17
#endif
18

    
19
#if HAVE_PATHS_H
20
#  include <paths.h>
21
#endif
22

    
23
#if HAVE_SYS_PARAM_H
24
#  include <sys/param.h>
25
#endif
26

    
27
#define INBOX_DIR                "inbox"
28
#define OUTBOX_DIR                "sent"
29
#define QUEUE_DIR                "queue"
30
#define DRAFT_DIR                "draft"
31
#define TRASH_DIR                "trash"
32
#define JUNK_DIR                "junk"
33
#if defined(G_OS_WIN32) || defined(__APPLE__)
34
#  define RC_DIR                "Sylpheed"
35
#else
36
#  define RC_DIR                ".sylpheed-2.0"
37
#endif
38
#define OLD_RC_DIR                ".sylpheed"
39
#define NEWS_CACHE_DIR                "newscache"
40
#define IMAP_CACHE_DIR                "imapcache"
41
#define MIME_TMP_DIR                "mimetmp"
42
#define COMMON_RC                "sylpheedrc"
43
#define ACCOUNT_RC                "accountrc"
44
#define FILTER_RC                "filterrc"
45
#define FILTER_LIST                "filter.xml"
46
#define FILTER_HEADER_RC        "filterheaderrc"
47
#define CUSTOM_HEADER_RC        "customheaderrc"
48
#define DISPLAY_HEADER_RC        "dispheaderrc"
49
#define MENU_RC                        "menurc"
50
#define ACTIONS_RC                "actionsrc"
51
#define COMMAND_HISTORY                "command_history"
52
#define TEMPLATE_DIR                "templates"
53
#define TMP_DIR                        "tmp"
54
#define UIDL_DIR                "uidl"
55
#define PLUGIN_DIR                "plugins"
56
#define NEWSGROUP_LIST                ".newsgroup_list"
57
#define ADDRESS_BOOK                "addressbook.xml"
58
#define MANUAL_HTML_INDEX        "sylpheed.html"
59
#define FAQ_HTML_INDEX                "sylpheed-faq.html"
60
#define HOMEPAGE_URI                "http://sylpheed.sraoss.jp/"
61
#define DOWNLOAD_URI                "http://sylpheed.sraoss.jp/download.php"
62
#define VERSION_URI                "http://sylpheed.sraoss.jp/version.txt"
63
#define PLUGIN_HOMEPAGE_URI        "http://sylpheed.sraoss.jp/en/plugin.html"
64
#define PLUGIN_VERSION_URI        "http://sylpheed.sraoss.jp/plugin_version.txt"
65
#define FOLDER_LIST                "folderlist.xml"
66
#define CACHE_FILE                ".sylpheed_cache"
67
#define MARK_FILE                ".sylpheed_mark"
68
#define SEARCH_CACHE                "search_cache"
69
#define CACHE_VERSION                0x21
70
#define MARK_VERSION                2
71
#define SEARCH_CACHE_VERSION        1
72

    
73
#ifdef G_OS_WIN32
74
#  define REMOTE_CMD_PORT        50215
75
#endif
76

    
77
#ifdef G_OS_WIN32
78
#  define DEFAULT_SIGNATURE        "signature.txt"
79
#else
80
#  define DEFAULT_SIGNATURE        ".signature"
81
#endif
82
#define DEFAULT_INC_PATH        "/usr/bin/mh/inc"
83
#define DEFAULT_INC_PROGRAM        "inc"
84
/* #define DEFAULT_INC_PATH        "/usr/bin/imget" */
85
/* #define DEFAULT_INC_PROGRAM        "imget" */
86
#define DEFAULT_SENDMAIL_CMD        "/usr/sbin/sendmail -t -i"
87
#ifdef __APPLE__
88
#  define DEFAULT_BROWSER_CMD        "open '%s'"
89
#else
90
#  define DEFAULT_BROWSER_CMD        "xdg-open '%s'"
91
#endif
92

    
93
#ifdef _PATH_MAILDIR
94
#  define DEFAULT_SPOOL_PATH        _PATH_MAILDIR
95
#else
96
#  define DEFAULT_SPOOL_PATH        "/var/spool/mail"
97
#endif
98

    
99
#define BUFFSIZE                        8192
100

    
101
#ifndef MAXPATHLEN
102
#  define MAXPATHLEN                        4095
103
#endif
104

    
105
#define DEFAULT_HEIGHT                        460
106
#define DEFAULT_FOLDERVIEW_WIDTH        179
107
#define DEFAULT_MAINVIEW_WIDTH                600
108
#define DEFAULT_SUMMARY_HEIGHT                140
109
#define DEFAULT_HEADERVIEW_HEIGHT        40
110
#define DEFAULT_COMPOSE_HEIGHT                560
111
#define BORDER_WIDTH                        2
112
#define CTREE_INDENT                        18
113
#define FOLDER_SPACING                        4
114
#define MAX_ENTRY_LENGTH                8191
115
#define COLOR_DIM                        35000
116
#define UI_REFRESH_INTERVAL                50000        /* usec */
117
#define FOLDER_UPDATE_INTERVAL                1500        /* msec */
118
#define PROGRESS_UPDATE_INTERVAL        200        /* msec */
119
#define SESSION_TIMEOUT_INTERVAL        60        /* sec */
120
#define MAX_HISTORY_SIZE                16
121

    
122
#define DEFAULT_MESSAGE_FONT        "Monospace 12"
123

    
124
#endif /* __DEFS_H__ */