Opened 3 days ago

#442 assigned defect

mlsys_mailbox_mgr_.pl1 truncates delivered-by field to 32 characters for no good reason

Reported by: Jim Lippard Owned by: Eric Swenson
Priority: minor Milestone: No Milestore
Component: Standard Library Version: MR12.9
Keywords: mail, networking Cc: Jim Lippard

Description

It declares ring_1_delivered_by_comment as char (32) varying and truncates it, but the underlying field can be (and often is) longer:

dcl ring_1_delivered_by_comment character (32) varying;
...

ring_1_delivered_by_comment =

rtrim (canon (rtrim (mail_format.sent_from), length (rtrim (mail_format.sent_from))));

...

call mlsys_address_mgr_$create_user_mailbox_address

((substr (im_message_info.mra.sender_id, 1, ...)),
"", ring_1_delivered_by_comment, ring_1_delivered_by, (0));

The callee imposes no such limit, and it should take a length at least as long as mail_format.sent_from. smtp_deliver_.pl1 uses char (256) varying where a comment indicates it was previously char (64) varying, while smtp_return_path_.pl1 uses varying char (257).

Change History (0)

Note: See TracTickets for help on using tickets.