Be aware that ${msg_id} is transient. If it is defined in the configuration file or in the
command line, that definition can be ignored by sendmail. Note that a $& prefix is necessary
when you reference this macro in rules (that is, use $&{msg_id}, not ${msg_id}).
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
21.9 Alphabetized sendmail Macros | 835
21.9.69 ${msg_size}
Size of the current message V8.10 and later
The size of a message is considered to be the number of bytes in its headers and body. That
size can be declared or calculated. It is predeclared withth e SIZE= MAIL From: ESMTP
parameter:
MAIL From:
SIZE=45621
Immediately after sendmail reads the size value from the SIZE= parameter, it stores that
value in the ${msg_size} macro. The value is stored before checks for validity are made and
so can contain nonnumeric characters. If the message lacks a SIZE= parameter, the ${msg_
size} macro will be undefined (NULL).
The message size is calculated again after the entire message has been read (either from
standard input, the queue, or via SMTP) and the value in ${msg_size} is updated withth at
new value. If an external Milter program (?§26.1 on page 1170) is called, the ${msg_size} is
updated again because that program might have changed the size of the message.
Pages:
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472