LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 01-19-2005, 04:15 AM   #1
syl20
Member
 
Registered: Aug 2003
Posts: 65

Rep: Reputation: 15
maildir format tools


Hi everybody,
I wondered if a tool managing mailbox in maildir format exists.
I installed a new mail server a month ago.
Before, mailbox was in mbox format so it was easy for me to know mailbox size and sort them. But now mailbox are in maildir format and I'm not able to mange mailbox as before.
What's your experience about that?
Thx
Syl20
 
Old 01-19-2005, 04:25 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
What kink of "management" are you trying to achieve?
 
Old 01-19-2005, 04:52 AM   #3
syl20
Member
 
Registered: Aug 2003
Posts: 65

Original Poster
Rep: Reputation: 15
I'd like to know mailbox size of each user.
With mbox format, 'ls-l /var/spool/mail/' allowed me to see the size of every mailbox.
'ls -l /var/spool/mail/ | sort -n -k +6 allowed me to sort them.
But now, I'm no more able to know size of any mailbox, instead of typing ls -l /var/spool/mail/toto/maildir/new and cur for each mailbox.
I can write a script which allow me to do that automatically, redirect in a file, and sort in the file.
But I thought that something exists to help me.

Best regards.
 
Old 01-19-2005, 05:04 AM   #4
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
du -h will display the size of the directory, and all subdirectories.

I believe a ls -lR does as well??... Whatever the recursive flag is, man ls.

Cool
 
Old 01-19-2005, 06:47 AM   #5
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
It seems, that by "sort", you mean "sort by size"... If so:
Code:
du -bs /var/spool/mail/* | sort -n
Yves.
 
Old 01-19-2005, 06:55 AM   #6
syl20
Member
 
Registered: Aug 2003
Posts: 65

Original Poster
Rep: Reputation: 15
Excellent, that's what I wanted.
I didn't know what MasterC give me, but now I know, but I used
'du -bs /var/spool/mail/* | sort -n' that's exactly what I need
Thx Yves and MasterC, have a good day.
Syl20

Last edited by syl20; 01-19-2005 at 06:59 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A script to convert maildir to mailbox format i_s Linux - General 7 12-14-2009 03:20 PM
partitioning/format tools linmix Linux - Software 4 09-28-2005 04:15 PM
cdda ripping tools: what tools are good these days? jgombos Linux - Software 3 01-03-2005 11:09 PM
is there any virtual cd tools like deamon tools on linux ? ixogn Linux - Software 1 02-24-2004 10:19 AM
postfix and maildir format forand Linux - Software 4 05-05-2003 12:21 PM


All times are GMT -5. The time now is 12:00 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration