Paul J Stevens wrote:
Alex,

would you mind putting svn-trunk to the test. I think I've nailed this
sucker. Internal_date values are now initialized by scanning the From_
line. This should make imports from mbox style mailboxes behave as expected.

I haven't had the chance to test it, still importing the first batch of test data and getting some errors, including SQL syntax ones with "dbmail-message.c,_header_cache: insert headervalue failed".

Also loads of:
dbmail-message.c,dbmail_message_cache_referencesfield: reference_decode failed [6590]

dbmail-message.c,dbmail_message_cache_subjectfield: no subject field value [1864]

The last one is a warning and not a problem, right?

I'll narrow the problems down later and report them, but where should I report them. To this list message per problem? strace+gdb backtrace etc is only needed in case of segfaults and the like?

And importing exactly the same data with 2.0.9 with the same mailbox2dbmail commands I didn't get any errors/warnings.

I upgraded mailbox2dbmail too when moving from 2.0.9 to svn HEAD.

However, I was unable to reproduce your problem using SM. Outlook
Express behaved like you specified, but my SM installation does look at
the Date field in the message. I didn't try it on dbmail-2.0 though...

I'm using SM version 1.5.1 be cause I want to run it on PHP5. To make sure it uses internal date at least at some point:
# grep -Ri internal_date squirrelmail-1.5.1/
squirrelmail-1.5.1/include/load_prefs.php:$internal_date_sort = getPref($data_dir, $username, 'internal_date_sort', SMPREF_ON); squirrelmail-1.5.1/include/load_prefs.php: if (isset($internal_date_sort) && $internal_date_sort) { squirrelmail-1.5.1/include/load_prefs.php: if (isset($internal_date_sort) && $internal_date_sort == false) { squirrelmail-1.5.1/include/load_prefs.php:// if (isset($prefs_cache['internal_date_sort'])) { squirrelmail-1.5.1/include/load_prefs.php:// unset($prefs_cache['internal_date_sort']); squirrelmail-1.5.1/include/load_prefs.php:// removePref($data_dir,$username,'internal_date_sort'); squirrelmail-1.5.1/include/load_prefs.php:$internal_date_sort = getPref($data_dir, $username, 'internal_date_sort', SMPREF_ON); squirrelmail-1.5.1/functions/imap_asearch.php: * @global bool internal_date_sort sort by arrival date instead of message date squirrelmail-1.5.1/functions/imap_asearch.php: global $internal_date_sort, $sent_folder; squirrelmail-1.5.1/functions/imap_asearch.php: if ($internal_date_sort == true) squirrelmail-1.5.1/src/search.php: MBX_PREF_INTERNALDATE => (bool) getPref($data_dir, $username, 'internal_date_sort') squirrelmail-1.5.1/src/search.php: $aMailboxPref[MBX_PREF_INTERNALDATE] = (bool) getPref($data_dir, $username, 'internal_date_sort'); squirrelmail-1.5.1/src/right_main.php:$aMailboxPref[MBX_PREF_INTERNALDATE] = (bool) getPref($data_dir, $username, 'internal_date_sort'); squirrelmail-1.5.1/src/options_order.php: if (isset($internal_date_sort) && $internal_date_sort == false) {
[EMAIL PROTECTED] www]# grep -Ri internal_date squirrelmail-1.5.1/ | wc -l
14

I'll reply later to comment on the dates issue, still importing.

Alex

Reply via email to