From 9045f9fddba2e3d7b20894b0675d0cf8eeb9a9a5 Mon Sep 17 00:00:00 2001 From: Nat Friedman Date: Fri, 22 Oct 2004 04:32:27 +0000 Subject: Add a REPLY_ALL flag to the Message target. Set the REPLY_ALL flag when 2004-10-22 Nat Friedman * em-event.c: Add a REPLY_ALL flag to the Message target. * em-composer-utils.c (em_utils_reply_to_message): Set the REPLY_ALL flag when appropriate. svn path=/trunk/; revision=27689 --- mail/.cvsignore | 1 + mail/ChangeLog | 8 +++++++- mail/em-composer-utils.c | 3 ++- mail/em-event.c | 2 ++ mail/em-event.h | 9 +++++++-- 5 files changed, 19 insertions(+), 4 deletions(-) (limited to 'mail') diff --git a/mail/.cvsignore b/mail/.cvsignore index 94829402ba..ed5262270b 100644 --- a/mail/.cvsignore +++ b/mail/.cvsignore @@ -15,6 +15,7 @@ Spell.h em-marshal.c em-marshal.h evolution-mail-1.5.schemas +evolution-mail-2.2.schemas evolution-mail-1.5.schemas.in mail-config.gladep mail-errors.xml diff --git a/mail/ChangeLog b/mail/ChangeLog index a045865c04..cf1a4ad1d0 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,9 +1,15 @@ +2004-10-22 Nat Friedman + + * em-event.c: Add a REPLY_ALL flag to the Message target. + * em-composer-utils.c (em_utils_reply_to_message): Set the + REPLY_ALL flag when appropriate. + 2004-10-21 Not Zed * em-composer-utils.c (em_utils_reply_to_message): emit a 'message.replying' event with a message target. -2004-10-21 Nat +2004-10-21 Nat Friedman * em-event.c (em_event_target_new_message): new target type for message-related events. diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c index 217aebdc57..a4c328020b 100644 --- a/mail/em-composer-utils.c +++ b/mail/em-composer-utils.c @@ -1764,7 +1764,8 @@ em_utils_reply_to_message(CamelFolder *folder, const char *uid, CamelMimeMessage /* EVENT: message.replying definition */ eme = em_event_peek(); - target = em_event_target_new_message(eme, folder, message, uid, 0); + target = em_event_target_new_message(eme, folder, message, uid, + mode == REPLY_MODE_ALL ? EM_EVENT_MESSAGE_REPLY_ALL : 0); e_event_emit((EEvent *)eme, "message.replying", (EEventTarget *)target); account = guess_account (message, folder); diff --git a/mail/em-event.c b/mail/em-event.c index 279cd1acb9..8fd2dc3e38 100644 --- a/mail/em-event.c +++ b/mail/em-event.c @@ -162,7 +162,9 @@ static const EEventHookTargetMask emeh_folder_masks[] = { { 0 } }; + static const EEventHookTargetMask emeh_message_masks[] = { + { "replyall", EM_EVENT_MESSAGE_REPLY_ALL }, { 0 } }; diff --git a/mail/em-event.h b/mail/em-event.h index 83b0d83b36..aa772fb063 100644 --- a/mail/em-event.h +++ b/mail/em-event.h @@ -49,6 +49,11 @@ enum { EM_EVENT_FOLDER_NEWMAIL = 1<< 0, }; +/* Flags that describe TARGET_MESSAGE */ +enum { + EM_EVENT_MESSAGE_REPLY_ALL = 1<< 0, +}; + typedef struct _EMEventTargetFolder EMEventTargetFolder; struct _EMEventTargetFolder { @@ -59,9 +64,9 @@ struct _EMEventTargetFolder { typedef struct _EMEventTargetMessage EMEventTargetMessage; struct _EMEventTargetMessage { - EEventTarget target; + EEventTarget target; struct _CamelFolder *folder; - char *uid; + char *uid; struct _CamelMimeMessage *message; }; -- cgit