Menu

#291 To and From column switched in INBOX

open
nobody
None
5
2003-05-02
2003-05-02
No

The nice functionality of seing the TO-field in mailboxes
with outgoing mails, was mistaking my INBOX for such
an outgoing mailbox. The TO-field was shown instead
FROM-field.
In the functions/imap_mailboxes.php

Replace the following functions

function isSentMailbox($box) {
global $sent_folder, $move_to_sent;
return $move_to_sent && $sent_folder &&
( $box == $sent_folder || isBoxBelow($box,
$sent_folder) ) && (strtolower($box) != 'inbox') ;
}

function isDraftMailbox($box) {
global $draft_folder, $save_as_draft;
return $save_as_draft &&
( $box == $draft_folder || isBoxBelow($box,
$draft_folder) ) && (strtolower($box) != 'inbox');
}

/Frans

Discussion

  • Erin Schnabel

    Erin Schnabel - 2003-05-02

    Logged In: YES
    user_id=644252

    replace the functions with what...

     
  • Erin Schnabel

    Erin Schnabel - 2003-05-02
    • status: open --> pending
     
  • Frans la Cour

    Frans la Cour - 2003-05-02

    Logged In: YES
    user_id=257630

    With the listed. I've added :
    && (strtolower($box) != 'inbox') to the end of each function.

    Sorry it was unclear.

     
  • Frans la Cour

    Frans la Cour - 2003-05-02
    • status: pending --> open
     
  • Thijs Kinkhorst

    Thijs Kinkhorst - 2005-04-05

    Logged In: YES
    user_id=285765

    I guess something else is wrong then, since $box ==
    $sent_folder cannot be true for INBOX, can it? So it would
    return false. Or are there valid situations where
    $sent_folder == INBOX ?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.