rh = cur->data;
debug_task ("found header \"%s\" with value \"%s\"",
re->header, rh->decoded);
+ regexp = re->regexp;
+
if (re->type == REGEXP_RAW_HEADER) {
in = rh->value;
raw = TRUE;
}
else {
in = rh->decoded;
- regexp = re->regexp;
/* Validate input */
if (!in || !g_utf8_validate (in, -1, NULL)) {
cur = g_list_next (cur);
cur = g_list_next (cur);
continue;
}
+
+ regexp = re->regexp;
+
/* Check raw flags */
if (part->is_raw) {
raw = TRUE;
}
- else {
- /* This time there is no need to validate anything as conversion succeed only for valid characters */
- regexp = re->regexp;
- }
/* Select data for regexp */
if (raw) {
ct = part->orig->data;