Re: [SailfishDevel] configure mail accounts via command line

2013-12-27 Thread Andrey Kozhevnikov

just generate random 32-ascii-chars password. it should be enough :)

On 27.12.2013 18:38, Putze Sven wrote:

On 25.12.2013, at 18:49, Andrey Kozhevnikov  wrote:


what profit of using long crypted password if you can't remember it or just 
type, if you keeping your long and crypted password in some text file and 
pasting it every time you need to reset your mail account?

My passwords are not in a plain text file, they are stored in a crypted KeePass 
file. Someone is creating an app for Jolla, so everything will be fine in 
future. The profit is of course security: I use different logon credentials for 
each and every account (not only emails). It's more about not re-using 
passwords for other accounts, the human brain is quite limited here ;-) And 
yes, this kind of security (or call it paranoia) comes at a price: 
inconvenience.

BR.
Sven

P.S. Push2Sail came here to rescue, everything works fine now.

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] configure mail accounts via command line

2013-12-27 Thread Putze Sven

On 25.12.2013, at 18:49, Andrey Kozhevnikov  wrote:

> what profit of using long crypted password if you can't remember it or just 
> type, if you keeping your long and crypted password in some text file and 
> pasting it every time you need to reset your mail account?

My passwords are not in a plain text file, they are stored in a crypted KeePass 
file. Someone is creating an app for Jolla, so everything will be fine in 
future. The profit is of course security: I use different logon credentials for 
each and every account (not only emails). It's more about not re-using 
passwords for other accounts, the human brain is quite limited here ;-) And 
yes, this kind of security (or call it paranoia) comes at a price: 
inconvenience.

BR.
Sven

P.S. Push2Sail came here to rescue, everything works fine now.

> 

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] configure mail accounts via command line

2013-12-25 Thread Andrey Kozhevnikov
what profit of using long crypted password if you can't remember it or 
just type, if you keeping your long and crypted password in some text 
file and pasting it every time you need to reset your mail account?


On 25.12.2013 23:44, Sven Putze wrote:

Oh,

sorry. I am not writing an app. It's just about entering my long and cryptic 
password in the real device. I hope I don't need to write an app for that ;-)

BR.
Sven
On 25.12.2013, at 18:32, Andrey Kozhevnikov  wrote:


system wide or to active window, using QApplication::sendEvent.
I didnt tried it to send events to another window, just suggesting different 
way.

On 25.12.2013 23:30, Sven Putze wrote:

I din't get that. Emulate keypress where?

BR.
Sven
On 25.12.2013, at 17:39, Andrey Kozhevnikov  wrote:


did you tried emulating keypress with char codes?

On 25.12.2013 21:57, Sven Putze wrote:

On 25.12.2013, at 15:40, Andrey Kozhevnikov  wrote:


pasting from clipboard to onscreen keyboard not working? sadly then.


Sadly, indeed :-)
If only I had something I could copy and paste from...
...I've seen the suggestion from Mikael Hermansson but am not desperate enough 
to install the app;-)

BR.
Sven

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] configure mail accounts via command line

2013-12-25 Thread Andrey Kozhevnikov

i see. you hope someone did solution for you ;)

On 25.12.2013 23:44, Sven Putze wrote:

Oh,

sorry. I am not writing an app. It's just about entering my long and cryptic 
password in the real device. I hope I don't need to write an app for that ;-)

BR.
Sven
On 25.12.2013, at 18:32, Andrey Kozhevnikov  wrote:


system wide or to active window, using QApplication::sendEvent.
I didnt tried it to send events to another window, just suggesting different 
way.

On 25.12.2013 23:30, Sven Putze wrote:

I din't get that. Emulate keypress where?

BR.
Sven
On 25.12.2013, at 17:39, Andrey Kozhevnikov  wrote:


did you tried emulating keypress with char codes?

On 25.12.2013 21:57, Sven Putze wrote:

On 25.12.2013, at 15:40, Andrey Kozhevnikov  wrote:


pasting from clipboard to onscreen keyboard not working? sadly then.


Sadly, indeed :-)
If only I had something I could copy and paste from...
...I've seen the suggestion from Mikael Hermansson but am not desperate enough 
to install the app;-)

BR.
Sven

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] configure mail accounts via command line

2013-12-25 Thread Sven Putze
Oh,

sorry. I am not writing an app. It's just about entering my long and cryptic 
password in the real device. I hope I don't need to write an app for that ;-)

BR.
Sven
On 25.12.2013, at 18:32, Andrey Kozhevnikov  wrote:

