HEX
Server: LiteSpeed
System: Linux server.searchcove.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User: lurax (1083)
PHP: 8.3.30
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/include/dovecot/message-binary-part.h
#ifndef MESSAGE_BINARY_PART_H
#define MESSAGE_BINARY_PART_H

struct message_binary_part {
	struct message_binary_part *next;

	/* Absolute position from beginning of message. This can be used to
	   match the part to struct message_part. */
	uoff_t physical_pos;
	/* Decoded binary header/body size. The binary header size may differ
	   from message_part's, because Content-Transfer-Encoding is changed to
	   "binary". */
	uoff_t binary_hdr_size;
	uoff_t binary_body_size;
	/* BODYSTRUCTURE for text/ and message/rfc822 parts includes lines
	   count. Decoding may change these numbers. */
	unsigned int binary_body_lines_count;
};

/* Serialize message binary_part. */
void message_binary_part_serialize(const struct message_binary_part *parts,
				   buffer_t *dest);

/* Generate struct message_binary_part from serialized data. Returns 0 if ok,
   -1 if any problems are detected. */
int message_binary_part_deserialize(pool_t pool, const void *data, size_t size,
				    struct message_binary_part **parts_r);

#endif