[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-plugins
Subject:    Re: [SM-PLUGINS] Need Help with Writing Plugin
From:       "Tomas Kuliavas" <tokul () users ! sourceforge ! net>
Date:       2006-05-12 9:25:20
Message-ID: 1551.195.22.180.233.1147425920.squirrel () internet ! eik ! lt
[Download RAW message or body]

> I have a plugin for inhouse use that scans a users mailfolders and
> subscribes to any new folders that have appeared since last time it
> looked.
>
> It's called from the left_main_before plugin hook does an sqimap_login
> processes the folders and subscribes, and then does a sqimap_logout
>
> It's been working OK, but the problem is, it causes two IMAP sessions to
> be opened up by SM instead of one, which means with the cacheing proxy we
> have this extra imapd for every user sitting around until it times out,
> and in some cases when IMAP locking fails screws up the user.
>
> What to do? Should I not be doing an sqimap_login after left_main_before,
> is there already a connection open I can use, or should I move it to some
> other hook? I really only need it on login, and not after every left
> refresh?
>
> Any help welcome.

check $imapConnection global. It should closed only after left_main_after
hook.

check 'login_verified' hook.

-- 
Tomas


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
--
squirrelmail-plugins mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-plugins@lists.sourceforge.net
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.plugins
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3931
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic