Active Topics

 



Notices


Reply
Thread Tools
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#1
Well, the questions all in the thread title really.

It would be ideal from a security POV not to have modest download mail from every AP on my device.

Would it be possible to only allow modest to update from say my home and work connections.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
sifo's Avatar
Posts: 1,359 | Thanked: 1,292 times | Joined on Oct 2011 @ Tartus.Syria
#2
looking forward for a solution, as i really need this

./sifo
__________________
[ N900-Crack ] [ The Purge ] [ New Smiles ] [ New icons ] [ ? ]
" Hey ! I've just met you and this is crazy, so install cssu maybe ? "
Please help out keeping Maemo.org alive, and consider donating.
https://www.facebook.com/ZoRk7
 
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#3
This was actually possible with Symbian

Anyway, one possibility (which I haven't tested) would be to use an ifup script (or use dbuscron or dbusscripts) to kill modest if the active connection is not present in a given list (of "authorized" SSIDs).
 
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#4
I would propose also an ifup script checking the ssid and then look to get the automatic checks set to NULL (do not know yet, nothing in phone_control, maybe check with gconf). As just killing modest will not help, it will arise out of the ashes and update again.
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#5
He, I actually wrote about this already (here: http://talk.maemo.org/showpost.php?p...9&postcount=12).

The ifup/dbus script would decide which update_interval to apply (don't know if "0" means "disabled", but it can be easily tested), and then execute:

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

I'll test the gconftool entry (manually). The dbus/ifup scripting should be "easy" enough..
 
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#6
OK. No need to touch the update_interval.

The script would do something like this:

1. decide whether to enable or disable automatic updates
2. set AUTO_UPDATE accordingly ("true" or "false")
3. execute
$ gconftool -s /apps/modest/auto_update -t bool $AUTO_UPDATE

(optional)
4. if/as wished, set a custom update_interval according to the AP/SSID
$ gconftool -s /apps/modest/update_interval -t int $MINUTES

Note that this will not affect Nokia Messaging in any way, in case you're using it (I use standard IMAP for some accounts and Nokia Messaging for other accounts).
 

The Following 3 Users Say Thank You to reinob For This Useful Post:
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#7
Originally Posted by peterleinchen View Post
I would propose also an ifup script checking the ssid and then look to get the automatic checks set to NULL (do not know yet, nothing in phone_control, maybe check with gconf). As just killing modest will not help, it will arise out of the ashes and update again.
I came here to say this. Well done pete.

I use this to change wifi power on certain networks:

Code:
 cat /etc/network/if-up.d/50_wifiscripts
#!/bin/sh
essid=$(iwgetid -s)

if [ "$essid" == "home" ]; then
        iwconfig wlan0 txpower 4
        echo $essid
elif [ "$essid" == "work" ]; then
        iwconfig wlan0 txpower 6
fi
Combine the above with a gconf toggle as suggested and done.
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 

The Following 4 Users Say Thank You to vi_ For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#8
Originally Posted by vi_ View Post
I came here to say this. Well done pete.
Uh oh, I feel honored.

But in fact input came from reinob.
Take above ifup script from vi_ and combine with reinob's finding about modest's gconf settings and you are done.
Nice one. But as I always use secured IMAP accounts, I do not feel the need to use...

Originally Posted by vi_ View Post
Code:
essid=$(iwgetid -s)
Just keep in mind when using vi_s proposal, that 'iwgetid -s' strips blanks and special chars from your SSID. So either take care or use 'iwgetid -r'.
 

The Following 2 Users Say Thank You to peterleinchen For This Useful Post:
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#9
Originally Posted by peterleinchen View Post
But as I always use secured IMAP accounts, I do not feel the need to use...
I never even thought about this.
I use POP with secure authentication, so I shouldn't need to worry about it.

Useful to know it's possible if I wanted to.
Thanks all.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#10
Ah, cmon.
Now you do need to use it!

It is not only about secure authentication, but also about secure connection. Depending on if you need only your password protected or also whole data transfer.
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 05:33.