[Dovecot] How to logoff a session with dovecot?
I use dovecot to push email to my SE P1i and it works very well. :) However, I have two email accounts set up on the phone, one using my domain for GPRS and public WiFi and one using my WLAN address for use at home, the idea being I don't want to pay for GPRS data at home. The trouble is the GPRS account remains logged on and I get the mail in both inboxes. There is no option in the email client on the phone to disconnect, so is there any trick to forcing a disconnect from the mail server?
TIA -Robin
Robin Atwood.
"Ship me somewheres east of Suez, where the best is like the worst, Where there ain't no Ten Commandments an' a man can raise a thirst" from "Mandalay" by Rudyard Kipling
On Sun, 2007-12-09 at 18:38 +0700, Robin Atwood wrote:
I use dovecot to push email to my SE P1i and it works very well. :) However, I have two email accounts set up on the phone, one using my domain for GPRS and public WiFi and one using my WLAN address for use at home, the idea being I don't want to pay for GPRS data at home. The trouble is the GPRS account remains logged on and I get the mail in both inboxes. There is no option in the email client on the phone to disconnect, so is there any trick to forcing a disconnect from the mail server?
I guess you could do something with post-login scripting (http://wiki.dovecot.org/PostLoginScripting). For example track GPRS vs. non-GPRS connections based on $IP. When non-GPRS connection logs in, kill all imap processes using GPRS IP.
On Saturday 29 Dec 2007, Timo Sirainen wrote:
On Sun, 2007-12-09 at 18:38 +0700, Robin Atwood wrote:
I use dovecot to push email to my SE P1i and it works very well. :) However, I have two email accounts set up on the phone, one using my domain for GPRS and public WiFi and one using my WLAN address for use at home, the idea being I don't want to pay for GPRS data at home. The trouble is the GPRS account remains logged on and I get the mail in both inboxes. There is no option in the email client on the phone to disconnect, so is there any trick to forcing a disconnect from the mail server?
I guess you could do something with post-login scripting (http://wiki.dovecot.org/PostLoginScripting). For example track GPRS vs. non-GPRS connections based on $IP. When non-GPRS connection logs in, kill all imap processes using GPRS IP.
Timo - Thanks for the suggestion, that hook looks very useful. I tried killing the imap-login processes manually and it seemed to do the trick!
Cheers... -Robin
Robin Atwood.
"Ship me somewheres east of Suez, where the best is like the worst, Where there ain't no Ten Commandments an' a man can raise a thirst" from "Mandalay" by Rudyard Kipling
participants (2)
-
Robin Atwood
-
Timo Sirainen