From 4f5d93bfca71403439c7133efa016fffd5f8365a Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Sat, 6 Aug 2016 20:03:58 +0200 Subject: [PATCH] adding in_reply_to --- src/message.hh | 3 ++- src/pEpmodule.cc | 5 ++++- src/str_attr.cc | 4 ++-- src/str_attr.hh | 4 ++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/message.hh b/src/message.hh index 62183bd..358c736 100644 --- a/src/message.hh +++ b/src/message.hh @@ -97,7 +97,8 @@ namespace pEp { list reply_to() { return identitylist_attr(_msg->reply_to); } void reply_to(list value) { identitylist_attr(_msg->reply_to, value); } - stringlist_t *in_reply_to; + list in_reply_to() { return strlist_attr(_msg->in_reply_to); } + void in_reply_to(list value) { strlist_attr(_msg->in_reply_to, value); } struct _message *refering_msg_ref; stringlist_t *references; diff --git a/src/pEpmodule.cc b/src/pEpmodule.cc index 0fd9ab2..b2a590a 100644 --- a/src/pEpmodule.cc +++ b/src/pEpmodule.cc @@ -118,6 +118,9 @@ BOOST_PYTHON_MODULE(pEp) "list of identities message is going bcc") .add_property("reply_to", (list(Message::*)()) &Message::reply_to, (void(Message::*)(list)) &Message::reply_to, - "list of identities where message will be replied to"); + "list of identities where message will be replied to") + .add_property("in_reply_to", (list(Message::*)()) &Message::in_reply_to, + (void(Message::*)(list)) &Message::in_reply_to, + "in_reply_to list"); } diff --git a/src/str_attr.cc b/src/str_attr.cc index 083c87a..96d6bf2 100644 --- a/src/str_attr.cc +++ b/src/str_attr.cc @@ -38,7 +38,7 @@ namespace pEp { ts = new_timestamp(value); } - list strlist(stringlist_t *&sl) + list strlist_attr(stringlist_t *&sl) { list result; @@ -50,7 +50,7 @@ namespace pEp { return result; } - void strlist(stringlist_t *&sl, list value) + void strlist_attr(stringlist_t *&sl, list value) { stringlist_t *_sl = new_stringlist(NULL); if (!_sl) diff --git a/src/str_attr.hh b/src/str_attr.hh index 49caea9..68580ac 100644 --- a/src/str_attr.hh +++ b/src/str_attr.hh @@ -16,8 +16,8 @@ namespace pEp { time_t timestamp_attr(timestamp *&ts); void timestamp_attr(timestamp *&ts, time_t value); - list strlist(stringlist_t *&sl); - void strlist(stringlist_t *&sl, list value); + list strlist_attr(stringlist_t *&sl); + void strlist_attr(stringlist_t *&sl, list value); } }