Re: [exim] How to get Subject in transport?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Phil Pennock
Date:  
À: Алексей Киреев
CC: exim-users
Sujet: Re: [exim] How to get Subject in transport?
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