diff --git a/src/message.hh b/src/message.hh index 358c736..d34f87b 100644 --- a/src/message.hh +++ b/src/message.hh @@ -100,9 +100,8 @@ namespace pEp { 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; - struct _message_ref_list *refered_by; + list references() { return strlist_attr(_msg->references); } + void references(list value) { strlist_attr(_msg->references, value); } stringlist_t *keywords; char *comments; diff --git a/src/pEpmodule.cc b/src/pEpmodule.cc index b2a590a..0b059e6 100644 --- a/src/pEpmodule.cc +++ b/src/pEpmodule.cc @@ -121,6 +121,9 @@ BOOST_PYTHON_MODULE(pEp) "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"); + "in_reply_to list") + .add_property("references", (list(Message::*)()) &Message::references, + (void(Message::*)(list)) &Message::references, + "message references"); }