Mark Evans <[EMAIL PROTECTED]> wrote:
> I am interested in possibly reviving the integrated Python
> scripting in Mahogany.

Me too, eventually. Currently, I can do without Python scripting. But the
availability of Python scripting as advertised on the website was one of
the reasons I checked out M. AFAIR it doesn't work so well, currently?!

> I'm a complete newcomer to this project and before diving in, wish to ask
> what issues I might face.
> 
> Could someone tell me what are the problems associated with such an
> effort.  I would be interested in using Python 2.2.1 (the latest).  I
> have embedded the Python interpreter before,

I also have some experience writing diverse Python extensions.

> but have no knowledge of Mahogany source code (yet).  As I understand the
> Python scripting capability, there was/is Python code interfacing to the
> internal C++ object model of Mahogany.

Yep. http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mahogany/M/src/Python/
Using SWIG. Ugh. I didn't understand one bit of SWIG when I browsed the
wxPython sources a while ago.

> While I'm on the subject, I'll just toss in a possibly helpful link to my
> favorite C++/Python interfacing tool, the Boost Python Library.
> http://www.boost.org/libs/python/doc/index.html (It is changing because of
> the type/class unifications in Python 2.2.)

This is my favourite, too. Then, nothing comes for a while. Then comes just
writing the damn extension module myself in C.

> Another semi-related question -- What about a wxPython port of Mahogany?

Writing a MUA in wxPython is an idea I had myself for a while.
Unfortunately, there are several unfinished Python MUAs out there. One of
them, a pyGTK one, shreded my IMAP server, so I had to reconstruct it with
a script :-( I consequently will never look at it again. There's another
long abandoned wxPython client called rzMail.

> Does anyone think that would be worthwhile?

Normally, I'm all for Python instead of C++, as it is much more productive
to code in Python. My guess is that an hour Python coding gets you as far
as 3 or 4 hours of C++ coding. For an inexperienced C++ programmer like me,
the multiplier is a lot higher, of course. Performance isn't a problem in
my experience, except for very little parts of a MUA, threading perhaps
being one.

OTOH M is pretty advanced now, so I'm sceptical a rewrite would be a good
idea at this time. Perhaps for Mahogany v2? :-)

Gerhard



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-Developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to