maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   N900 - Where is Modest configuration file and how to place a download limit there? (https://talk.maemo.org/showthread.php?t=59218)

soeiro 2010-07-26 22:59

N900 - Where is Modest configuration file and how to place a download limit there?
 
Hello

I've been suffering from a bad email client (Modest) since I've bought my N900. Since it seems that there won't be any improvements for POP3 expensive data plan users like me, I decided to take a look at Modest's code.

I've found that it does check for a value called MODEST_CONF_MSG_SIZE_LIMIT when looking for which messages to download. So the question is: How do I specify the message limit?

Does anyone know where are modest settings stored and how to change them?

Thanks

soeiro 2010-07-27 02:49

Re: N900 - Where is Modest configuration file and how to place a download limit there?
 
Bump.

Does anybody know where and how the email configuration is stored in the fiesystem?

soeiro 2010-07-27 13:49

Re: N900 - Where is Modest configuration file and how to place a download limit there?
 
No luck so far. I've searched in the usual folders: ~/.config and others and still no luck.

I don't have experience with either Gnome or GTK+, so I'm guessing Modest is using some sort of configuration framework. Does anybody know anything about it?

droll 2010-07-27 13:51

Re: N900 - Where is Modest configuration file and how to place a download limit there?
 
where did you find the source code for modest??

gregoranderson 2010-07-27 14:00

Re: N900 - Where is Modest configuration file and how to place a download limit there?
 
Quote:

Originally Posted by droll (Post 766477)
where did you find the source code for modest??

Have a dig around here:

http://modest.garage.maemo.org/

Aydan 2010-07-27 14:04

Re: N900 - Where is Modest configuration file and how to place a download limit there?
 
look into /var/lib/gconf/apps/modest/%gconf.xml

there's an entry named msg_size_limit

soeiro 2010-07-27 14:27

Re: N900 - Where is Modest configuration file and how to place a download limit there?
 
Quote:

Originally Posted by gregoranderson (Post 766489)
Have a dig around here:

http://modest.garage.maemo.org/

Thanks. I'll take a look.

soeiro 2010-07-27 14:32

Re: N900 - Where is Modest configuration file and how to place a download limit there?
 
Quote:

Originally Posted by Aydan (Post 766495)
look into /var/lib/gconf/apps/modest/%gconf.xml

there's an entry named msg_size_limit

Thanks. I've changed it now. I'm assuming the value is specified in bytes. Let's see if it works.

tsa 2011-03-14 20:30

Re: N900 - Where is Modest configuration file and how to place a download limit there?
 
Bump again.

I messed up some settings in Modest, and I tried to change something in the file Aydan mentioned, but to no avail. Then I renamed the directory /var/lib/gconf/apps/modest to /var/lib/gconf/apps/email.old or something like that so Modest would get confused and start asking me things when I started it up. That was my idea, at least. To my surprise, it started with no problems and with all the settings it had before! No new directories were made in /var/lib/gconf. So my question is now: where can I find the real configuration files for Modest? Or how can I bring Modest back to its let's say, factory configuration?

xtv 2011-10-26 15:43

Re: N900 - Where is Modest configuration file and how to place a download limit there?
 
Is there any possibility to have different update times for WIFI and 3G networks?

While at home, I would like it to update frequently (like 15 or at most 30 min). But using that values over a 3g network will drain my battery fast.

Tryed to edit tthe config file by hand, but it seems that theres no way to do it.. :(

reinob 2011-10-27 08:44

Re: N900 - Where is Modest configuration file and how to place a download limit there?
 
@tsa,

The stuff in /var/lib/gconf is supposed to be edited by using gconftool, not just editing things by hand. Think of the Windows registry. You just don't go around flipping bits here and there, but use the registry editor.

reinob 2011-10-27 08:53

Re: N900 - Where is Modest configuration file and how to place a download limit there?
 
@xtv,

You'd need to change the /apps/modest/update_interval gconf entry.

*** UNTESTED ***

$ gconftool -s /apps/modest/update_interval -t int 30

That would set the update interval to 30min. Then you can use some DBUS magic to set that value depending on the connection type.

@tsa,

Same thing, but with /apps/modest/msg_size_limit (type is also 'int', not sure about scale (byte, kb, etc.)

igualada 2011-10-27 10:12

Re: N900 - Where is Modest configuration file and how to place a download limit there?
 
Quote:

Originally Posted by soeiro (Post 766541)
Thanks. I've changed it now. I'm assuming the value is specified in bytes. Let's see if it works.

Before I change the "msg_size_limit" value from "0", I was wondering whether the change you made worked for you?

One further question if this did work were the units in bytes?

Many thanks in advance

lma 2011-10-28 03:57

Re: N900 - Where is Modest configuration file and how to place a download limit there?
 
Quote:

Originally Posted by xtv (Post 1114046)
Is there any possibility to have different update times for WIFI and 3G networks?

Sounds like a job for woodchuck. Perhaps someone will write a patch for it?


All times are GMT. The time now is 13:30.

vBulletin® Version 3.8.8