--> Sunday, February 1, 2004, 1:34:10 AM, [EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] writes:
>> TB has many built-in features, while Becky gives programmers a great >> API. > [...] >> Apart from these two, I would not be surprised to find this >> capability in one or more of the following : Phoenix Mail, Pegasus, >> Eudora, PocoMail. > Ok, if you could e-mail me a diff showing the changes you made to get > tmda-address working under Windows, I'll consider adding this to the > distribution. I've boiled the changes down to two lines... ( and they're the same ). I'm using environment variables for TMDAHOST/NAME/USER. You could also use os.name, or sys.platform=='posix' instead. I don't know what's best. [EMAIL PROTECTED]:~/tmda/TMDA$ diff Util.py Util_NEW.py 34d33 < import pwd 38a38,39 > if sys.platform!='win32': > import pwd I moved the pwd import after sys is all. If you want to make more than just tmda-address work, you can do other things. I think it should be easy. I just did this for tmda-address only... [EMAIL PROTECTED]:~/tmda/TMDA$ diff Defaults.py Defaults_NEW.py 1522,1528c1522,1529 < crypt_key_filemode = Util.getfilemode(CRYPT_KEY_FILE) < if crypt_key_filemode not in (400, 600): < if ALLOW_MODE_640 and crypt_key_filemode == 640: < pass < else: < raise Errors.ConfigError, \ < CRYPT_KEY_FILE + " must be chmod 400 or 600!" --- > crypt_key_filemode = Util.getfilemode(CRYPT_KEY_FILE) > if sys.platform!='win32': > if crypt_key_filemode not in (400, 600): > if ALLOW_MODE_640 and crypt_key_filemode == 640: > pass > else: > raise Errors.ConfigError, \ > CRYPT_KEY_FILE + " must be chmod 400 or 600!" Just another "not win32" line, all modes are returned as 666 in Windows. I wouldn't say this calls for diffs, but there they are if you need them. D:\Desktop\tmda-1.0\bin>python tmda-address -s [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]:~/tmda/bin$ python tmda-address -s [EMAIL PROTECTED] [EMAIL PROTECTED] Dated address test also worked and expired as expected. -the end- _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
