aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorNat Friedman <nat@novell.com>2004-10-22 12:32:27 +0800
committerNat Friedman <nat@src.gnome.org>2004-10-22 12:32:27 +0800
commit9045f9fddba2e3d7b20894b0675d0cf8eeb9a9a5 (patch)
tree58b983827589adbb62ffa0d30e7121f5583d334b /mail
parent92dab166b6cd33e4631c8fb018278fd5091dfc05 (diff)
downloadgsoc2013-evolution-9045f9fddba2e3d7b20894b0675d0cf8eeb9a9a5.tar
gsoc2013-evolution-9045f9fddba2e3d7b20894b0675d0cf8eeb9a9a5.tar.gz
gsoc2013-evolution-9045f9fddba2e3d7b20894b0675d0cf8eeb9a9a5.tar.bz2
gsoc2013-evolution-9045f9fddba2e3d7b20894b0675d0cf8eeb9a9a5.tar.lz
gsoc2013-evolution-9045f9fddba2e3d7b20894b0675d0cf8eeb9a9a5.tar.xz
gsoc2013-evolution-9045f9fddba2e3d7b20894b0675d0cf8eeb9a9a5.tar.zst
gsoc2013-evolution-9045f9fddba2e3d7b20894b0675d0cf8eeb9a9a5.zip
Add a REPLY_ALL flag to the Message target. Set the REPLY_ALL flag when
2004-10-22 Nat Friedman <nat@novell.com> * 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
Diffstat (limited to 'mail')
-rw-r--r--mail/.cvsignore1
-rw-r--r--mail/ChangeLog8
-rw-r--r--mail/em-composer-utils.c3
-rw-r--r--mail/em-event.c2
-rw-r--r--mail/em-event.h9
5 files changed, 19 insertions, 4 deletions
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 <nat@novell.com>
+
+ * 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 <NotZed@Ximian.com>
* em-composer-utils.c (em_utils_reply_to_message): emit a
'message.replying' event with a message target.
-2004-10-21 Nat <nat@novell.com>
+2004-10-21 Nat Friedman <nat@novell.com>
* 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;
};