6.0.0-beta1
7/4/25

[#3759] Show/Hide/Purge links missing
Summary Show/Hide/Purge links missing
Queue IMP
Queue Version 4.1
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester tuomas.silen (at) nodeta (dot) fi
Created 04/11/2006 (7024 days ago)
Due
Updated 04/21/2006 (7014 days ago)
Assigned 04/15/2006 (7020 days ago)
Resolved 04/15/2006 (7020 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/21/2006 06:20:02 PM pvantony (at) singnet (dot) com (dot) sg Comment #14 Reply to this comment
I just figured out why it wasn't working for me.  When I upgraded to
horde 3.1.1/IMP 4.1.1, I had copied the new files over my old ones
and went into the admin to regenerate the config files BUT I stupidly
forgot that certain other files (prefs.php) aren't affected by the
config in the admin.  Once I copied the new .dist files over the old
ones, that fixed the issue and I didn't have to patch anything.
This is great. I did as you said, copied the prefs.php.dist to 
prefs.php, and all works great now. I did not have to patch anything.



It really helped me. Thank you very much.



Next time I will have to check the prefs.php.dist. Sorry for all the trouble.



P.V.Anthony




04/21/2006 02:43:22 PM doug (at) world-mail (dot) org Comment #13 Reply to this comment

[Show Quoted Text - 13 lines]
I just figured out why it wasn't working for me.  When I upgraded to 
horde 3.1.1/IMP 4.1.1, I had copied the new files over my old ones and 
went into the admin to regenerate the config files BUT I stupidly 
forgot that certain other files (prefs.php) aren't affected by the 
config in the admin.  Once I copied the new .dist files over the old 
ones, that fixed the issue and I didn't have to patch anything.



Hope that helps somebody.
04/20/2006 07:06:24 AM pvantony (at) singnet (dot) com (dot) sg Comment #12 Reply to this comment
But it is *not* a correct patch.  It definitely will not be committed.
I understand and respect that.
The patch listed below applied to IMP 4.1.2 fixes the behavior.  If
it doesn't on your system, you need to manually remove all vinbox_id
entries from your preferences backend.
I want to follow the official patches. Please let me know which is the 
new patch and where to get it from. Will the patch work with 4.1.1?



I am using mysql for my preferences. I have looked in the horde_prefs 
table but could not find vinbox_id. Please let me know where to look 
so that I can delete the entries manually.



Thank you in advance
04/20/2006 04:00:15 AM Michael Slusarz Comment #11 Reply to this comment
I can also confirm that applying the Tuomas Silen patch to Search.php
v1.37.10.30, the Show/Hide/Purge Deleted links come back.
But it is *not* a correct patch.  It definitely will not be committed.



The patch listed below applied to IMP 4.1.2 fixes the behavior.  If it 
doesn't on your system, you need to manually remove all vinbox_id 
entries from your preferences backend.
04/20/2006 03:31:29 AM dorm (at) dorm (dot) org Comment #10 Reply to this comment
I can also confirm that applying the Tuomas Silen patch to Search.php 
v1.37.10.30, the Show/Hide/Purge Deleted links come back.
04/19/2006 12:06:37 PM pvantony (at) singnet (dot) com (dot) sg Comment #9 Reply to this comment
I did try this patch but it did not work for me.



After adding the patch your mentioned then I added the patch by Tuomas 
Silen, then it worked well.
04/19/2006 11:19:28 AM manuel (at) jimm (dot) org Comment #8 Reply to this comment
I got this error after upgrading to IMP 4.1.1. After applying the 
following patch the error is gone.



http://cvs.horde.org/diff.php/imp/lib/Search.php?r1=1.37.10.28&r2=1.37.10.29&ty=u
04/18/2006 02:44:36 PM pvantony (at) singnet (dot) com (dot) sg Comment #7 Reply to this comment
I got this patch from Tuomas Silen and it works great now.



Tuomas Silen changed the function isVINBOXFolder() in imp/lib/Search.php from



      function isVINBOXFolder($id = null)

      {

          $id = (is_null($id)) ? $this->_id : $this->_strip($id);

          return ($id == $GLOBALS['prefs']->getValue('vinbox_id'));

      }



to



      function isVINBOXFolder($id = null)

      {

          $id = (is_null($id)) ? $this->_id : $this->_strip($id);

          $vinbox_id = $GLOBALS['prefs']->getValue('vinbox_id');

          if (is_null($id) && empty($vinbox_id))

                 return false;

          return ($id == $vinbox_id);

      }




04/18/2006 02:45:51 AM pvantony (at) singnet (dot) com (dot) sg Comment #6 Reply to this comment
I have tried the patch mentioned below but unfortunately the problem remains.



Is there anything else I can try?



P.V.Anthony
04/15/2006 05:53:30 PM Michael Slusarz Comment #5 Reply to this comment
Looking at this a bit more, this patch may also help:

http://lists.horde.org/archives/cvs/Week-of-Mon-20060410/056644.html

You will need to logout/login for the changes to mainfest themselves.
04/15/2006 05:45:25 PM Michael Slusarz Comment #4
State ⇒ Resolved
Reply to this comment
Actually, looking at this again, this is the only way the purge links 
will not show up (from the comment below):



This is because in isVINBOXFolder() (in lib/Search.php) $this->_id is 
null, because no searches are made and also

$GLOBALS['prefs']->getValue('vinbox_id') is empty.

(null == "") is true so this function returns true even for normal mailboxes.



As mentioned, this issue was already fixed in IMP 4.1.1.  vinbox_id 
was being set to the null value incorrectly.  This should no longer be 
happening.
04/15/2006 05:34:57 PM Michael Slusarz Assigned to Michael Slusarz
State ⇒ Assigned
 
04/14/2006 07:18:10 AM pvantony (at) singnet (dot) com (dot) sg Comment #3 Reply to this comment
This was already fixed in IMP 4.1.1 when we fixed the duplicate
Virtual INBOX problem.
I too am having the same problem after I have patched from 4.1 to 4.1.1.



On 4.1, I could at least see the "purge deleted" link.


04/13/2006 04:36:56 AM Michael Slusarz Comment #2
State ⇒ Not A Bug
Reply to this comment
This was already fixed in IMP 4.1.1 when we fixed the duplicate 
Virtual INBOX problem.
04/11/2006 12:29:08 PM tuomas (dot) silen (at) nodeta (dot) fi Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Show/Hide/Purge links missing
Queue ⇒ IMP
State ⇒ Unconfirmed
Reply to this comment
Right after logging in there are no show/hide deleted links even if you

have emails marked as deleted in your INBOX, if you had hide deleted 
enabled before upgrading to 4.x you don't have any links at all to 
show or purge the deleted messages.

(No threaded view, use_trash or use_vtrash are enabled).



This would seem to be because showDeleteLinks() (in lib/Mailbox.php) 
checks if $GLOBALS['imp_search']->isVINBOXFolder() returns false, but 
it never does at this point.



This is because in isVINBOXFolder() (in lib/Search.php) $this->_id is 
null, because no searches are made and also

$GLOBALS['prefs']->getValue('vinbox_id') is empty.

(null == "") is true so this function returns true even for normal mailboxes.



Because _showdelete won't be set if hide deleted is used, no links at 
all to either show deleted or purge deleted are shown. If no hide 
deleted was enabled then only purge deleted link is shown.



In the newest CVS whole showDeletedLinks is removed, but there is no 
corresponding change to mailbox.php yet to accommondate this. So the 
problem with the links will probably be solved. The problem with 
isVINBOXFolder() might, however, affect some other places too.



If I go to search page and just search for all emails in INBOX, then 
the links are shown as $this->_id won't be null.

Saved Queries