> system wide or to active window, using QApplication::sendEvent.
> I didnt tried it to send events to another window, just suggesting different 
> way.
> 
> On 25.12.2013 23:30, Sven Putze wrote:
>> I din't get that. Emulate keypress where?
>> 
>> BR.
>> Sven
>> On 25.12.2013, at 17:39, Andrey Kozhevnikov  wrote:
>> 
>>> did you tried emulating keypress with char codes?
>>> 
>>> On 25.12.2013 21:57, Sven Putze wrote:
 On 25.12.2013, at 15:40, Andrey Kozhevnikov  wrote:
 
> pasting from clipboard to onscreen keyboard not working? sadly then.
> 
 Sadly, indeed :-)
 If only I had something I could copy and paste from...
 ...I've seen the suggestion from Mikael Hermansson but am not desperate 
 enough to install the app;-)
 
 BR.
 Sven
 
 ___
 SailfishOS.org Devel mailing list
>>> ___
>>> SailfishOS.org Devel mailing list
>> ___
>> SailfishOS.org Devel mailing list
> 
> ___
> SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] configure mail accounts via command line

2013-12-25 Thread Andrey Kozhevnikov

system wide or to active window, using QApplication::sendEvent.
I didnt tried it to send events to another window, just suggesting 
different way.


On 25.12.2013 23:30, Sven Putze wrote:

I din't get that. Emulate keypress where?

BR.
Sven
On 25.12.2013, at 17:39, Andrey Kozhevnikov  wrote:


did you tried emulating keypress with char codes?

On 25.12.2013 21:57, Sven Putze wrote:

On 25.12.2013, at 15:40, Andrey Kozhevnikov  wrote:


pasting from clipboard to onscreen keyboard not working? sadly then.


Sadly, indeed :-)
If only I had something I could copy and paste from...
...I've seen the suggestion from Mikael Hermansson but am not desperate enough 
to install the app;-)

BR.
Sven

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] configure mail accounts via command line

2013-12-25 Thread Sven Putze
I din't get that. Emulate keypress where?

BR.
Sven
On 25.12.2013, at 17:39, Andrey Kozhevnikov  wrote:

> did you tried emulating keypress with char codes?
> 
> On 25.12.2013 21:57, Sven Putze wrote:
>> On 25.12.2013, at 15:40, Andrey Kozhevnikov  wrote:
>> 
>>> pasting from clipboard to onscreen keyboard not working? sadly then.
>>> 
>> Sadly, indeed :-)
>> If only I had something I could copy and paste from...
>> ...I've seen the suggestion from Mikael Hermansson but am not desperate 
>> enough to install the app;-)
>> 
>> BR.
>> Sven
>> 
>> ___
>> SailfishOS.org Devel mailing list
> 
> ___
> SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] configure mail accounts via command line

2013-12-25 Thread Andrey Kozhevnikov

did you tried emulating keypress with char codes?

On 25.12.2013 21:57, Sven Putze wrote:

On 25.12.2013, at 15:40, Andrey Kozhevnikov  wrote:


pasting from clipboard to onscreen keyboard not working? sadly then.


Sadly, indeed :-)
If only I had something I could copy and paste from...
...I've seen the suggestion from Mikael Hermansson but am not desperate enough 
to install the app;-)

BR.
Sven

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] configure mail accounts via command line

2013-12-25 Thread Sven Putze

On 25.12.2013, at 15:40, Andrey Kozhevnikov  wrote:

> pasting from clipboard to onscreen keyboard not working? sadly then.
> 
Sadly, indeed :-)
If only I had something I could copy and paste from...
...I've seen the suggestion from Mikael Hermansson but am not desperate enough 
to install the app;-)

BR.
Sven

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] configure mail accounts via command line

2013-12-25 Thread Valerio Valerio

Hi,

On 25/12/13 14:31, Sven Putze wrote:

Because this way I could paste in my passwords. They tend to be long and cryptic (32-64 
chars). On screen keyboard does not work here, I tried. And I tried hard! Only results in 
"I want to throw that thing against the next wall". And I've waited too long to 
get my Jolla for such a folly ;-)


what are you trying to do ? :)

the passwords are saved in a separated DB can't be set via/modified via 
command line, only via accounts-sso apis:


https://code.google.com/p/accounts-sso/
https://github.com/nemomobile/nemo-qml-plugin-accounts

Best regards,

Valério


BR.
Sven

P.S.: And I am not changing my passwords :-)


On 25.12.2013, at 15:26, Andrey Kozhevnikov  wrote:


and explain please why cli?

On 25.12.2013 20:25, Sven Putze wrote:

On 25.12.2013, at 15:07, Andrey Kozhevnikov  wrote:


imap4/password and smtp/password not working?


Nope.

And somehow I am glad that it does not work because you can read the values with 
ag-tool list-settings  and the passwords would show up.
If I look at
http://talk.maemo.org/showthread.php?s=7878e61440c86b678dce7c74c510cf73&t=92122&page=3
and especially at
http://tinypic.com/view.php?pic=r0t4b5&s=5#.Urre__3gNFw

there must be some magic with credentials that have an id.

BR.
Sven

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] configure mail accounts via command line

2013-12-25 Thread Mikael Hermansson
Maybe push2sail can can be handy for lonmg passwords ;)

http://talk.maemo.org/showthread.php?t=92132&highlight=push2sail


On Wednesday 25 December 2013 20.40.01 Andrey Kozhevnikov wrote:
> pasting from clipboard to onscreen keyboard not working? sadly then.
> 
> On 25.12.2013 20:31, Sven Putze wrote:
> > Because this way I could paste in my passwords. They tend to be long and
> > cryptic (32-64 chars). On screen keyboard does not work here, I tried.
> > And I tried hard! Only results in "I want to throw that thing against the
> > next wall". And I've waited too long to get my Jolla for such a folly ;-)
> > 
> > BR.
> > Sven
> > 
> > P.S.: And I am not changing my passwords :-)
> > 
> > On 25.12.2013, at 15:26, Andrey Kozhevnikov  wrote:
> >> and explain please why cli?
> >> 
> >> On 25.12.2013 20:25, Sven Putze wrote:
> >>> On 25.12.2013, at 15:07, Andrey Kozhevnikov  
wrote:
>  imap4/password and smtp/password not working?
> >>> 
> >>> Nope.
> >>> 
> >>> And somehow I am glad that it does not work because you can read the
> >>> values with ag-tool list-settings  and the passwords would show up.
> >>> If I look at
> >>> 
http://talk.maemo.org/showthread.php?s=7878e61440c86b678dce7c74c510cf73&;
> >>> t=92122&page=3 and especially at
> >>> http://tinypic.com/view.php?pic=r0t4b5&s=5#.Urre__3gNFw
> >>> 
> >>> there must be some magic with credentials that have an id.
> >>> 
> >>> BR.
> >>> Sven
> >>> 
> >>> ___
> >>> SailfishOS.org Devel mailing list
> >> 
> >> ___
> >> SailfishOS.org Devel mailing list
> > 
> > ___
> > SailfishOS.org Devel mailing list
> 
> ___
> SailfishOS.org Devel mailing list

-- 
Skickat från Lenovo Thinkpad X230 running Kubuntu desktop
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] configure mail accounts via command line

2013-12-25 Thread Andrey Kozhevnikov

pasting from clipboard to onscreen keyboard not working? sadly then.

On 25.12.2013 20:31, Sven Putze wrote:

Because this way I could paste in my passwords. They tend to be long and cryptic (32-64 
chars). On screen keyboard does not work here, I tried. And I tried hard! Only results in 
"I want to throw that thing against the next wall". And I've waited too long to 
get my Jolla for such a folly ;-)

BR.
Sven

P.S.: And I am not changing my passwords :-)


On 25.12.2013, at 15:26, Andrey Kozhevnikov  wrote:


and explain please why cli?

On 25.12.2013 20:25, Sven Putze wrote:

On 25.12.2013, at 15:07, Andrey Kozhevnikov  wrote:


imap4/password and smtp/password not working?


Nope.

And somehow I am glad that it does not work because you can read the values with 
ag-tool list-settings  and the passwords would show up.
If I look at
http://talk.maemo.org/showthread.php?s=7878e61440c86b678dce7c74c510cf73&t=92122&page=3
and especially at
http://tinypic.com/view.php?pic=r0t4b5&s=5#.Urre__3gNFw

there must be some magic with credentials that have an id.

BR.
Sven

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] configure mail accounts via command line

2013-12-25 Thread Sven Putze
Because this way I could paste in my passwords. They tend to be long and 
cryptic (32-64 chars). On screen keyboard does not work here, I tried. And I 
tried hard! Only results in "I want to throw that thing against the next wall". 
And I've waited too long to get my Jolla for such a folly ;-)

BR.
Sven

P.S.: And I am not changing my passwords :-)


On 25.12.2013, at 15:26, Andrey Kozhevnikov  wrote:

