]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-imap: Added more comments to imap-bodystructure and imap-envelope.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 26 Oct 2016 21:44:47 +0000 (23:44 +0200)
committerGitLab <gitlab@git.dovecot.net>
Mon, 30 Jan 2017 16:00:26 +0000 (18:00 +0200)
src/lib-imap/imap-bodystructure.c
src/lib-imap/imap-envelope.c

index b16949fb88eddcb3212e4aee9f1a12dd78de660b..256cd940eb38d840185da92e77945f5d6802838d 100644 (file)
 #define EMPTY_BODYSTRUCTURE "(\"text\" \"plain\" " \
        "(\"charset\" \""MESSAGE_PART_DEFAULT_CHARSET"\") NIL NIL \"7bit\" 0 0)"
 
+/*
+ * IMAP BODY/BODYSTRUCTURE write
+ */
+
 static void
 params_write(const struct message_part_param *params,
        unsigned int params_count, string_t *str,
@@ -224,6 +228,10 @@ void imap_bodystructure_write(const struct message_part *part,
                part_write_body(part, dest, extended);
 }
 
+/*
+ * IMAP BODYSTRUCTURE parsing
+ */
+
 static int
 imap_bodystructure_strlist_parse(const struct imap_arg *arg,
        pool_t pool, const char *const **list_r)
@@ -634,6 +642,10 @@ int imap_bodystructure_parse(const char *bodystructure,
                pool, &parts, error_r);
 }
 
+/*
+ * IMAP BODYSTRUCTURE to BODY conversion
+ */
+
 static bool str_append_nstring(string_t *str, const struct imap_arg *arg)
 {
        const char *cstr;
index f643e815eddbd8a34908bf38209fc90f62f4a8cd..44c4440f7e40329015389e0f74ede1af02a759e3 100644 (file)
 #include "imap-envelope.h"
 #include "imap-quote.h"
 
+/*
+ * Envelope write
+ */
+
 static void imap_write_address(string_t *str, struct message_address *addr)
 {
        if (addr == NULL) {
@@ -80,6 +84,10 @@ void imap_envelope_write(struct message_part_envelope *data,
        imap_append_nstring(str, data->message_id);
 }
 
+/*
+ * ENVELOPE parsing
+ */
+
 static bool
 imap_envelope_parse_address(const struct imap_arg *arg,
        pool_t pool, struct message_address **addr_r)