<div dir="ltr">Can someone please help me it is quite urgent, is there any mistake in what i wrote.<br>I use tny_camel_account_set_online to connect.<br><br><br><div class="gmail_quote">2009/7/6 Shyam Shrivastav <span dir="ltr">&lt;<a href="mailto:shyam.shrivastav@azingo.com">shyam.shrivastav@azingo.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Gmail imap is working for me. Please set option use_ssl = wrapped. Also<br>
we din&#39;t set any other option.<br>
<div><div></div><div class="h5"><br>
On Sun, 2009-07-05 at 17:25 +0100, mehdi bayarassou wrote:<br>
&gt; hello,<br>
&gt; I have some trouble connecting to imap gmail account using tinymail.<br>
&gt; i have the following error<br>
&gt;<br>
&gt; ** (process:8180): WARNING **: err: Failed to connect to IMAP server<br>
&gt; <a href="http://imap.gmail.com" target="_blank">imap.gmail.com</a>: Reading IMAP greeting failed<br>
&gt;<br>
&gt; here is how i configured my account<br>
&gt;         account = TNY_ACCOUNT (tny_camel_store_account_new ());<br>
&gt;<br>
&gt;         tny_camel_account_set_session (TNY_CAMEL_ACCOUNT (account),<br>
&gt; priv-&gt;session);<br>
&gt;         camel_session_set_online ((CamelSession*)priv-&gt;session,<br>
&gt; priv-&gt;force_online);*<br>
&gt;<br>
&gt;         tny_account_set_proto (account, &quot;imap&quot;);<br>
&gt;         tny_account_set_name (account, &quot;my_test&quot;);<br>
&gt;         tny_account_set_user (account, &quot;test_account_0&quot;);<br>
&gt;         tny_account_set_hostname (account, &quot;<a href="http://imap.gmail.com" target="_blank">imap.gmail.com</a>&quot;);<br>
&gt;         tny_account_set_port (account, &quot;993&quot;);<br>
&gt;         tny_account_set_id (account, &quot;<a href="mailto:test_account_0@gmail.com">test_account_0@gmail.com</a>&quot;);<br>
&gt;<br>
&gt;         TnyPair *option_security;<br>
&gt;         option_security = tny_pair_new (&quot;use_lsub&quot;, &quot;&quot;);<br>
&gt;         tny_camel_account_add_option (TNY_CAMEL_ACCOUNT (account),<br>
&gt; option_security);<br>
&gt;         g_object_unref (option_security);<br>
&gt;         option_security = tny_pair_new (&quot;check_all&quot;, &quot;&quot;);<br>
&gt;         tny_camel_account_add_option (TNY_CAMEL_ACCOUNT (account),<br>
&gt; option_security);<br>
&gt;         g_object_unref (option_security);<br>
&gt;         option_security = tny_pair_new (&quot;use_ssl&quot;, &quot;&quot;);<br>
&gt;         tny_camel_account_add_option (TNY_CAMEL_ACCOUNT (account),<br>
&gt;         option_security);<br>
&gt;         g_object_unref (option_security);<br>
&gt;         tny_account_set_forget_pass_func (account,<br>
&gt; per_account_forget_pass);<br>
&gt;         tny_account_set_pass_func (account, per_account_get_pass);<br>
&gt; Can someone please help me.<br>
&gt; I have another question, i want to implement a periodic check on a<br>
&gt; list of account. Does tnymail have a pre implemented mechanism that<br>
&gt; can help me to do this.<br>
&gt; Thanks for reading my email looking forward for a response.<br>
&gt; BR.<br>
&gt; Mehdi<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; tinymail-devel-list mailing list<br>
&gt; <a href="mailto:tinymail-devel-list@gnome.org">tinymail-devel-list@gnome.org</a><br>
&gt; <a href="http://mail.gnome.org/mailman/listinfo/tinymail-devel-list" target="_blank">http://mail.gnome.org/mailman/listinfo/tinymail-devel-list</a><br>
<br>
</blockquote></div><br></div>