maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   N900 and mail autosync schedule (https://talk.maemo.org/showthread.php?t=45469)

airon11 2010-02-22 19:58

N900 and mail autosync schedule
 
Hi all, i'd like to understand which way the mail autocheck is scheduled in maemo.
i mean, where is the queue of the events to be triggered and which one is the command triggered to start the mail check at specified intervals?(using modest, the default mail client).
i have seen there is no crontab installed by default, so there must be a queue in some other plase, maybe via dbus?

this question because i'd like to check if it is possible to change the executable or the script triggered, to add a script done by myself, to fire up the data connection before attempting to check the email, because if i have the connection down, the check won't happen, and i want connection down, unless the mail goes for a check.

airon11 2010-02-23 00:37

Re: N900 and mail autosync schedule
 
i found this
dbus-send --session --type=method_call --dest=com.nokia.osso_email /com/nokia/osso_email com.nokia.osso_email.send_and_receive

but it's not working...also inthe guide i found it's written it's not working, and trying it doesn't trigger a send/receive.

i this dbus call changed in the latest maemo version?
the only thing that comes out in dbus-monitor is:

signal sender=org.freedesktop.DBus -> dest=(null destination) serial=57 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
string ":1.107"
string ""
string ":1.107"
method call sender=:1.107 -> dest=org.freedesktop.DBus serial=1 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=Hello
signal sender=org.freedesktop.DBus -> dest=(null destination) serial=58 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
string ":1.107"
string ":1.107"
string ""

airon11 2010-02-23 01:12

Re: N900 and mail autosync schedule
 
i found that the correct dbus call is:

dbus-send --session --type=method_call --dest=com.nokia.modest /com/nokia/modest com.nokia.modest.SendReceive

but doesn't work, as written in the bug filed here:
https://bugs.maemo.org/show_bug.cgi?id=7834

anyone can help me?

hawaii 2010-03-04 18:41

Re: N900 and mail autosync schedule
 
Still no solution for this? I'm writing a wrapper that uses notification via SMS to engage a Modest sync.

Thanks.

airon11 2010-03-04 23:46

Re: N900 and mail autosync schedule
 
the bug status is still unsolved...so no solution for now..the dbus command is right, i checked in the source code for modest,but the trigger doesn't work...

paulkoan 2010-04-08 07:02

Re: N900 and mail autosync schedule
 
Which is strange, because if you run dbus-monitor, you can see that alarmd uses the same call to trigger sendrecieve (when you have automatic update enabled) and gets the same error, and yet the send-recieve actually takes place.

airon11 2010-04-08 10:54

Re: N900 and mail autosync schedule
 
that's right..but for me the auto send-receive doesn't take place always even with opened connection,and maybe the problem is the same..don't know..

paulkoan 2010-04-10 13:11

Re: N900 and mail autosync schedule
 
Can we do this another way? What I would like to do is open modest and automatically navigate to a specific folder. There is nothing I can see in dbus that would accomplish this, so could it be done with gtk messages?

paulkoan 2010-04-12 13:49

Re: N900 and mail autosync schedule
 
Seems to me that it would be possible to (where there isn't dbus calls available) use xlib event sends to make things happen on the desktop.

For example, if I wanted to have a desktop shortcut that opened modest at a particular folder, bringing modest into focus, then simulating button presses with xevents could get us to the folder.

Perhaps a passing dev could point out how feasible this would be...

Malakai 2014-01-21 17:39

Re: N900 and mail autosync schedule
 
I know this threat is kind of old, but I would have thought that the issue would be solved. Really needed to trigger a send/receive from the command line. Maybe someone knows a workaround?


All times are GMT. The time now is 12:52.

vBulletin® Version 3.8.8