diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-12-13 05:14:30 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-12-13 05:14:30 +0800 |
commit | 3622e520dda5f4b7c9cf6aee8aaadc1a50f21ba5 (patch) | |
tree | 3408a4ae0944753bf04bb93e5cea61f6486ad21c /mail/mail-config.h | |
parent | 39d4313c302735f75a215be0776d99c8ab398f60 (diff) | |
download | gsoc2013-evolution-3622e520dda5f4b7c9cf6aee8aaadc1a50f21ba5.tar gsoc2013-evolution-3622e520dda5f4b7c9cf6aee8aaadc1a50f21ba5.tar.gz gsoc2013-evolution-3622e520dda5f4b7c9cf6aee8aaadc1a50f21ba5.tar.bz2 gsoc2013-evolution-3622e520dda5f4b7c9cf6aee8aaadc1a50f21ba5.tar.lz gsoc2013-evolution-3622e520dda5f4b7c9cf6aee8aaadc1a50f21ba5.tar.xz gsoc2013-evolution-3622e520dda5f4b7c9cf6aee8aaadc1a50f21ba5.tar.zst gsoc2013-evolution-3622e520dda5f4b7c9cf6aee8aaadc1a50f21ba5.zip |
set the new-mail-notify command.
2001-12-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_set_new_mail_notification_command):
set the new-mail-notify command.
(mail_config_get_new_mail_notification_command): get the
new-mail-notify command.
(mail_config_set_new_mail_notification): set the
new-mail-notification action.
(mail_config_get_new_mail_notification): get the
new-mail-notification action.
(mail_config_write_on_exit): save the new-mail-notification
settings.
(config_read): Read in the new-mail-notification settings.
* mail-ops.c (mail_execute_shell_command): New function to execute
a shell command async. Will be used for playing sounds on new mail
or whatever.
svn path=/trunk/; revision=15005
Diffstat (limited to 'mail/mail-config.h')
-rw-r--r-- | mail/mail-config.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/mail-config.h b/mail/mail-config.h index ce71d0e1ea..82f863dba3 100644 --- a/mail/mail-config.h +++ b/mail/mail-config.h @@ -87,6 +87,12 @@ typedef enum { MAIL_CONFIG_DISPLAY_MAX } MailConfigDisplayStyle; +typedef enum { + MAIL_CONFIG_NEW_MAIL_NOTIFICATION_NONE, + MAIL_CONFIG_NEW_MAIL_NOTIFICATION_BEEP, + MAIL_CONFIG_NEW_MAIL_NOTIFICATION_COMMAND, +} MailConfigNewMailNotification; + /* Identities */ MailConfigIdentity *identity_copy (const MailConfigIdentity *id); void identity_destroy (MailConfigIdentity *id); @@ -175,6 +181,11 @@ void mail_config_set_default_forward_style (MailConfigForwardS MailConfigDisplayStyle mail_config_get_message_display_style (void); void mail_config_set_message_display_style (MailConfigDisplayStyle style); +MailConfigNewMailNotification mail_config_get_new_mail_notification (void); +void mail_config_set_new_mail_notification (MailConfigNewMailNotification type); +const char *mail_config_get_new_mail_notification_command (void); +void mail_config_set_new_mail_notification_command (const char *command); + const char *mail_config_get_default_charset (void); void mail_config_set_default_charset (const char *charset); |