Hi again,

One of our POP3 users has (on my recommendation) set their IlohaMail Sent 
Mail folder to INBOX so that, when they POP their mail off the server they 
get any messages they sent using IlohaMail in their local inbox. They then 
use their local mail client (Outlook Express) to filter that mail into their 
local Sent Mail folder. It's a hack but effective until there is a better 
Sent Mail solution for POP3 users. In the meantime though, when you have 
your Sent folder set to INBOX in IlohaMail, a few things don't work quite 
right. First, Sent is displayed in the Folder list instead of INBOX. Second, 
Sent is displayed at the top of the message list instead of Inbox. Third, 
the To column is displayed in the message list instead of the From column. 
There may be other issues but we haven't run into them yet. Here are 1 or 2 
line patches for each of these issues. Again, my apologies if this is not 
the desired format for these patches and I can happily provide them in udiff 
if anyone wants that. IlohaMail 0.8.14 RC3 on PHP 4.3.4.

-- Gene

folders.php:

  //show default folders (i.e. Inbox, Sent, Trash)
  $unseen_str = "";
  reset ($defaults);
   while (list($key, $value) = each ($defaults)) {
   if (($value!=".")&&(!empty($key))){
    if ($my_prefs["showNumUnread"]){
     $num_unseen = iil_C_CountUnseen($conn, $key);
     if ( $num_unseen > 0 ) $unseen_str = " (".$num_unseen.")";
     else $unseen_str = "";
    }
            // [GG] Show the actual name of the folder rather than the 
friendly name
    echo "<a href=\"main.php?folder=$key&user=".$user."\" 
target=\"list2\">$key</a>";
    echo $unseen_str;
    if ($key==$my_prefs["trash_name"]){
     echo "&nbsp;[<a 
href=\"folders.php?user=".$user."&empty_trash=1\">".$fstr["expunge"]."</a>]";
    }
    echo "<br>";
   }
   }

main.php:

 /* Show folder name, num messages, page selection pop-up */

 if ($headers==false) $headers=array();
 echo "<table width=\"100%\" cellpadding=2 cellspacing=0><tr 
bgcolor=\"".$my_colors["main_head_bg"]."\">\n";
 echo "<td align=left valign=bottom>\n";
      // [GG] Show real folder name instead of friendly folder name
      $disp_folderName = $folder;


main.php:

   /*  show "To" field or "From" field? */
         // [GG] Make sure we handle a dual INBOX/Sent folder as an INBOX 
folder
   if (($folder==$my_prefs["sent_box_name"]) && (strcasecmp("INBOX", 
$folder)!=0)) {
    $showto=true;
    $fromheading=$mainStrings[7];
   }else{
    $fromheading=$mainStrings[8];
   }

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Gene Goykhman, (416) 815-0759 x211
Indigo Technologies Ltd.
Fast, effective time tracking software your people will actually use.
http://www.timetiger.com 




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Ilohamail-devel mailing list
Ilohamail-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ilohamail-devel

Reply via email to