Userman folder sorting

32 posts / 0 new
Last post
#1 Thu, 07/12/2007 - 16:25
ChristianReitz

Userman folder sorting

Standard usermin folder sorting seem to be based on the ID in the directory. If you move something to other folders the sorting might be totally messed up.

Then if you try to sort it by date, it is still sorted by name or something, then date.

I wish I had the option to just sort it by date and nothing else. Or did I miss something? ;)

Thu, 07/12/2007 - 21:24
Joe
Joe's picture

Hey Christian,

There's been some discussion recently on the webmin mailing list about just this sort of thing, though I don't think I fully grasped the implications. I'll ask Jamie to chime in with his thoughts. (I'm having troubles with Usermin date sorting as well...) ;-)

--

Check out the forum guidelines!

Sun, 07/15/2007 - 18:50 (Reply to #2)
ChristianReitz

Hello Jamie,

first view with "built in, then ~/mail, then external" show a confusing list with sorting that does not make any sense to me.

If I click on date sorting, it seems to be somehow sorted, by I can't figure out the sorting schema.

It starts with about 10 entries sorted by date, but not starting with the current date emails. Then some others are shown and then it the current mails are shown, sorted by date...

Confusing... :P

Any ideas, how I could figure out the sorting here?

Sun, 07/15/2007 - 18:55 (Reply to #3)
ChristianReitz

As additional info... horde does the date sorting as it should. I click on the column and it is shown in list, like expected.

Sun, 07/15/2007 - 23:53 (Reply to #4)
ChristianReitz

a) there was no file _*.db, the other 2 files were deleted.
b) after new access and sorting by date the 2 files were re-created, but the sorting in the folder is still the same.

Tue, 07/17/2007 - 09:38 (Reply to #5)
ChristianReitz

Hello Jamie,

the first shown Email has
Wed, 27 Jun 2007 01:39:25 +0200

the real newest Email there would be (is shown approx. in the middle of first page)
Wed, 27 Jun 2007 12:35:59 +0200

the last one shown on the page is this:
Wed, 4 Jul 2007 14:06:02 +0200

Please find included the date column, sorted by date!

Tue, 07/17/2007 - 09:40 (Reply to #6)
ChristianReitz

Hmm, I can not edit my post, because it says "Hacking attempt"...

One more try to post the image:
[img size=116]http://www.virtualmin.com/components/com_fireboard/uploaded/images/hc_05...

Tue, 07/17/2007 - 09:46 (Reply to #7)
Joe
Joe's picture

<div class='quote'>Hmm, I can not edit my post, because it says &quot;Hacking attempt&quot;...</div>

Yes, Firebooard has tons of bugs. I'm working on it.

--

Check out the forum guidelines!

Tue, 07/17/2007 - 23:28 (Reply to #8)
ChristianReitz

Simpleboard, Joomlaboard and now called fireboard was always for only smaller communites... at least from my point of view. I guess I would prefer SMF with a bridge solution or any other of the commonly used free boards to host this forum here ;)

I guess this would be one big mass of work, but then you don't need to bother with bugs of the board, just with the user management...

Wed, 07/18/2007 - 02:05 (Reply to #9)
Joe
Joe's picture

<div class='quote'>I guess this would be one big mass of work, but then you don't need to bother with bugs of the board, just with the user management...</div>

It's quite a bit more dramatic than I expected it to be. I've been playing with SMF for the past week, but it's still a long way from being workable. It has URL problems (I'm not going to inflict standard Joomla URLs on you guys under any circumstances...those things are nasty), and it's also really difficult to convert to the way I'm doing UIDs. Because I know I'll be doing lots of integrations between all of the stuff on the site in the future, I'm forcing UID for all components to match the Joomla ID. This was easy with Flyspray, but not easy at all with SMF. There's also a lot of template problems--clashes between CSS selectors, etc. So it's a big ordeal. There's also all of the extra crap that needs to be hidden--I'm really not fond of forums that gives the impression that everything revolves around the forum software. We've got a whole website here and it's all got to interact nicely. ;-)

I'd really rather fix the problems with Fireboard. It's simpler, and I like simple over almost all things. But there are just so many damned bugs, and the developers don't seem to actually be doing anything. I suspect they're all great web designers but sucky developers and so the website looks awesome but the code just sits there and everyone is afraid to touch it.

Anyway, one way or another we will have nicely working forums soon.

--

Check out the forum guidelines!

Tue, 07/17/2007 - 23:54 (Reply to #10)
ChristianReitz

I just had a look in my /Maildir/cur folder and had an idea.

The mail-files there start with a number in the name, which I would identify as timestamp. There is also the date of the files itself...

Perhaps the sorting is done by the name and therefore the timestamp instead of the real date of the file? And the date is then shown from the file-date`...

The timestamps are all pretty close each to another, the files where created by copying from another imap folder?

What is the real folder with the mail files in it?

Wed, 07/18/2007 - 07:11 (Reply to #11)
Joe
Joe's picture

The 'default' sort order (which you can return to by clicking on Reset Sorting) is done by filename, which really means the date the file was received as that is how Procmail names the files. But if you click on the Date column, sorting is done by the Date: header in the email - which is also the date that appears in the mail list.

--

Check out the forum guidelines!

Wed, 07/18/2007 - 09:37 (Reply to #12)
ChristianReitz

Ok, then the brdiges are not as good as I thought they would be in the meantime,... I was once playing with an phpBoard or something and I ran into prolems all the time regarding the cookies, the logins etc.

So, if there are more problems implementing SMF, then the problems with Fireboard seems to be the better ways.

SimpleBoard in Mambo-times, then JoomlaBoard, was on one state for a long time, therefore the fireboard guys took the board and made at least a few optimizations. So, perhaps it is time for another revoltion making a VirtualBoard from it :P

Wed, 07/18/2007 - 09:45 (Reply to #13)
ChristianReitz

Ah, this is perfect! I was thinking about a new mailbox with some sample emails for you, but if Joe has the same problem...

I'm so curious for the reason,.. please let me know, if you find anything ;)

And Thanks alot for your work in advance

Wed, 07/18/2007 - 10:51 (Reply to #14)
ChristianReitz

Sounds great! Will this be part of the new usermin template which was mentioned by Joe? I'm looking forward to replace Horde because I have really bad performance with it from time to time... :P

Wed, 07/18/2007 - 23:14 (Reply to #15)
Joe
Joe's picture

Nope, the new theme is wholly independent of sorting (for now). But it's back under heavy development and I expect a release in a week or two for both Webmin and Usermin.

--

Check out the forum guidelines!

Thu, 07/19/2007 - 07:49 (Reply to #16)
ChristianReitz

Awesome!!!

How do you manage all the stuff? Is it really only Jamie and you, Joe? Incredible, really...

Sun, 06/07/2009 - 07:13 (Reply to #17)
ChristianReitz

Sorry for saying that, but... you are insane ;)

Webmin, Usermin and Virtualmin is an awesome bit of work and I take my hat off to both of you. Thanks for your time and effort!

Thu, 07/19/2007 - 09:51
Joe
Joe's picture

<div class='quote'>Webmin, Usermin and Virtualmin is an awesome bit of work and I take my hat off to both of you. Thanks for your time and effort!</div>

Can I quote you on that? See those little blurbs in the upper right corner of the page? That could be you! Link action all over Virtualmin.com! Say nice things about Virtualmin, you could be famous! ;-)

--

Check out the forum guidelines!

Thu, 07/19/2007 - 09:56 (Reply to #19)
ChristianReitz

LOL, if you like to,.. but, you know, I am German and English is not my mothertongue, could you please get rid of the errors in spelling before posting there? ;)

Don't want to look like a doofus ;)

Thu, 07/19/2007 - 10:33 (Reply to #20)
Joe
Joe's picture

Hehehe...No problem. Your written English is quite good, though. You shouldn't worry so much. Many Americans have worse grammar and spelling. And have you heard the way kids in America talk these days? It's deeply disappointing Or maybe I'm just getting old. ;-)

--

Check out the forum guidelines!

Thu, 07/19/2007 - 11:18 (Reply to #21)
ChristianReitz

When I have a look at your picture you seem to be not that old... :P

Or is it a old picture with many Photoshop Optimizations? ;)

In this time, if you are interessted in IT stuff and gaming and SAP and internet in general, you have lots of opportunities to learn and improve english. So I guess I learned some things during the last years... at least something...

And you are right, the current way you hear the younger (and sometimes older) people from America talking is sometime very confusing... I have been there 2 times, and the strangest slang I heared was, I guess something from Texas or so... I did not understand a word and he could have talked in Suaheli; it could not be worse :P

Fri, 07/13/2007 - 08:41
ChristianReitz

In my case I moved from a mailbox on another server to the new virtualmin based one. I moved it beeing connected to both the new and the old mailbox via IMAP and just copied it then.

The result is new IDs sorted based on the transfer order, not the received order. If you move then again between folders, it is all messed up.

You only have 3 sort options, built in, built and maildir (or something like that) and by name... just adding an option there to sort by date by default would help alot. But giving options in folder to remove the sorting on the folders would be very nice too.

Christian

Sat, 07/14/2007 - 21:37
Joe
Joe's picture

Sorting by date in Usermin is supported - you just click on the Date column in the email list. The default sort order is based on the Maildir filename, which normally corresponds to the date mail was received .. although if you have been transferring mail between systems, this isn't guaranteed.

Could you tell me more about what goes wrong if you try to sort by Date by clicking on that header?

--

Check out the forum guidelines!

Sun, 06/07/2009 - 07:13
Joe
Joe's picture

This could be a case of Usermin's sort index for the folder being corrupted. To reset it, SSH into the server, cd to the mailbox user's home directory, then run :

rm .usermin/mailbox/_*.{dir,pag,db}

Then try viewing the sorted email list again. I'd be interested to know if this helps..

--

Check out the forum guidelines!

Tue, 07/17/2007 - 09:16
Joe
Joe's picture

If you click on one of the email messages that has the incorrect date order, what does it show in the <b>Date</b> field? I wonder if the cause is an email date format that Usermin can't parse..

--

Check out the forum guidelines!

Tue, 07/17/2007 - 18:46
Joe
Joe's picture

Ok, that is definately wrong .. even though your email date formats look fine, and should be parsed by Usermin.

Joe - have you seen anything like this on any of our systems?

--

Check out the forum guidelines!

Wed, 07/18/2007 - 01:58 (Reply to #27)
Joe
Joe's picture

<div class='quote'>Joe - have you seen anything like this on any of our systems?</div>

Yes. Usermin on Virtualmin.com acts like this for me. It's a nuisance. ;-)

I'm surprised you're not seeing it here...I've seen it on two accounts here.

--

Check out the forum guidelines!

Wed, 07/18/2007 - 02:37 (Reply to #28)
Joe
Joe's picture

Ok .. which accounts did you see it for? Once I can re-produce it and see it in action, I should be able to resolve it.

--

Check out the forum guidelines!

Wed, 07/18/2007 - 02:43 (Reply to #29)
Joe
Joe's picture

<div class='quote'>which accounts did you see it for? Once I can re-produce it and see it in action, I should be able to resolve it.</div>

My &quot;joe&quot; account exhibits the problem. It gets sorting kind of correct (2005 messages are actually at one end while 2007 are at the other...but dates and times are a mess).

--

Check out the forum guidelines!

Wed, 07/18/2007 - 10:16
Joe
Joe's picture

OK, I see it now.. it looks like this happens when the same mailbox is modified by both Usermin and another IMAP client that downloads email.

Tomorrow I'm going to work on a new indexing system for Usermin mail, which should resolve these kinds of issues.

--

Check out the forum guidelines!

Thu, 07/19/2007 - 08:01
Joe
Joe's picture

Yes, it is just the two of us. Joe's been doing some incredible work to manage the site, forums, bug tracker and all the rest. I focus on the actual Virtualmin/Webmin/Usermin coding.

BTW, the re-design of Usermin sorting and indexing is coming along well, and should result in improved speed in large mailboxes, plus much reduced change of index corruption.

--

Check out the forum guidelines!

Topic locked