--- a/offlineimap/localeval.py 2025-05-04 12:19:37.739860684 +0200
+++ b/offlineimap/localeval.py 2025-05-04 12:26:07.838113251 +0200
@@ -26,6 +26,8 @@
self.namespace = {}
if path is not None:
+ import importlib.machinery
+
# FIXME: limit opening files owned by current user with rights set
# to fixed mode 644.
foo = open(path, 'r')