<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>335086</bug_id>
          
          <creation_ts>2014-05-20 14:17:29 +0000</creation_ts>
          <short_desc>by default mail list in inbox should be sorted descendingly by time</short_desc>
          <delta_ts>2014-06-13 18:42:08 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>trojita</product>
          <component>Desktop GUI</component>
          <version>0.4.1</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://git.reviewboard.kde.org/r/118229/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Bruce Ouyang">bruce.oy</reporter>
          <assigned_to name="Trojita default assignee">trojita-bugs</assigned_to>
          <cc>pali.rohar</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1449879</commentid>
    <comment_count>0</comment_count>
    <who name="Bruce Ouyang">bruce.oy</who>
    <bug_when>2014-05-20 14:17:29 +0000</bug_when>
    <thetext>when i open trojita,  mail list in inbox is sorted ascendingly by time. the very top mail in mail list is the oldest one, if i try to check my newest mails ,i have to scroll down or sort it desendingly.
i&apos;d like it&apos;s sorted descendingly by default.


Reproducible: Always</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1449894</commentid>
    <comment_count>1</comment_count>
    <who name="Jan Kundrát">jkt</who>
    <bug_when>2014-05-20 14:40:15 +0000</bug_when>
    <thetext>There&apos;s an option for that in the menu: View -&gt; Sorting -&gt; Descending. The default sort order of &quot;top to bottom&quot; is not going to change.

By default, Trojita scrolls to the first recent e-mail in a mailbox. What IMAP server do you use (i.e. is it GMail which does not provide \Recent, or something else)? How many messages do you have in that mailbox which you complain about, and how many of them are marked as read and how many are unread? What&apos;s the distribution of them, i.e. are the oldest messages still unread, etc.?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1449912</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ouyang">bruce.oy</who>
    <bug_when>2014-05-20 16:55:59 +0000</bug_when>
    <thetext>i just checked that option, when i opened trojita, this option is descending , and trojita did not scroll to the first recent email in my inbox.
im using gmail. i dont know if gmail provide \Recent
i have 368 messages in my inbox. maybe about 100 messages(not a precise number) are unread, 
the oldest 20 ( at least ) messages are readed
and i found just now, when clicking on the scroll bar and then drapping up or down, it get stuck from time to time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1449915</commentid>
    <comment_count>3</comment_count>
    <who name="Bruce Ouyang">bruce.oy</who>
    <bug_when>2014-05-20 16:59:51 +0000</bug_when>
    <thetext>ps: just when i opened trojita ,i checked the sort order and descending is selected, but the oldest one is on top. after several manual sort(clicking on the date column header), i found the sort order was correct then.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1449927</commentid>
    <comment_count>4</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2014-05-20 18:29:18 +0000</bug_when>
    <thetext>I spot two issues here:
---------------------------------
1. scrolling to last recent/unseen does only work on first open of a mailbox
2. the ascending/descending order is not stored to disk UNLESS you manipulate the layout otherwise (move a splitter a bit)

2. seems trivial to fix, 1. i don&apos;t know (w/o looking up the code ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1449954</commentid>
    <comment_count>5</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2014-05-20 20:58:22 +0000</bug_when>
    <thetext>Patch:
https://git.reviewboard.kde.org/r/118229/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1451663</commentid>
    <comment_count>6</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2014-05-28 12:38:06 +0000</bug_when>
    <thetext>Git commit cab81c4fabbae6e3faf20d1a45d5ef5c23acba38 by Thomas Lübking.
Committed on 28/05/2014 at 12:12.
Pushed by jkt into branch &apos;master&apos;.

Sortorder woes

- triggers the save timer on swapping direction
- preserves scroll offset on swapping direction
- scrolls to unseen/recent (ie. actually top/bottom) when entering a mailbox

REVIEW: 118229

M  +13   -0    src/Gui/Window.cpp
M  +1    -0    src/Gui/Window.h

http://commits.kde.org/trojita/cab81c4fabbae6e3faf20d1a45d5ef5c23acba38</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1455034</commentid>
    <comment_count>7</comment_count>
    <who name="Jan Kundrát">jkt</who>
    <bug_when>2014-06-13 17:47:14 +0000</bug_when>
    <thetext>Seems that I forgot to close this bug.

Bruce, the trojita-nightly package contains a fix for the problem you reported.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1455043</commentid>
    <comment_count>8</comment_count>
    <who name="Pali Rohár">pali.rohar</who>
    <bug_when>2014-06-13 18:09:29 +0000</bug_when>
    <thetext>I do not know, but maybe this my commit from pali-gsoc branch is still relevant: http://quickgit.kde.org/?p=clones/trojita/pali/trojita.git&amp;a=commit&amp;h=cc929a561d0c1a9b3551328e6e9b69640930e37f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1455046</commentid>
    <comment_count>9</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2014-06-13 18:42:08 +0000</bug_when>
    <thetext>should be covered, see cab81c4fabbae6e3faf20d1a45d5ef5c23acba38</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>