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/mail-html2text.h
#ifndef MAIL_HTML2TEXT_H
#define MAIL_HTML2TEXT_H

enum mail_html2text_flags {
	MAIL_HTML2TEXT_FLAG_SKIP_QUOTED	= 0x01
};

struct mail_html2text *
mail_html2text_init(enum mail_html2text_flags flags);
void mail_html2text_more(struct mail_html2text *ht,
			 const unsigned char *data, size_t size,
			 buffer_t *output);
void mail_html2text_deinit(struct mail_html2text **ht);

static inline bool
mail_html2text_content_type_match(const char *content_type)
{
	return strcasecmp(content_type, "text/html") == 0 ||
		strcasecmp(content_type, "application/xhtml+xml") == 0;
}

#endif