Statistics
| Branch: | Tag: | Revision:

root / libsylph / defs.h @ 3620c738

History | View | Annotate | Download (3.18 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 <glib.h>
14

    
15
#if HAVE_PATHS_H
16
#  include <paths.h>
17
#endif
18

    
19
#if HAVE_SYS_PARAM_H
20
#  include <sys/param.h>
21
#endif
22

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

    
69
#ifdef G_OS_WIN32
70
#  define REMOTE_CMD_PORT        50215
71
#endif
72

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

    
89
#ifdef _PATH_MAILDIR
90
#  define DEFAULT_SPOOL_PATH        _PATH_MAILDIR
91
#else
92
#  define DEFAULT_SPOOL_PATH        "/var/spool/mail"
93
#endif
94

    
95
#define BUFFSIZE                        8192
96

    
97
#ifndef MAXPATHLEN
98
#  define MAXPATHLEN                        4095
99
#endif
100

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

    
118
#define DEFAULT_MESSAGE_FONT        "Monospace 12"
119

    
120
#endif /* __DEFS_H__ */