aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r--camel/camel-mime-utils.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index af9c9a7972..dbf4e4bfc3 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -1692,7 +1692,7 @@ header_references_list_clear(struct _header_references **list)
struct _header_references *
header_references_decode(const char *in)
{
- const char *inptr = in, *intmp;
+ const char *inptr = in;
struct _header_references *head = NULL, *node;
char *id, *word;
@@ -1721,6 +1721,21 @@ header_references_decode(const char *in)
return head;
}
+struct _header_references *
+header_references_dup(const struct _header_references *list)
+{
+ struct _header_references *new = NULL, *tmp;
+
+ while (list) {
+ tmp = g_new(struct _header_references, 1);
+ tmp->next = new;
+ tmp->id = g_strdup(list->id);
+ new = tmp;
+ list = list->next;
+ }
+ return new;
+}
+
struct _header_address *
header_mailbox_decode(const char *in)
{