Ich hab dein simplemail testweise in PyLucid rein gepackt...
Lokal auf meinem Server läuft es, ich hab auch eine email verschicken lassen, die auch laut return-status verschickt wurde... Aber eigentlich hab ich auf dem Ubuntu mich nicht großartig mit eMail Server beschäftigt... Also es ist eigentlich nix dafür eingerichtet... Die email ist bisher auch nicht angekommen...
Kann man da noch mehr Status Informationen bekommen, ob die Email auch wirklich verschickt wurde???
Dann hab ich's mal bei Hosteurope versucht... Zu erstmal läuft das ganze nicht so einfach mit Python 2.2.1

Aber naja, ich hab ja eh schon Backports eingebaut und diese dann mit ./Lib/email/* erweitert... Dennoch klappt es nicht. Ich erhalte einen SyntaxError in Iterators.py ???
SyntaxError: invalid syntax (Iterators.py, line 19)
__doc__ = 'Invalid syntax.'
__getitem__ = <bound method SyntaxError.__getitem__ of <exceptions.SyntaxError instance at 0x82d6a24>>
__init__ = <bound method SyntaxError.__init__ of <exceptions.SyntaxError instance at 0x82d6a24>>
__module__ = 'exceptions'
__str__ = <bound method SyntaxError.__str__ of <exceptions.SyntaxError instance at 0x82d6a24>>
args = ('invalid syntax', ('PyLucid_python_backports/email/Iterators.py', 19, 14, ' yield self\n'))
filename = 'PyLucid_python_backports/email/Iterators.py'
lineno = 19
msg = 'invalid syntax'
offset = 14
print_file_and_line = None
text = ' yield self\n'
Anscheinend irgendwas mit yield... Der Teil aus Iterators.py:
Code: Alles auswählen
def walk(self):
"""Walk over the message tree, yielding each subpart.
The walk is performed in depth-first order. This method is a
generator.
"""
yield self
if self.is_multipart():
for subpart in self.get_payload():
for subsubpart in subpart.walk():
yield subsubpart
EDIT: OK, wenn ich in Iterators.py ein "from __future__ import generators" einfüge geht's weiter, mit dem nächsten Fehler:
NameError: global name 'basestring' is not defined
__doc__ = 'Name not found globally.'
__getitem__ = <bound method NameError.__getitem__ of <exceptions.NameError instance at 0x832d6ac>>
__init__ = <bound method NameError.__init__ of <exceptions.NameError instance at 0x832d6ac>>
__module__ = 'exceptions'
__str__ = <bound method NameError.__str__ of <exceptions.NameError instance at 0x832d6ac>>
args = ("global name 'basestring' is not defined",)