You can have a partially-persistent imap connection if imapproxy is used on the backend, or are you talking Apache's not-persistence?
All the way through. User to PHP instance to IMAP. Doing this via web is... pretty, and simple for end users, but has a heck of a cost :-).
List info: http://lists.roundcube.net/users/