Lars Magne Ingebrigtsen writes: > I've now implemented this. Thanks Lar. I can see that the connection is keepalive by this: ,----[ Output of "ps aux | grep imap" ] | dovecot 13679 0.0 0.0 15244 2756 ? Ss Sep24 0:00 imap-login --ssl | hoor 13682 0.0 0.1 21272 5564 ? S Sep24 0:02 imap | hoor 16713 0.0 0.0 6532 808 pts/4 S+ 00:38 0:00 grep imap `---- However, there is still one annoying problem- pinentry-gtk-2 is still popping up (I need to hit "cancel" every time). Thanks. Charles