Python 2.6.6 – mailbox._ProxyFile instance has no attribute ‘name’
Posted on January 29th, 2013 by Joe
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 fp.name to fp._file.name Refer to the sample code below: #!/usr/bin/python […]