Ramin Yaghoubzadeh Torky
Manuel Stoeckl
Frank Mueller
- JP Guillonneau
+ JP Guillonneau
+ Viatrix
"Aleksandar Urošević",
"Petr Vanek",
"Jeroen Versteeg",
+"Viatrix",
"Kevin Vigor",
"Michael Vilain",
"Johan Vromans",
/*
* Claws Mail -- a GTK based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2023 the Claws Mail team and Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
fp = claws_fopen(partinfo->data.filename, "rb");
if (fp != NULL && fseek(fp, partinfo->offset, SEEK_SET) == 0) {
- headers = procheader_get_header_array_asis(fp);
+ headers = procheader_get_header_array(fp);
if (headers) {
gint i;
for (i = 0; i < headers->len; i++) {
/*
* Claws Mail -- a GTK based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2014 Hiroyuki Yamamoto and the Claws Mail team
+ * Copyright (C) 1999-2023 the Claws Mail team and Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
FALSE);
}
-GPtrArray *procheader_get_header_array_asis(FILE *fp)
+GPtrArray *procheader_get_header_array(FILE *fp)
{
gchar *buf = NULL;
GPtrArray *headers;
headers = g_ptr_array_new();
- while (procheader_get_one_field_asis(&buf, fp) != -1) {
+ while (procheader_get_one_field(&buf, fp, NULL) != -1) {
if ((header = procheader_parse_header(buf)) != NULL)
g_ptr_array_add(headers, header);
g_free(buf);
/*
* Claws Mail -- a GTK based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2014 Hiroyuki Yamamoto and the Claws Mail team
+ * Copyright (C) 1999-2023 the Claws Mail team and Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
gint procheader_get_one_field_asis (gchar **buf,
FILE *fp);
-GPtrArray *procheader_get_header_array_asis (FILE *fp);
+GPtrArray *procheader_get_header_array (FILE *fp);
void procheader_header_array_destroy (GPtrArray *harray);
void procheader_header_free (Header *header);
/*
* Claws Mail -- a GTK based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2023 the Claws Mail team and Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
cm_return_val_if_fail(fp != NULL, NULL);
if (prefs_common.show_all_headers) {
- headers = procheader_get_header_array_asis(fp);
+ headers = procheader_get_header_array(fp);
sorted_headers = g_ptr_array_new();
for (i = 0; i < headers->len; i++) {
header = g_ptr_array_index(headers, i);
+ unfold_line(header->body);
if (!procheader_header_is_internal(header->name))
g_ptr_array_add(sorted_headers, header);
else
return NULL;
}
- headers = procheader_get_header_array_asis(fp);
+ headers = procheader_get_header_array(fp);
sorted_headers = g_ptr_array_new();
for (i = 0; i < headers->len; i++) {
header = g_ptr_array_index(headers, i);
-
+ unfold_line(header->body);
if (procheader_headername_equal(header->name,
dp->name)) {
if (dp->hidden)
if (prefs_common.show_other_header) {
for (i = 0; i < headers->len; i++) {
header = g_ptr_array_index(headers, i);
+ unfold_line(header->body);
if (!procheader_header_is_internal(header->name)) {
g_ptr_array_add(sorted_headers, header);
} else {