Browse Source

adding keywords

AllGroupDevicesShowHandshake
Volker Birk 6 years ago
parent
commit
50dd87a1b3
2 changed files with 7 additions and 2 deletions
  1. +3
    -1
      src/message.hh
  2. +4
    -1
      src/pEpmodule.cc

+ 3
- 1
src/message.hh View File

@ -103,7 +103,9 @@ namespace pEp {
list references() { return strlist_attr(_msg->references); }
void references(list value) { strlist_attr(_msg->references, value); }
stringlist_t *keywords;
list keywords() { return strlist_attr(_msg->keywords); }
void keywords(list value) { strlist_attr(_msg->keywords, value); }
char *comments;
stringpair_list_t *opt_fields;
PEP_enc_format enc_format;


+ 4
- 1
src/pEpmodule.cc View File

@ -124,6 +124,9 @@ BOOST_PYTHON_MODULE(pEp)
"in_reply_to list")
.add_property("references", (list(Message::*)()) &Message::references,
(void(Message::*)(list)) &Message::references,
"message references");
"message IDs of messages this one is referring to")
.add_property("keywords", (list(Message::*)()) &Message::keywords,
(void(Message::*)(list)) &Message::keywords,
"keywords this message should be stored under");
}

Loading…
Cancel
Save