Hi guys,<br><br>Thanks a lot Srini to point me in the good direction, I think I found out what the problem was about:<br><br>In Webmails.php in the &quot;function Webmails($mbox=&#39;&#39;,$mailid=&#39;&#39;)&quot; a statment is missing &quot;$this-&gt;relationship = $this-&gt;find_relationships();&quot;<br>
By adding this line to the function I can qualify emails to an existing contact instead of creating the contact again.<br><br>Tell me if it works for other people, <br><br>Bye,<br>Clem<br><br><div class="gmail_quote">
On Wed, Mar 12, 2008 at 5:41 AM, Srinivasan M &lt;<a href="mailto:srini@vtiger.com" target="_blank">srini@vtiger.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi Clem,<br><br>Thanks for your interest in vtigerCRM.<br><br>When clicking on the Qualify button &quot;modules/Webmails/Save.php&quot; file will be called to create a new Contact and to relate the Qualified Email to this Contact. You have to modify the code in this file to check whether the contact is already present, if exist then you have to relate the Email to that particular contact.<br>


<br>Please get back to us for more information.<br><br>Thanks &amp; Regards,<br>Srini<br><br><div><div><div></div><div><span class="gmail_quote">On 3/12/08, <b class="gmail_sendername">clement chazarra</b> &lt;<a href="mailto:chazarra.clement@gmail.com" target="_blank">chazarra.clement@gmail.com</a>&gt; wrote:</span></div>

</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>
Hello everybody,<br><br>First a big huge &quot;THANK YOU&quot; to the vTiger team, this release is a big step forward, so many improvments.. I am now playing with it and I really enjoy!<br><br>I would like to talk about qualifying emails, when I do so, it creates a new contact which contains the corresponding email. The problem is if I receive again an email from the same contact, if I qualify again the email, it will create again the contact as new.<br>



Instead of this behaviour I would like to look up if the email already exists in contact details and if it is the case, just add the email to the contact.<br><br>I had a look in the log and could trace the bahaviour till &quot;insertIntoEntityTable Contacts vtiger_table name vtiger_contactdetails&quot; (method located in crmentity) but so far I cannot find the code between this method and the button &quot;qualify&quot; on the webmail menu.<br>



<br>My question:<br>Does anybody could tell me where to find the code executed when I press &quot;Qualify&quot; button? I can find &quot;add_to_vtiger&quot; method (in webmail.js) but cannot figure out where to go from there.<br>



<br>A little help would be really appreciated.<br><br>Thanks guys and long life to vTiger!<br>Clem<br>
<br></div></div>_______________________________________________<br>
Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com" target="_blank">http://jobs.vtiger.com</a> <br></blockquote></div><br>
<br>_______________________________________________<br>
Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com" target="_blank">http://jobs.vtiger.com</a> <br></blockquote></div><br>