OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Postfix Archives: Re: Customised Message-ID

Re: Customised Message-ID


Subject: Re: Customised Message-ID
From: Wietse Venema (wietseporcupine.org)
Date: Thu Jan 27 2000 - 09:00:05 CST


Lionel Cons:

Hey guy, long time no see.

> I would like to customise the Message-ID generated by Postfix so that,
> for instance, the sender host name does not appear. It seems that this
> is currently hard-coded in cleanup/cleanup_message.c:
>
> /*
> * Add a missing (Resent-)Message-Id: header. The message ID gives the
> * time in GMT units, plus the local queue ID.
> */
> if ((cleanup_headers_seen & (1 << (cleanup_resent[0] ?
> HDR_RESENT_MESSAGE_ID : HDR_MESSAGE_ID))) == 0) {
> tp = gmtime(&cleanup_time);
> strftime(time_stamp, sizeof(time_stamp), "%Y%m%d%H%M%S", tp);
> cleanup_out_format(REC_TYPE_NORM, "%sMessage-Id: <%s.%s%s>",
> cleanup_resent, time_stamp, cleanup_queue_id, var_myhostname);
> msg_info("%s: %smessage-id=<%s.%s%s>",
> cleanup_queue_id, *cleanup_resent ? "resent-" : "",
> time_stamp, cleanup_queue_id, var_myhostname);
> }

Eventually, all message headers will be configurable, with $name
expansions in them. It is all a matter of getting something out
the door before life is over.

        Wietse



This archive was generated by hypermail 2b27 : Thu Jan 27 2000 - 09:02:22 CST