[rt-users] Message ID generation
Florian Weimer
Weimer at CERT.Uni-Stuttgart.DE
Mon Mar 11 13:20:23 EST 2002
Excerpt from Action/SendEmail.pm:
sub SetMessageID {
my $self = shift;
# TODO this one might be sort of broken. If we have several scrips +++
# sending several emails to several different persons, we need to
# pull out different message-ids. I'd suggest message ids like
# "rt-ticket#-transaction#-scrip#-receipient#"
# 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. :-/
--
Florian Weimer Weimer at CERT.Uni-Stuttgart.DE
University of Stuttgart http://CERT.Uni-Stuttgart.DE/people/fw/
RUS-CERT +49-711-685-5973/fax +49-711-685-5898
More information about the rt-users
mailing list