#2746 Prev/Next in message view do not work when message list is b

open
nobody
5
2011-01-21
2011-01-09
Rolf Eike Beer
No

Using a folder with more than 50 mails (where I break my message list) has a
problem when I try to navigate through the message. If I open the first
message before or after such a break in the folder view I can't cross that
boundary in the message view using prev/next links. I have to go back to the
folder view, change the page and go back to the message view again.

Version is 1.4.21

Discussion

  • You were referred to the mailing list posting guidelines not because you should file a bug report, but because you didn't read the guidelines and provide any of the information they ask for.

     
    • status: open --> pending
     
  • Stefan Sels
    Stefan Sels
    2011-01-12

    can you gove some more information? usied OS on server and client site, IMAP server?

     
  • Rolf Eike Beer
    Rolf Eike Beer
    2011-01-12

    Server is Gentoo Linux x86 running courier 4.5.0, client is openSUSE Linux running KDE. Happens both with Firefox 3.6.13 and Konqueror 4.6rc1.

     
  • Please provide a more accurate problem description. What does "can't cross that boundary" mean exactly? Please give a step-by-step picture of what happens, what things look like, what the HTML source is, etc. etc.

     
  • Rolf Eike Beer
    Rolf Eike Beer
    2011-01-20

    I can't cross the "50th message" boundary, i.e. I can't go from the 51th to the 50th message by using "Previous". This is the HTML from the message view header:

    (Please note that I'm using the German localisation.)

    <table width="100%" cellpadding="3" cellspacing="0" align="center" border="0" bgcolor="#ababab"><tr><td align="left" width="33%">
    <small><a href="/src/right_main.php?sort=6&amp;startMessage=51&amp;mailbox=INBOX.Kernel.linux-scsi">Nachrichtenliste</a>&nbsp;|&nbsp;<a href="/src/right_main.php?unread_passed_id=46331&amp;sort=6&amp;startMessage=51&amp;mailbox=INBOX.Kernel.linux-scsi">ungelesen</a>&nbsp;|&nbsp;<a href="/src/delete_message.php?mailbox=INBOX.Kernel.linux-scsi&amp;message=46331&amp;smtoken=DMKgGl5D3Vyj&amp;sort=6&amp;startMessage=51">Löschen</a></small></td><td align="center" width="33%"><small>Vorherige&nbsp;|&nbsp;<a href="/src/read_body.php?passed_id=46330&amp;mailbox=INBOX.Kernel.linux-scsi&amp;sort=6&amp;startMessage=51&amp;show_more=0">Nächste</a></small></td>

     
  • Rolf Eike Beer
    Rolf Eike Beer
    2011-01-20

    • status: pending --> open
     
  • As I already said, "can't cross" is practically meaningless. How can we understand what that means? You have to describe the problem in excruciating detail: every mouse click and every result. Please switch to English language before grabbing HTML snippets, so it's easier for us to understand. As I stated earlier, you can also take this to our public mailing list - the problem with your original post was that it lacked any useful details. Thank you.

     
  • As I already said, "can't cross" is practically meaningless. How can we understand what that means? You have to describe the problem in excruciating detail: every mouse click and every result. Please switch to English language before grabbing HTML snippets, so it's easier for us to understand. As I stated earlier, you can also take this to our public mailing list - the problem with your original post was that it lacked any useful details. Thank you.

     
    • status: open --> pending
     
  • Rolf Eike Beer
    Rolf Eike Beer
    2011-01-21

    • status: pending --> open
     
  • Rolf Eike Beer
    Rolf Eike Beer
    2011-01-21

    I repeat it once again: I can't go from the 51th to the 50th message by using "Previous". Neither can I go from the 50th to the 51th using "Next" link.

    There isn't anything interesting on the HTML at all. The "Previous" (Vorherige in German) just isn't a link. "Next" (Nächste) is.

     
  • Thanks for the clarification. You didn't in fact explain until just now that "can't go" means that "Previous" or "Next" is shown as a non-link.

    Does a link called "Thread View" appear on the page? What about "Unthread View"? What do the icons look like next to each of the column headers? Please change them so there is no sorting active and verify the problem still happens.

    What is $allow_server_sort set to in your configuration file? What about $allow_thread_sort? How did you configure your IMAP server? Please explain *exactly* how you configured the IMAP settings.

    You can put the following line in the findNextMessage() function in src/read_body.php around line 43, but this may be too much information right now, and BEWARE that it may contain private information that you should censor.

    sm_print_r('MSORT', $msort, 'MSGS', $msgs, 'SORT', $sort, 'THREAD SORT MESSAGES', $thread_sort_messages, 'SERVER SORT ARRAY', $server_sort_array);

     
  • Rolf Eike Beer
    Rolf Eike Beer
    2011-01-26

    # grep -i -e imap -e sort config.php
    $imapServerAddress = 'mail.sf-mail.de';
    $imapPort = 143;
    $imap_server_type = 'courier';
    $allow_thread_sort = false;
    $allow_server_sort = false;
    $imap_auth_mech = 'login';
    $use_imap_tls = false;

    I set these values using the configure script. Server is a courier-imap 4.5.0.

    I'll attach the output of that log message. No problem with the privacy, the standard folders where I run into this issue are public mailing list anyway.

     
  • Rolf Eike Beer
    Rolf Eike Beer
    2011-01-26

    Output of debug message

     
    Attachments
  • Rolf Eike Beer
    Rolf Eike Beer
    2011-01-26

    Just a note: there is no sorting in the message list (i.e. all icons show the grey box) and it has always been this way.

     
  • Rolf Eike Beer
    Rolf Eike Beer
    2012-11-19

    This is somehow related to a sorting option or anything like that. I've played around with many options (unrelated to this bug) and suddenly it started working. I think I'm basically back at the same configuration than before, so this could be a "fresh user account" thing.

     
  • As we're currently running into the same problem I'll try to give more insight:

    Problem description:
    When you reach the first/last Mail of the current page of the last list view you where on, the back/forward link is disabled if there was no sorting applied to the list.

    Steps to reproduce:
    1. Open squirrelmail and browse to a folder which has enough mails for the list to spread over 3+ pages (default 15 mails per page 31+ Mails)
    2. Make sure no sorting is applied.
    2. Go to page 2 --> Mails 16-30 are displayed
    3. Click on mail #17 --> The mail content is displayed
    4. Click on the "previous" button --> Mail #16 is displayed
    Notice that the "previous" link is now disabled

    Actual behaviour:
    The "previous" link is disabled (= not a link).

    Expected behaviour:
    The "previous" link should be a link to mail #15.

    Reproducibilty:
    Always, if the list is not sorted.

    I hope this helps you clarify the problem.

    If you need more info drop me a line please.

     
  • PS:
    My users settings file:
    ---SNIP---
    show_html_default=0
    javascript_on=1
    hililist=a:0:{}
    security_tokens=/* stripped off */
    move_to_trash=1
    trash_folder=Trash
    save_as_draft=1
    move_to_sent=1
    hour_format=1
    draft_folder=Drafts
    sent_folder=Sent
    chosen_theme=../themes/default_theme.php
    sb_move_after_report_spam=0
    sb_move_after_report_not_spam=0
    sent_conf_enable=0
    sent_conf_incl_recip=1
    sent_conf_show_only_first_recip_addr=1
    sent_conf_include_cc=0
    sent_conf_include_bcc=0
    sent_conf_show_headers=0
    sent_conf_enable_orig_msg_options=1
    sort=0
    ---SNAP---

    config.php
    ---SNIP---
    <?php

    /**
    * SquirrelMail Configuration File
    * Created using the configure script, conf.pl
    */

    global $version;
    $config_version = '1.4.0';
    $config_use_color = 1;

    $org_name = "Fachschaft Technische Physik";
    $org_logo = SM_PATH . 'images/poepi.png';
    $org_logo_width = '220';
    $org_logo_height = '300';
    $org_title = "SquirrelMail $version";
    $signout_page = '';
    $frame_top = '_top';

    $provider_uri = 'http://squirrelmail.org/';

    $provider_name = 'SquirrelMail';

    $motd = "";

    $squirrelmail_default_language = 'en_US';
    $default_charset = 'iso-8859-1';
    $lossy_encoding = false;

    $domain = 'fstph.at';
    $imapServerAddress = 'mail';
    $imapPort = 993;
    $useSendmail = false;
    $smtpServerAddress = 'mail';
    $smtpPort = 465;
    $sendmail_path = '/usr/sbin/sendmail';
    $sendmail_args = '-i -t';
    $pop_before_smtp = false;
    $pop_before_smtp_host = '';
    $imap_server_type = 'dovecot';
    $invert_time = false;
    $optional_delimiter = 'detect';
    $encode_header_key = '';

    $default_folder_prefix = '';
    $trash_folder = 'INBOX/Trash';
    $sent_folder = 'INBOX/Sent';
    $draft_folder = 'INBOX/Drafts';
    $default_move_to_trash = true;
    $default_move_to_sent = true;
    $default_save_as_draft = true;
    $show_prefix_option = false;
    $list_special_folders_first = true;
    $use_special_folder_color = true;
    $auto_expunge = true;
    $default_sub_of_inbox = true;
    $show_contain_subfolders_option = false;
    $default_unseen_notify = 2;
    $default_unseen_type = 1;
    $auto_create_special = false;
    $delete_folder = false;
    $noselect_fix_enable = false;

    $data_dir = '/var/lib/squirrelmail/data/';
    $attachment_dir = '/var/spool/squirrelmail/attach/';
    $dir_hash_level = 0;
    $default_left_size = '150';
    $force_username_lowercase = false;
    $default_use_priority = true;
    $hide_sm_attributions = false;
    $default_use_mdn = true;
    $edit_identity = true;
    $edit_name = true;
    $hide_auth_header = false;
    $allow_thread_sort = false;
    $allow_server_sort = false;
    $allow_charset_search = true;
    $uid_support = true;

    $plugins[0] = 'view_as_html';
    $plugins[1] = 'squirrel_logger';
    $plugins[2] = 'quicksave';
    $plugins[3] = 'sent_confirmation';
    $plugins[4] = 'spam_buttons';

    $theme_css = '';
    $theme_default = 37;
    $theme[0]['PATH'] = SM_PATH . 'themes/default_theme.php';
    $theme[0]['NAME'] = 'Default';
    /* I stripped the other themes */

    $default_use_javascript_addr_book = false;
    $abook_global_file = '';
    $abook_global_file_writeable = false;
    $abook_global_file_listing = true;
    $abook_file_line_length = 2048;

    $addrbook_dsn = '';
    $addrbook_table = 'address';

    $prefs_dsn = '';
    $prefs_table = 'userprefs';
    $prefs_user_field = 'user';
    $prefs_key_field = 'prefkey';
    $prefs_val_field = 'prefval';
    $addrbook_global_dsn = '';
    $addrbook_global_table = 'global_abook';
    $addrbook_global_writeable = false;
    $addrbook_global_listing = false;

    $no_list_for_subscribe = false;
    $smtp_auth_mech = 'plain';
    $imap_auth_mech = 'login';
    $smtp_sitewide_user = '';
    $smtp_sitewide_pass = '';
    $use_imap_tls = true;
    $use_smtp_tls = true;
    $session_name = 'SQMSESSID';
    $only_secure_cookies = true;
    $disable_security_tokens = false;
    $check_referrer = '';

    $config_location_base = '';

    @include SM_PATH . 'config/config_local.php';
    ---SNAP---

    config_local.php is empty.