6.0.0-beta1
9/6/25

[#2596] Empty inbox when any IMP preferences are saved in the MySQL backend
Summary Empty inbox when any IMP preferences are saved in the MySQL backend
Queue IMP
Queue Version 4.0.3
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester krustev (at) krustev (dot) net
Created 09/13/2005 (7298 days ago)
Due
Updated 10/06/2005 (7275 days ago)
Assigned 09/13/2005 (7298 days ago)
Resolved 10/02/2005 (7279 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/06/2005 07:53:39 PM krustev (at) krustev (dot) net Comment #10 Reply to this comment


It turned out I was correct the problem was in my code. The 
require_once invocations needed to be just require's.



P.S. Have I said that all your horde stuff rocks ?

Thanks for your time, and keep up the great work.
10/03/2005 04:14:36 PM krustev (at) krustev (dot) net Comment #9 Reply to this comment
No feedback.
I could not find some free time to debug it. However I've enabled the 
debugging  and it seems the problem is in my dynamic include code, not 
in IMP. I'll post again when I resolve it.



Thanks for your feedback.
10/02/2005 01:38:36 PM Chuck Hagenbuch Comment #8
State ⇒ Not A Bug
Reply to this comment
No feedback.
09/17/2005 08:18:31 AM Jan Schneider Comment #7 Reply to this comment
Is the mailbox list empty in the sense that it doesn't show the 
messages that should be there, or is the generated HTML page 
incomplete (check the page source)?

Also check your web server and php log files.
09/13/2005 05:26:28 PM krustev (at) krustev (dot) net Comment #6 Reply to this comment
I'm also using this approach to allow my users to override any of the 
configuration options:



*****************************

# cat /etc/horde/horde3/prefs.php

<?php



$uid = posix_getuid();

$uinfo = posix_getpwuid($uid);



if (is_readable($uinfo['dir'] . '/.config/etc/horde/horde3/prefs.php')) {

     require_once $uinfo['dir'] . '/.config/etc/horde/horde3/prefs.php';

} else {

     require_once '/etc/horde/horde3/prefs.default.php';

}

*****************************

The diffs I've pasted is from this prefs.default.php

I also use this for several other horde's/imp's config files.
09/13/2005 05:21:15 PM krustev (at) krustev (dot) net Comment #5 Reply to this comment
--- horde-prefs.php.dist        Tue Sep 13 20:16:01 2005

+++ horde-prefs.php     Tue Sep 13 20:16:01 2005

@@ -420,7 +420,7 @@



  // what application should we go to after login?

  $_prefs['initial_application'] = array(

-    'value' => 'horde',

+    'value' => 'imp',

      'locked' => false,

      'shared' => true,

      'type' => 'select',



*********************************



--- imp-prefs.php.dist  Tue Sep 13 20:16:02 2005

+++ imp-prefs.php       Tue Sep 13 20:16:02 2005

@@ -6,7 +6,7 @@

   */



  // Make sure that constants are defined.

-@define('IMP_BASE', dirname(__FILE__) . '/..');

+@define('IMP_BASE', '/usr/share/horde3/imp');

  require_once IMP_BASE . '/lib/IMP.php';



  $prefGroups['identities'] = array(

@@ -268,7 +268,7 @@

  $_prefs['trash_folder'] = array(

  // for Exchange, uncomment the entry below and remove the default value entry

  //    'value' => 'Deleted Items',

-    'value' => 'trash',

+    'value' => 'Trash',

      'locked' => false,

      'shared' => false,

      'type' => 'implicit');

@@ -422,7 +422,7 @@



  // compose in a separate window?

  $_prefs['compose_popup'] = array(

-    'value' => 1,

+    'value' => 0,

      'locked' => false,

      'shared' => false,

      'type' => 'checkbox',

@@ -717,7 +717,7 @@

  // them as deleted?

  // a value of 0 = no, 1 = yes

  $_prefs['use_trash'] = array(

-    'value' => 0,

+    'value' => 1,

      'locked' => false,

      'shared' => false,

      'type' => 'checkbox',

@@ -867,7 +867,7 @@



  // which page to start on when opening mailbox

  $_prefs['mailbox_start'] = array(

-    'value' => IMP_MAILBOXSTART_FIRSTUNSEEN,

+    'value' => IMP_MAILBOXSTART_FIRSTPAGE,

      'locked' => false,

      'shared' => false,

      'type' => 'enum',

@@ -881,7 +881,7 @@

  // user preferred sorting column

  $_prefs['sortby'] = array(

      'value' => SORTARRIVAL,

-    'locked' => false,

+    'locked' => true,

      'shared' => false,

      'type' => 'enum',

      'enum' => array(SORTARRIVAL => _("Arrival Time"),

@@ -895,8 +895,8 @@



  // user preferred sorting direction

  $_prefs['sortdir'] = array(

-    'value' => 0,

-    'locked' => false,

+    'value' => 1,

+    'locked' => true,

      'shared' => false,

      'type' => 'enum',

      'enum' => array(0 => _("Ascending"),

@@ -941,8 +941,8 @@



  // expand folder tree by default

  $_prefs['nav_expanded'] = array(

-    'value' => 0,

-    'locked' => false,

+    'value' => 1,

+    'locked' => true,

      'shared' => false,

      'type' => 'enum',

      'enum' => array(0 => _("No"),

@@ -953,7 +953,7 @@

  // list of folders to expand by default

  $_prefs['expanded_folders'] = array(

      'value' => 'a:0:{}',

-    'locked' => false,

+    'locked' => true,

      'shared' => false,

      'type' => 'implicit');



*****************



Several of the differences in IMP's prefs.php are because I've tried 
disabling saving of some options, just to see if any of them was 
causing the problem.
09/13/2005 04:10:56 PM Jan Schneider Comment #4 Reply to this comment
Try both. Start with a fresh copy from the original prefs.php.dist files.
09/13/2005 04:07:05 PM krustev (at) krustev (dot) net Comment #3 Reply to this comment
Horde's or IMP's ?

Any ideas which option might be causing this ?
09/13/2005 03:59:17 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Your prefs.php configuration file is probably broken.
09/13/2005 03:36:47 PM krustev (at) krustev (dot) net Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Empty inbox when any IMP preferences are saved in the MySQL backend
Queue ⇒ IMP
State ⇒ Unconfirmed
Reply to this comment


   Hi,



As the subjects says, the messages in the inbox folder are not showing when

I save any IMP preferences in the MySQL backend. The compose text area in

the compose page also becomes corrupted(too small in width).



I'm using the official debian packages for IMP 4.0.3 and Horde 3.0.4 .



These are the configs I'm using:



Horde's conf.php:



<?php

/* CONFIG START. DO NOT CHANGE ANYTHING IN OR AFTER THIS LINE. */

// $Horde: horde/config/conf.xml,v 1.74.2.5 2005/03/22 11:40:14 jan Exp $

$conf['debug_level'] = E_ERROR;

$conf['max_exec_time'] = 5;

$conf['use_ssl'] = 2;

$conf['server']['name'] = $_SERVER['SERVER_NAME'];

$conf['server']['port'] = $_SERVER['SERVER_PORT'];

$conf['compress_pages'] = false;

$conf['umask'] = 077;

$conf['session']['name'] = 'Horde';

$conf['session']['cache_limiter'] = 'nocache';

$conf['session']['timeout'] = 0;

$conf['cookie']['domain'] = $_SERVER['SERVER_NAME'];

$conf['cookie']['path'] = '/horde3';

$conf['sql']['persistent'] = false;

$conf['sql']['hostspec'] = 'localhost';

$conf['sql']['username'] = 'horde';

$conf['sql']['password'] = '**********';

$conf['sql']['database'] = 'horde';

$conf['sql']['charset'] = 'UTF-8';

$conf['sql']['phptype'] = 'mysql';

$conf['auth']['admins'] = array('Administrator');

$conf['auth']['checkip'] = true;

$conf['auth']['params']['app'] = 'imp';

$conf['auth']['driver'] = 'application';

$conf['signup']['allow'] = false;

$conf['signup']['approve'] = true;

$conf['signup']['preprocess'] = false;

$conf['signup']['queue'] = false;

$conf['log']['enabled'] = false;

$conf['log_accesskeys'] = false;

$conf['prefs']['params']['driverconfig'] = 'horde';

$conf['prefs']['driver'] = 'sql';

$conf['datatree']['params']['driverconfig'] = 'horde';

$conf['datatree']['driver'] = 'sql';

$conf['group']['driver'] = 'datatree';

$conf['cache']['default_lifetime'] = 1800;

$conf['cache']['params']['dir'] = Horde::getTempDir();

$conf['cache']['driver'] = 'file';

$conf['token']['driver'] = 'none';

$conf['mailer']['params']['sendmail_path'] = '/usr/lib/sendmail';

$conf['mailer']['params']['sendmail_args'] = '-oi';

$conf['mailer']['type'] = 'sendmail';

$conf['vfs']['params']['vfsroot'] = Horde::getTempDir();

$conf['vfs']['type'] = 'file';

$conf['sessionhandler']['type'] = 'none';

$conf['geoip']['datafile'] = '/usr/share/GeoIP/GeoIP.dat';

$conf['problems']['email'] = 'support@itahost.com';

$conf['menu']['always'] = false;

$conf['menu']['links']['help'] = 'all';

$conf['menu']['links']['options'] = 'authenticated';

$conf['menu']['links']['problem'] = 'all';

$conf['menu']['links']['login'] = 'all';

$conf['menu']['links']['logout'] = 'authenticated';

$conf['hooks']['username'] = false;

$conf['hooks']['preauthenticate'] = false;

$conf['hooks']['postauthenticate'] = false;

$conf['hooks']['authldap'] = false;

$conf['kolab']['enabled'] = false;

/* CONFIG END. DO NOT CHANGE ANYTHING IN OR BEFORE THIS LINE. */



IMP's conf.php:



<?php

/* CONFIG START. DO NOT CHANGE ANYTHING IN OR AFTER THIS LINE. */

// $Horde: imp/config/conf.xml,v 1.53 2004/12/09 15:33:27 slusarz Exp $

$conf['utils']['spellchecker'] = '/usr/bin/ispell';

$conf['utils']['gnupg'] = '/usr/bin/gpg';

$conf['utils']['gnupg_keyserver'] = array('wwwkeys.pgp.net', 
'www.keyserver.net', 'pgp.mit.edu');

$conf['utils']['gnupg_timeout'] = '10';

$conf['utils']['openssl_binary'] = '/usr/bin/openssl';

$conf['menu']['apps'] = array();

$conf['user']['allow_folders'] = true;

$conf['user']['allow_view_source'] = true;

$conf['user']['allow_resume_all'] = true;

$conf['user']['allow_resume_all_in_drafts'] = false;

$conf['user']['alternate_login'] = false;

$conf['user']['redirect_on_logout'] = false;

$conf['user']['select_sentmail_folder'] = true;

$conf['server']['server_list'] = 'none';

$conf['server']['change_server'] = false;

$conf['server']['change_port'] = false;

$conf['server']['change_protocol'] = false;

$conf['server']['change_folders'] = false;

$conf['server']['sort_limit'] = '0';

$conf['server']['cache_folders'] = true;

$conf['mailbox']['show_attachments'] = false;

$conf['mailbox']['show_preview'] = false;

$conf['mailbox']['show_xpriority'] = false;

$conf['fetchmail']['show_account_colors'] = false;

$conf['fetchmail']['size_limit'] = '0';

$conf['msgsettings']['filtering']['words'] = './config/filter.txt';

$conf['msgsettings']['filtering']['replacement'] = '****';

$conf['spam']['reporting'] = false;

$conf['notspam']['reporting'] = false;

$conf['msg']['prepend_header'] = false;

$conf['msg']['append_trailer'] = false;

$conf['compose']['use_vfs'] = false;

$conf['compose']['allow_cc'] = true;

$conf['compose']['allow_bcc'] = true;

$conf['compose']['allow_receipts'] = true;

$conf['compose']['special_characters'] = false;

$conf['compose']['link_attachments'] = false;

$conf['compose']['add_maildomain_to_unexpandable'] = false;

$conf['compose']['attach_size_limit'] = '0';

$conf['compose']['attach_count_limit'] = '0';

$conf['hooks']['vinfo'] = false;

$conf['hooks']['signature'] = false;

$conf['hooks']['trailer'] = false;

$conf['hooks']['fetchmail_filter'] = false;

$conf['hooks']['mbox_redirect'] = false;

$conf['hooks']['mbox_icon'] = false;

$conf['hooks']['spam_bounce'] = false;

$conf['maillog']['use_maillog'] = true;

$conf['tasklist']['use_tasklist'] = false;

/* CONFIG END. DO NOT CHANGE ANYTHING IN OR BEFORE THIS LINE. */



I'm not pasting the other config files since this email will become too

long. If it's necessary please say so. I might also provide a test account,

change any config settings, or provide information about the stored 
preferences.

Saved Queries