On 2012-08-06 at 16:07 +0400, Алексей Киреев wrote: > How can i get Subject header in transport appendfile.c? > > log_write(0, LOG_MAIN, "DEBUG: transport delivered to dir=%s from=%s, > subject=%s, size=%d", path, sender_address, subject, message_size); > > Variable "subject" does not exists, other variables are present.
Walk the header_list variable or change expand.c:find_header() to be non-static (and add a declaration to a header file). Examples of walking header_list for Subject: are in 'deliver.c'. The comments on find_header() are pretty clear; this is the function call behind the $h_* / $rh_* / $bh_* expansions in the string expansion language used for the config file. -Phil -- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
