]> 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)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 20 Feb 2017 09:28:11 +0000 (11:28 +0200)
src/lib-imap/imap-bodystructure.c
src/lib-imap/imap-envelope.c

index a01b4ab4faf7eba5991bf8efe0969d7f0af7eafe..73c3ff512f0e7354fb593699a53cab11eba380c7 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)
@@ -635,6 +643,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)