apache / incubator-ponymail

Apache Pony Mail (Incubating) - Email for Ponies & People
http://ponymail.incubator.apache.org/
Other
80 stars 30 forks source link

Bug: tmpname used before it has been set up in import-mbox #458

Closed sebbASF closed 6 years ago

sebbASF commented 6 years ago

pylint reports that the code at line 178 [1] uses tmpname, but it has not yet been set up.

It looks like this was caused by commit 6127911 [2] which rearranged some code to add imap support.

[1] https://github.com/apache/incubator-ponymail/blob/172ba61d357f855afde0b9a8e430a94dbd3a8df1/tools/import-mbox.py#L178

[2] https://github.com/apache/incubator-ponymail/commit/6127911a367a527423495c98f551d3939359eae9