> and explain please why cli?
> 
> On 25.12.2013 20:25, Sven Putze wrote:
>> On 25.12.2013, at 15:07, Andrey Kozhevnikov  wrote:
>> 
>>> imap4/password and smtp/password not working?
>>> 
>> Nope.
>> 
>> And somehow I am glad that it does not work because you can read the values 
>> with ag-tool list-settings  and the passwords would show up.
>> If I look at
>> http://talk.maemo.org/showthread.php?s=7878e61440c86b678dce7c74c510cf73&t=92122&page=3
>> and especially at
>> http://tinypic.com/view.php?pic=r0t4b5&s=5#.Urre__3gNFw
>> 
>> there must be some magic with credentials that have an id.
>> 
>> BR.
>> Sven
>> 
>> ___
>> SailfishOS.org Devel mailing list
> 
> ___
> SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] configure mail accounts via command line

2013-12-25 Thread Andrey Kozhevnikov

and explain please why cli?

On 25.12.2013 20:25, Sven Putze wrote:

On 25.12.2013, at 15:07, Andrey Kozhevnikov  wrote:


imap4/password and smtp/password not working?


Nope.

And somehow I am glad that it does not work because you can read the values with 
ag-tool list-settings  and the passwords would show up.
If I look at
http://talk.maemo.org/showthread.php?s=7878e61440c86b678dce7c74c510cf73&t=92122&page=3
and especially at
http://tinypic.com/view.php?pic=r0t4b5&s=5#.Urre__3gNFw

there must be some magic with credentials that have an id.

BR.
Sven

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] configure mail accounts via command line

2013-12-25 Thread Sven Putze

On 25.12.2013, at 15:07, Andrey Kozhevnikov  wrote:

> imap4/password and smtp/password not working?
> 
Nope.

And somehow I am glad that it does not work because you can read the values 
with ag-tool list-settings  and the passwords would show up.
If I look at
http://talk.maemo.org/showthread.php?s=7878e61440c86b678dce7c74c510cf73&t=92122&page=3
and especially at
http://tinypic.com/view.php?pic=r0t4b5&s=5#.Urre__3gNFw

there must be some magic with credentials that have an id.

BR.
Sven

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] configure mail accounts via command line

2013-12-25 Thread Andrey Kozhevnikov

imap4/password and smtp/password not working?

On 25.12.2013 20:02, Sven Putze wrote:

Hi all again,

so far I managed to create accounts via command line:


ag-tool create-account email mail.addr...@contoso.com
ag-tool list-accounts
# get the id number for the created account, let's assume 4
ag-tool update-service 4 email string:emailaddress=mail.addr...@contoso.com
ag-tool update-service 4 email string:name=mail.addr...@contoso.com
ag-tool update-service 4 email string:imap4/server=imapserver.contoso.com
ag-tool update-service 4 email string:imap4/username=mail.addr...@contoso.com
ag-tool update-service 4 email int:imap4/port=993
ag-tool update-service 4 email bool:imap4/encryption=1
ag-tool update-service 4 email int:imap4/authentication=2
ag-tool update-service 4 email string:smtp/server=smtpserver.contoso.com
ag-tool update-service 4 email string:smtp/username=mail.addr...@contoso.com
ag-tool update-service 4 email int:smtp/port=465
ag-tool update-service 4 email bool:smtp/encryption=1
ag-tool enable-account 4
ag-tool enable-service 4 email
ag-tool list-settings 4


This is pretty much OK, but the most important part is missing: *the password*

Does anyone know how to set it via shell? I you knew my passwords, you would 
immediately understand why I want to do it this way ;-)


BR.
Sven
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] configure mail accounts via command line

2013-12-25 Thread Sven Putze
Hi all again,

so far I managed to create accounts via command line:


ag-tool create-account email mail.addr...@contoso.com
ag-tool list-accounts
# get the id number for the created account, let's assume 4
ag-tool update-service 4 email string:emailaddress=mail.addr...@contoso.com
ag-tool update-service 4 email string:name=mail.addr...@contoso.com
ag-tool update-service 4 email string:imap4/server=imapserver.contoso.com
ag-tool update-service 4 email string:imap4/username=mail.addr...@contoso.com
ag-tool update-service 4 email int:imap4/port=993
ag-tool update-service 4 email bool:imap4/encryption=1
ag-tool update-service 4 email int:imap4/authentication=2
ag-tool update-service 4 email string:smtp/server=smtpserver.contoso.com
ag-tool update-service 4 email string:smtp/username=mail.addr...@contoso.com
ag-tool update-service 4 email int:smtp/port=465
ag-tool update-service 4 email bool:smtp/encryption=1
ag-tool enable-account 4
ag-tool enable-service 4 email
ag-tool list-settings 4


This is pretty much OK, but the most important part is missing: *the password*

Does anyone know how to set it via shell? I you knew my passwords, you would 
immediately understand why I want to do it this way ;-)


BR.
Sven
___
SailfishOS.org Devel mailing list