It isn't possible to supply a MAILSTREAM with mm_login(), since either there is no MAILSTREAM (sending with SMTP or NNTP) or the MAILSTREAM is in the process of being created (IMAP, POP3, or reading with NNTP). Either way, there is no usable MAILSTREAM that can be used.

The right way to solve your problem is to have a global database in which you look up some set of host, orighost, user, authuser, and service from the NETMBX. That probably means that you need to specify /user=??? in the specification that you supply to mail_open()/smtp_open()/nntp_open() in order to disambiguate which request the mm_login() is doing.

The need to use /user=??? is probably the missing piece of the puzzle; instead of letting mm_login() get the user name, it has to be supplied when you do the open call and mm_login() just copies it.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to