talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 471fdc18503eb51ed0c4917ca20701e985e2953e
parent b02b2726e3865c15953dbd8946d43443444ea3ef
Author: Ricardo Mones <ricardo@mones.org>
Date:   Fri, 12 Apr 2024 16:49:18 +0200

Refactor definition and remove unused defines

Diffstat:
Msrc/common/utils.h | 3+++
Msrc/compose.c | 3---
Msrc/prefs_customheader.c | 2--
Msrc/procmime.c | 3---
4 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/src/common/utils.h b/src/common/utils.h @@ -54,6 +54,9 @@ #define HOST_NAME_MAX 256 #endif +/* Handling Base64 content in procmime and prefs_customheader */ +#define B64_LINE_SIZE 57 + #ifdef G_OS_WIN32 #define fsync _commit diff --git a/src/compose.c b/src/compose.c @@ -188,9 +188,6 @@ typedef enum { NO_FIELD_PRESENT } MailField; -#define B64_LINE_SIZE 57 -#define B64_BUFFSIZE 77 - #define MAX_REFERENCES_LEN 999 #define COMPOSE_DRAFT_TIMEOUT_UNSET -1 diff --git a/src/prefs_customheader.c b/src/prefs_customheader.c @@ -544,8 +544,6 @@ static void prefs_custom_header_list_view_set_row(PrefsAccount *ac) } -#define B64_LINE_SIZE 57 -#define B64_BUFFSIZE 77 static void prefs_custom_header_val_from_file_cb(void) { gchar *filename = NULL; diff --git a/src/procmime.c b/src/procmime.c @@ -509,9 +509,6 @@ gboolean procmime_decode_content(MimeInfo *mimeinfo) return TRUE; } -#define B64_LINE_SIZE 57 -#define B64_BUFFSIZE 77 - gboolean procmime_encode_content(MimeInfo *mimeinfo, EncodingType encoding) { FILE *infp = NULL, *outfp;