<div dir="ltr">Alan, I am not quite familiar with Thunderbird and other clients. Please clarify this<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span style="font-family:arial,sans-serif;font-size:13px"><i>Please note that Thunderbird and Outlook can use ONE smtp service, but be configured for multiple IMAP accounts and it just works...</i></span></blockquote><div>
<br></div><div>When you have multiple IMAP acounts, which one of it is the sent email put in?</div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div>--<br>Sreenivas Kanumuru<br>vtiger Team<div>
<div><br></div><div>Direct: +91 96323-55656<br>Skype: skanumuru</div><br><b>Connect with us on: </b><a href="http://twitter.com/#%21/vtigercrm" target="_blank">Twitter</a> <b>I</b> <a href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall" target="_blank">Facebook</a> <b>I</b> <a href="http://blog.vtiger.com/" target="_blank">Blog</a><b> I</b> <a href="http://wiki.vtiger.com/index.php/Main_Page" target="_blank">Wiki</a> <b>I </b><a href="http://forums.vtiger.com/" target="_blank">Forums </a><b>I</b> <a href="http://vtiger.com/" target="_blank">Website</a><br>
</div></div>
<br><br><div class="gmail_quote">On Fri, Sep 13, 2013 at 2:00 PM, Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 13/09/13 09:10, Sreenivas Kanumuru wrote:<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Asterisk Support will be included in 6.1. We are deferring it because<br>
the current code is not very efficient, and needs to be refactored.<br>
</blockquote>
<br></div>
Cool<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
    understand this, what should happen is the IMAP client in vtiger<br>
    should add a *copy* of the outgoing message to the client's Sent<br>
    Folder of their IMAP account.<br>
    What it should absolutely *not* do, is send another copy of the<br></div>
    message, via SMTP, to the sender so it arrives in their Inbox./<div class="im"><br>
<br>
<br>
This is not possible, unless we let users send email from their<br>
individual SMTP accounts.<br>
<br>
Outgoing emails are going from a common SMTP account, lets call it X.<br>
while Incoming emails from individual user's IMAP, lets say A.<br>
<br>
The request is asking for email sent from X, to go to A's Sent Mail.<br>
That is not possible to my knowledge.<br>
</div></blockquote>
<br>
How do you think Thunderbird & Outlook or Roundcube or any other email clients, be they desk or web-based, work?<br>
<br>
They don't send a copy to my Inbox? They add a copy of the message to my sent box (often with an interim step via the outbox) which is then automatically synced with the IMAP server.<br>
<br>
Please note that Thunderbird and Outlook can use ONE smtp service, but be configured for multiple IMAP accounts and it just works...<br>
<br>
I'm pretty sure they use the IMAP APPEND command...<br>
<br>
<a href="http://tools.ietf.org/html/rfc1730#section-6.3.10" target="_blank">http://tools.ietf.org/html/<u></u>rfc1730#section-6.3.10</a><br>
<br>
>From the roundcube imap class:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
    /**<br>
     * Append a mail message (source) to a specific folder<br>
     *<br>
     * @param string  $folder  Target folder<br>
     * @param string  $message The message source string or filename<br>
     * @param string  $headers Headers string if $message contains only the body<br>
     * @param boolean $is_file True if $message is a filename<br>
     * @param array   $flags   Message flags<br>
     * @param mixed   $date    Message internal date<br>
     * @param bool    $binary  Enables BINARY append<br>
     *<br>
     * @return int|bool Appended message UID or True on success, False on error<br>
     */<br>
    public function save_message($folder, &$message, $headers='', $is_file=false, $flags = array(), $date = null, $binary = false)<br>
    {<br>
        if (!strlen($folder)) {<br>
            $folder = $this->folder;<br>
        }<br>
<br>
        if (!$this->check_connection()) {<br>
            return false;<br>
        }<br>
<br>
        // make sure folder exists<br>
        if (!$this->folder_exists($<u></u>folder)) {<br>
            return false;<br>
        }<br>
<br>
        $date = $this->date_format($date);<br>
<br>
        if ($is_file) {<br>
            $saved = $this->conn->appendFromFile($<u></u>folder, $message, $headers, $flags, $date, $binary);<br>
        }<br>
        else {<br>
            $saved = $this->conn->append($folder, $message, $flags, $date, $binary);<br>
        }<br>
<br>
        if ($saved) {<br>
            // increase messagecount of the target folder<br>
            $this->set_messagecount($<u></u>folder, 'ALL', 1);<br>
        }<br>
<br>
        return $saved;<br>
    }<br>
</blockquote><div class="im">
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Scheduled Workflow (to run workflow at scheduled time) is only available<br>
in On Demand edition.<br>
</blockquote>
<br></div>
That's a shame :-(<br>
<br>
Al<br>
<br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>