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. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20071229/418b5b8c/attachment-0002.bin>
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 ----------------------------------------------------------------------