After updating to Python 2.6.6 on my CentOS system, one of my email handling scripts failed with the following error message when trying to access the filename of the Maildir file object:

mailbox._ProxyFile instance has no attribute ‘name’

The mailbox.Maildir filename pointer has changed from to

Refer to the sample code below:

import mailbox
md = mailbox.Maildir(‘../data/email/archived’)
mde =

# old filename pointer

# new filename pointer for python 2.6.6

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

This entry was posted on Tuesday, January 29th, 2013 at 12:36 pm and is filed under Programming.Python, Troubleshooting Errors. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply