Fwd: [imp] Patch for drafts and sent folders

Hammad hammad at brisksolutions.com
Sun Dec 15 03:19:43 PST 2002


I added just a little bit of extra code on top of Lachlan patch. If you notice,
email send to mailing list by you will come back in your INBOX folder but will
not display "From" address instead it displays "To" address. To fix that just
use the following code goes at approx line 711 in 'imp/mailbox.php'
       if ($imp['mailbox'] != 'INBOX') {
              $frm = $to;
       }
I don't know how to write patches, so you have to follow what I have.


------------
Before shot:
------------
708:        } else {
709:            $to = _("Undisclosed Recipients");
710:        }
711:            $frm = $to;
712:     }

-----------
After shot:
-----------
708:        } else {
709:            $to = _("Undisclosed Recipients");
710:        }
711:        if ($imp['mailbox'] != 'INBOX') {
712:            $frm = $to;
713:        }
714:    }



--
Hammad





----- Forwarded message from Lachlan Cameron-Smith
<lachlan.cameronsmith@adelaide.edu.au> -----
    Date: Wed, 11 Dec 2002 15:12:20 +1030
    From: Lachlan Cameron-Smith <lachlan.cameronsmith@adelaide.edu.au>
Reply-To: Lachlan Cameron-Smith <lachlan.cameronsmith@adelaide.edu.au>
 Subject: [imp] Patch for drafts and sent folders
      To: imp@lists.horde.org

Hello,

I've coded up a patch against IMP 3.1 which changes the "From" column 
heading in the mailbox view to "To" in the drafts and sent folders, 
removes the leading "To:" to allow searching on the To address, and 
sorts by the To address in the drafts and sent folders if the 
preferences are set to sort on the From address.

The patch is attached, hope you find it useful!

Cheers,

Lachlan Cameron-Smith
Systems Specialist, ITS, Adelaide University

-----------------------------------------------------------
This email message is intended only for the addressee(s)
and contains information which may be confidential and/or
copyright.  If you are not the intended recipient please
do not read, save, forward, disclose, or copy the contents
of this email. If this email has been sent to you in error,
please notify the sender by reply email and delete this
email and any copies or links to this email completely and
immediately from your system.  No representation is made
that this email is free of viruses.  Virus scanning is
recommended and is the responsibility of the recipient.


----- End forwarded message -----

-------------- next part --------------
z'µìmjÛZržžÜ²Ç+¹¶ÞtÖ¦z–­rò¥æ©¦XœjبŸücjö¯™(³{Ž{é¼­zÀÞ±É赫ڊV›•å+–m§ÿåŠËl†ŠÝzŠàýªÜ†+Þ³ø¦§ö­µ§!™éí³ý´ÓmvןÛßy÷o¥«\…¸§


More information about the imp mailing list