[rt-users] Message ID generation
Bruce Campbell
bruce_campbell at ripe.net
Mon Mar 11 16:06:22 EST 2002
On Mon, 11 Mar 2002, Florian Weimer wrote:
> sub SetMessageID {
>
> # TODO $RT::rtname should be replaced by $RT::hostname to form valid
> # message-ids (ref rfc822)
>
> $self->SetHeader
> ('Message-ID', "<rt-".$self->TicketObj->id().
> "-".
> $self->TransactionObj->id()."." .rand(20) . "\@".$RT::rtname.">")
> unless $self->TemplateObj->MIMEObj->head->get('Message-ID');
> }
>
> Is it safe to change $RT::rtname to something else in this context?
> In our case, $RT::rtname isn't a FQDN. :-/
You could change it to $RT::hostname, and ensure you set $hostname in
etc/config.pm to something that is a FQDN . Eric and I will cry though
(we're doing seperate work regarding MessageId handling) ;)
Seriously though, go right ahead.
Regards,
--
Bruce Campbell RIPE
Systems/Network Engineer NCC
www.ripe.net - PGP562C8B1B Operations
More information about the rt-users
mailing list