4 * Copyright (C) 2003 Hugo Villeneuve <hugo@hugovil.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
24 #define POP3_PROTOCOL 0
25 #define IMAP4_PROTOCOL 1
27 /* New messages animation duration, in microseconds. */
28 #define NEW_MAIL_ANIMATION_DURATION 900000
30 /* Flag used in the new messages animation to identify which image is currently
32 #define MAILBOX_CLOSED 0
33 #define MAILBOX_FULL 1
35 /* Source coordinates in global pixmap for the closed mailbox image. */
36 #define MAILBOX_CLOSED_SRC_X 64
37 #define MAILBOX_CLOSED_SRC_Y 4
39 /* Source coordinates in global pixmap for the opened and empty mailbox image. */
40 #define MAILBOX_OPENED_EMPTY_SRC_X 64
41 #define MAILBOX_OPENED_EMPTY_SRC_Y 64
43 /* Source coordinates in global pixmap for the opened and full mailbox image. */
44 #define MAILBOX_OPENED_FULL_SRC_X 4
45 #define MAILBOX_OPENED_FULL_SRC_Y 64
47 /* Source coordinates in global pixmap for the opened and full mailbox image. */
48 #define EXEC_CMD_IMG_SRC_X 124
49 #define EXEC_CMD_IMG_SRC_Y 4
51 /* Size of all mailbox images. */
52 #define MAILBOX_SIZE_X 56
53 #define MAILBOX_SIZE_Y 56
55 /* Destination coordinates when copying a mailbox image. */
56 #define MAILBOX_DEST_X 4
57 #define MAILBOX_DEST_Y 4
61 #define MAX_STR_LEN 256
63 typedef struct wmnotify_t
68 char *optional_config_file
;
69 char mail_client_command
[512];
70 char *mail_client_argv
[ARGV_LIMIT
];
71 unsigned int mail_check_interval
; /* In seconds. */
72 bool audible_notification
;
76 char imap_folder
[MAX_STR_LEN
];
78 char server_name
[MAX_STR_LEN
];
80 char username
[MAX_STR_LEN
];
81 char password
[MAX_STR_LEN
];
85 /* Exported variables */
90 # define _SCOPE_ extern
93 _SCOPE_ wmnotify_t wmnotify_infos
;
95 #endif /* WMNOTIFY_H */