Re: [exim] recipients_list problem

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Tony Finch
Dátum:  
Címzett: John Jetmore, Tom Kistner
CC: exim-users
Tárgy: Re: [exim] recipients_list problem
On Tue, 16 Aug 2005, John Jetmore wrote:
>
> The cause of this is having EXPERIMENTAL_BRIGHTMAIL defined, which affects
> the recipient_item struct like so:
>
> typedef struct recipient_item {
>   uschar *address;              /* the recipient address */
>   int     pno;                  /* parent number for "one_time" alias, or -1 */
>   uschar *errors_to;            /* the errors_to address or NULL */
> #ifdef EXPERIMENTAL_BRIGHTMAIL
>   uschar *bmi_optin;
> #endif
> } recipient_item;

>
> The actual define for this is in config.h The probllem is that this
> header is included everywhere _but_ local_scan.c, so the struct has
> different offsets in local_scan.c than everywhere else, as shown by these
> two log lines:


Oh dear!

> I solved this by adding an include for config.h at the top of local_scan.c
> but I'm not sure that's a good long term solution given the warning not to
> include other headers in the local_scan.c template.


I think it would be best to make the structure the same size in all
builds. (i.e. remove this particular #ifdef)

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}