Transaction-local CC lists truncated

Hi,

We’ve noticed that the transaction-local CC lists (added sometime
between 2.0.9 and 2.0.13, I’m not sure exactly when) seem to get
silently truncated if they’re long (say > 60 chars). For example, a
user might put

joseph_smith@foobar.example.com, jane_doe@foobar.example.com,
	joe_blow@foobar.example.com

in the CC list and end up with only the first two addresses, or with
the first two and part of the third, like

joseph_smith@foobar.example.com, jane_doe@foobar.example.com,

or

joseph_smith@foobar.example.com, jane_doe@foobar.example.com,
	joe_blow@foob

I was surprised to find that the truncation doesn’t seem to be to the
same length each time, but maybe RT drops strings that don’t look like
valid e-mail addresses (so if an address gets chopped before the @ it
gets dropped).

Is anyone else having this problem? I didn’t see anything obvious in
the list archives.

–Bret

Bret Andrew Martin Harvard Medical School
bret_martin@hms.harvard.edu West Quad Computing Group
http://wqcg.med.harvard.edu

Bret Martin wrote:

We’ve noticed that the transaction-local CC lists (added sometime
between 2.0.9 and 2.0.13, I’m not sure exactly when) seem to get
silently truncated if they’re long (say > 60 chars). For example, a

This might be caused by the fact that the inputs are set to
60 characters wide. :slight_smile:

Cc:

This might be caused by the fact that the inputs are set to
60 characters wide. :slight_smile:

Cc:

Er, doesn’t that only tell the browser how large to make the field
visually, and not limit the size of the submitted data?

–Bret

Bret Andrew Martin Harvard Medical School
bret_martin@hms.harvard.edu West Quad Computing Group
http://wqcg.med.harvard.edu

At 10:13 Uhr -0400 21.5.2002, Bret Martin wrote:

Cc:

Er, doesn’t that only tell the browser how large to make the field
visually, and not limit the size of the submitted data?

Exactly. From the HTML 4.0 spec:

size = cdata [CN]
This attribute tells the user agent the initial width of the control.
The width is given in pixels except when type attribute has the value
“text” or “password”. In that case, its value refers to the (integer)
number of characters.

maxlength = number [CN]
When the type attribute has the value “text” or “password”, this
attribute specifies the maximum number of characters the user may
enter. This number may exceed the specified size, in which case the
user agent should offer a scrolling mechanism. The default value for
this attribute is an unlimited number.

Sebastian Flothow
sebastian@flothow.de
#include <stddisclaimer.h>