struct rspamd_mime_text_part *part)
{
const gchar *p = begin, *c = begin;
- gboolean crlf_added = FALSE;
+ gboolean crlf_added = FALSE, is_utf = IS_TEXT_PART_UTF (part);
gboolean url_open_bracket = FALSE;
UChar32 uc;
} state = normal_char;
while (p < pe) {
- if (IS_TEXT_PART_UTF (part)) {
+ if (G_LIKELY(is_utf)) {
gint32 off = p - begin;
U8_NEXT (begin, off, pe - begin, uc);
rspamd_log_set_log_level (rspamd_main->logger, G_LOG_LEVEL_MESSAGE);
}
- rspamd_main->event_loop = ev_default_loop (EVFLAG_SIGNALFD|EVBACKEND_ALL);
+ rspamd_main->event_loop = ev_default_loop (rspamd_config_ev_backend_get (cfg));
resolver = rspamd_dns_resolver_init (rspamd_main->logger,
rspamd_main->event_loop,