Hello
 
I have a question regarding how to supply user and password information to the cclient library. The present use of mm_login should be quite sufficient for display oriented client software.
 
We are using cclient in a server program which is able to send and receive mail. Both pop3 and imap protocols are used. Sending mail includes rfc2554 (authentication). So there are three cases where user/password is needed.
 
Users and passwords are supplied in the mm_login callback. This seems to be the only way to do it. This has worked in the past. However we are migrating to a new threading model where this will no longer work as we can not use a global variable.
 
As I see it we have three options.
 
- The first is to set a thread specific mm_login callback with mail_parameters().
 
- The other is to somehow set a pointer to the information in the NETMBX structure which is available in mm_login.
 
- The third is to supply the MAILSTREAM to mm_login and use an updated "void *sparep" which is already present in MAILSTREAM to point out the user/password information..
 
All of these approaches needs cclient modifications which I am reluctant to do.
 
Have I missed something?
 
regards
 

Torbj�rn Gard
R&D
StreamServe AB,
Vasagatan 45
SE 411 37 Gothenburg,
Sweden
+46 31 778 26 00 Phone
+46 31 778 26 10 Fax
www.streamserve.com

 
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to