Re: Mime recursion-depth is limited to 64

Pavlo Lavrenenko <santa-IUlZPdMEdC1Wk0Htik3J/[email protected]>
Newsgroups gmane.mail.imap.dbmail.devel
Message-ID <[email protected]>
On 09/25/2013 05:38 PM, Paul J Stevens wrote:
> There is a very big difference between the number of attachments and the
> recursions depth of attachments.
>
> The number of attachments is and always has been unlimited.

Got that, thanks for clarification.

> Are you telling me that you see recursion depth > 64 in the wild? It's
> theoretically possible of course, but do such messages actually occur?
>
> Keep in mind that many virus/spam scanners don't like very deep
> mime-structures.
>
> If anyone is stuffing attachments inside attachments, inside
> attachments, etc to a depth of over 64, I'd like to see it. And no, I
> don't give a f*ck about mail-loops that include the original message as
> an attachment.

I've got a db dump from one of our customers:

mysql> select max(part_depth) from dbmail_partlists;
+-----------------+
| max(part_depth) |
+-----------------+
|             242 |
+-----------------+
1 row in set (0.69 sec)

mysql> select * from dbmail_partlists where part_depth = 242;
+----------------+-----------+----------+------------+------------+----------+
| physmessage_id | is_header | part_key | part_depth | part_order | part_id  |
+----------------+-----------+----------+------------+------------+----------+
|        3617138 |         1 |      966 |        242 |          0 | 16509340 |
|        3617138 |         0 |      966 |        242 |          1 | 16509341 |
|        3617138 |         1 |      967 |        242 |          0 | 16509342 |
|        3617138 |         0 |      967 |        242 |          1 | 16509805 |
+----------------+-----------+----------+------------+------------+----------+
4 rows in set (0.96 sec)

I'll try to figure out what kind of message is that.

-- 
Best regards,
Pavlo Lavrenenko,
PortaOne, Inc., Junior Software Developer
Tel: +1-866-SIP VOIP (+1 866 747 8647) ext. 7624

PortaOne - VoIP Solutions Company
Visit our Website: http://www.portaone.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.