![]() |
2007-01-11
, 05:48
|
|
Posts: 161 |
Thanked: 55 times |
Joined on Dec 2006
@ SLO, CA; United States
|
#2
|
![]() |
2007-01-11
, 05:56
|
Posts: 10 |
Thanked: 0 times |
Joined on Jan 2006
|
#3
|
![]() |
2007-01-12
, 18:25
|
Posts: 474 |
Thanked: 30 times |
Joined on Jan 2006
|
#4
|
![]() |
2007-01-12
, 21:09
|
|
Posts: 1,463 |
Thanked: 81 times |
Joined on Oct 2005
@ UK
|
#5
|
![]() |
2007-01-13
, 06:11
|
Posts: 10 |
Thanked: 0 times |
Joined on Jan 2006
|
#6
|
#! /bin/sh set -e # /etc/init.d/mail_checker: start and stop the automatic mail checker. if test -f /etc/default/mail_checker; then . /etc/default/mail_checker else INTERVAL=600 fi mail_check_loop () { while : do dbus-send --session --type=method_call --dest=com.nokia.osso_email /com/nokia/osso_email com.nokia.osso_email.send_and_receive sleep $INTERVAL done } start_mail_check_loop () { mail_check_loop & } stop_mail_check_loop () { killall mail_checker } export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" case "$1" in start) echo -n "Starting automatic mail check." start_mail_check_loop echo "." ;; stop) echo -n "Stopping automatic mail check." stop_mail_check_loop echo "." ;; *) echo "Usage: /etc/init.d/mail_checker {start|stop}" exit 1 esac exit 0
If the answer to that last question is no, my second question is if it is possible to tell the email application to start recieving email? It looks like there is a dbus facility to do it, but I'm pretty new to dbus, so I can't figure it out.
Any help would be greatly appreciated. Thanks.