diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-01 23:15:52 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-01 23:15:52 +0800 |
commit | fc1a90dae7267919efbb9843fb75974ea0a9e711 (patch) | |
tree | 7a0485737a0cea0a09818acce8dc4669654f166c | |
parent | acd42379828decc59f82c297d685561a057e3c9f (diff) |
Bypass e-mail record content for now
-rw-r--r-- | ticket.c | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -160,10 +160,34 @@ static size_t history_handler(void *contents, size_t size, size_t nmemb strcpy(ticket_history->description , ++token); } else if (!strcmp(token, "Content")) { + if (ticket_history->type + == RTCLIENT_TICKET_HISTORY_TYPE_EMAIL_RECORD) { + ticket_history->content = NULL; + break; + } token = strtok_r(NULL, ":", &tokensaveptr); ticket_history->content = malloc(strlen(token)); strcpy(ticket_history->content, ++token); + /* + while ((history = strtok_r(NULL, "#" + , &historysaveptr))) { + list->length--; + char *ptr = realloc(ticket_history + ->content + , strlen + (ticket_history + ->content) + + strlen(history) + + 2); + ticket_history->content = ptr; + sprintf(ticket_history->content + , "%s#%s" + , ticket_history + ->content + , history); + } + */ while ((line = strtok_r(NULL, "\n" , &linesaveptr))) { if (!strncmp(line, "Creator", 7)) |