----- Original Message ----- > > > ----- Original Message ----- > > Can we expose the subscription for an incoming message on the > > messenger API in some way? > > > > Motivation: > > I'm trying to integrate with another messaging API. That API may > handle incoming messages differently based on their notion of a > subscription. Currently I would have to parse an incoming message's > address and try to match that with some list of subscription > strings. > > It would be handier if I could just get something back form the API > to help me track/lookup. >
More thoughts: What would be nice is two API additions. int pn_messenger_context_subscribe(pn_messenger_t *messenger, const char *source, void* context); int pn_messenger_context_get(pn_messenger_t *messenger, pn_message_t *msg, void* context); The get would return the context for that message based on the subscription. Or something like that. Thoughts? William > William > > > > > > > > > William >