diff options
Diffstat (limited to 'libsylph/defs.h')
| -rw-r--r-- | libsylph/defs.h | 134 |
1 files changed, 134 insertions, 0 deletions
diff --git a/libsylph/defs.h b/libsylph/defs.h new file mode 100644 index 0000000..9e3f82b --- /dev/null +++ b/libsylph/defs.h | |||
| @@ -0,0 +1,134 @@ | |||
| 1 | /* | ||
| 2 | * LibSylph -- E-Mail client library | ||
| 3 | * Copyright (C) 1999-2012 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 <glib.h> | ||
| 28 | |||
| 29 | #if HAVE_PATHS_H | ||
| 30 | # include <paths.h> | ||
| 31 | #endif | ||
| 32 | |||
| 33 | #if HAVE_SYS_PARAM_H | ||
| 34 | # include <sys/param.h> | ||
| 35 | #endif | ||
| 36 | |||
| 37 | #define INBOX_DIR "inbox" | ||
| 38 | #define OUTBOX_DIR "sent" | ||
| 39 | #define QUEUE_DIR "queue" | ||
| 40 | #define DRAFT_DIR "draft" | ||
| 41 | #define TRASH_DIR "trash" | ||
| 42 | #define JUNK_DIR "junk" | ||
| 43 | #if defined(G_OS_WIN32) || defined(__APPLE__) | ||
| 44 | # define RC_DIR "Sylpheed" | ||
| 45 | #else | ||
| 46 | # define RC_DIR ".sylpheed-2.0" | ||
| 47 | #endif | ||
| 48 | #define OLD_RC_DIR ".sylpheed" | ||
| 49 | #define NEWS_CACHE_DIR "newscache" | ||
| 50 | #define IMAP_CACHE_DIR "imapcache" | ||
| 51 | #define MIME_TMP_DIR "mimetmp" | ||
| 52 | #define COMMON_RC "sylpheedrc" | ||
| 53 | #define ACCOUNT_RC "accountrc" | ||
| 54 | #define FILTER_RC "filterrc" | ||
| 55 | #define FILTER_LIST "filter.xml" | ||
| 56 | #define FILTER_HEADER_RC "filterheaderrc" | ||
| 57 | #define CUSTOM_HEADER_RC "customheaderrc" | ||
| 58 | #define DISPLAY_HEADER_RC "dispheaderrc" | ||
| 59 | #define MENU_RC "menurc" | ||
| 60 | #define ACTIONS_RC "actionsrc" | ||
| 61 | #define COMMAND_HISTORY "command_history" | ||
| 62 | #define TEMPLATE_DIR "templates" | ||
| 63 | #define TMP_DIR "tmp" | ||
| 64 | #define UIDL_DIR "uidl" | ||
| 65 | #define PLUGIN_DIR "plugins" | ||
| 66 | #define NEWSGROUP_LIST ".newsgroup_list" | ||
| 67 | #define ADDRESS_BOOK "addressbook.xml" | ||
| 68 | #define MANUAL_HTML_INDEX "sylpheed.html" | ||
| 69 | #define FAQ_HTML_INDEX "sylpheed-faq.html" | ||
| 70 | #define HOMEPAGE_URI "http://sylpheed.sraoss.jp/" | ||
| 71 | #define DOWNLOAD_URI "http://sylpheed.sraoss.jp/download.php" | ||
| 72 | #define VERSION_URI "http://sylpheed.sraoss.jp/version.txt" | ||
| 73 | #define PLUGIN_HOMEPAGE_URI "http://sylpheed.sraoss.jp/en/plugin.html" | ||
| 74 | #define PLUGIN_VERSION_URI "http://sylpheed.sraoss.jp/plugin_version.txt" | ||
| 75 | #define FOLDER_LIST "folderlist.xml" | ||
| 76 | #define CACHE_FILE ".sylpheed_cache" | ||
| 77 | #define MARK_FILE ".sylpheed_mark" | ||
| 78 | #define SEARCH_CACHE "search_cache" | ||
| 79 | #define CACHE_VERSION 0x21 | ||
| 80 | #define MARK_VERSION 2 | ||
| 81 | #define SEARCH_CACHE_VERSION 1 | ||
| 82 | |||
| 83 | #ifdef G_OS_WIN32 | ||
| 84 | # define REMOTE_CMD_PORT 50215 | ||
| 85 | #endif | ||
| 86 | |||
| 87 | #ifdef G_OS_WIN32 | ||
| 88 | # define DEFAULT_SIGNATURE "signature.txt" | ||
| 89 | #else | ||
| 90 | # define DEFAULT_SIGNATURE ".signature" | ||
| 91 | #endif | ||
| 92 | #define DEFAULT_INC_PATH "/usr/bin/mh/inc" | ||
| 93 | #define DEFAULT_INC_PROGRAM "inc" | ||
| 94 | /* #define DEFAULT_INC_PATH "/usr/bin/imget" */ | ||
| 95 | /* #define DEFAULT_INC_PROGRAM "imget" */ | ||
| 96 | #define DEFAULT_SENDMAIL_CMD "/usr/sbin/sendmail -t -i" | ||
| 97 | #ifdef __APPLE__ | ||
| 98 | # define DEFAULT_BROWSER_CMD "open '%s'" | ||
| 99 | #else | ||
| 100 | # define DEFAULT_BROWSER_CMD "xdg-open '%s'" | ||
| 101 | #endif | ||
| 102 | |||
| 103 | #ifdef _PATH_MAILDIR | ||
| 104 | # define DEFAULT_SPOOL_PATH _PATH_MAILDIR | ||
| 105 | #else | ||
| 106 | # define DEFAULT_SPOOL_PATH "/var/spool/mail" | ||
| 107 | #endif | ||
| 108 | |||
| 109 | #define BUFFSIZE 8192 | ||
| 110 | |||
| 111 | #ifndef MAXPATHLEN | ||
| 112 | # define MAXPATHLEN 4095 | ||
| 113 | #endif | ||
| 114 | |||
| 115 | #define DEFAULT_HEIGHT 460 | ||
| 116 | #define DEFAULT_FOLDERVIEW_WIDTH 179 | ||
| 117 | #define DEFAULT_MAINVIEW_WIDTH 600 | ||
| 118 | #define DEFAULT_SUMMARY_HEIGHT 140 | ||
| 119 | #define DEFAULT_HEADERVIEW_HEIGHT 40 | ||
| 120 | #define DEFAULT_COMPOSE_HEIGHT 560 | ||
| 121 | #define BORDER_WIDTH 2 | ||
| 122 | #define CTREE_INDENT 18 | ||
| 123 | #define FOLDER_SPACING 4 | ||
| 124 | #define MAX_ENTRY_LENGTH 8191 | ||
| 125 | #define COLOR_DIM 35000 | ||
| 126 | #define UI_REFRESH_INTERVAL 50000 /* usec */ | ||
| 127 | #define FOLDER_UPDATE_INTERVAL 1500 /* msec */ | ||
| 128 | #define PROGRESS_UPDATE_INTERVAL 200 /* msec */ | ||
| 129 | #define SESSION_TIMEOUT_INTERVAL 60 /* sec */ | ||
| 130 | #define MAX_HISTORY_SIZE 16 | ||
| 131 | |||
| 132 | #define DEFAULT_MESSAGE_FONT "Monospace 12" | ||
| 133 | |||
| 134 | #endif /* __DEFS_H__ */ | ||
