LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-08-2006, 03:13 AM   #1
adt
LQ Newbie
 
Registered: Mar 2006
Location: UK
Distribution: Madriva, Fedora
Posts: 3

Rep: Reputation: 0
Mail File Size


Guys,

I have a user with a very large mail file (126 MB) which contains some 300 odd e-mails. Unfortuantly this needs to be downloaded over a satellite link. This is very slow and the user is unable to download any mail at all. I don't believe the file to be corrupt as I can look at the mail using the mail command.

Is there a convienent way that I can seperate out the file into mutilple files of say 25 or 50 messages and allow the user to download his mail gradually.

Can I do this with the mail command? I need to specify a range of say 25 or 50 messages. I can create temporary accounts for each batch of messages.

Is there a convienent way I can do this? Has anyone encountered such a problem in the past.

You're assistance is greatly appreciated, sorry kinda new to Linux.

Thanks,

Andy
 
Old 03-08-2006, 06:44 AM   #2
pcweirdo
Member
 
Registered: Oct 2004
Location: Melbourne-ish, Australia
Distribution: Gentoo, Windows XP Pro
Posts: 58

Rep: Reputation: 15
Hi there,

I don't know much about the nature of these files, be they text or binary, however something to keep in mind is simply arbitrarily cutting up the file into 10mb chunks (or whatever size the user needs so they can download it). Also, if you provide the file over an ftp server, they can use a client that can "resume" downloads, allowing them to tackle the file in smaller sessions.

I hope someone else can provide a better answer.

-pcweirdo.
 
Old 03-14-2006, 10:45 AM   #3
adt
LQ Newbie
 
Registered: Mar 2006
Location: UK
Distribution: Madriva, Fedora
Posts: 3

Original Poster
Rep: Reputation: 0
Hey,

Unfortuantly that wont work as the file needs to be segmented by messages not by size, as this could literally cut an e-mail or attachment in half! Thanks anyways for the suggestion.

Anyways, I've worked out how to resolve this so thought I should tell you all.

If I create another empty file in the /home/spool/mail/ directory (home of the mailboxes) I can use the mail command to move a number of messages into this file. If I then rename this file to the user's mailbox name then the user can download those messages. This is the basis of it! I could use multiple files etc to get all the messages or keep using the same file each time the user has emptied it.

You can issue the "mail -f <mailbox>" command to view a mailbox, then after that you can issue the "s <msg range> <file>" from the mail prompt to move messages to another file, so "s 1-10 user" would move the first 10 messages into a file called 'user' to be downloaded!

Hope this helps anyone who finds themselves in a similar position!

Thanks,

Andy.
 
Old 03-15-2006, 08:38 AM   #4
pcweirdo
Member
 
Registered: Oct 2004
Location: Melbourne-ish, Australia
Distribution: Gentoo, Windows XP Pro
Posts: 58

Rep: Reputation: 15
An excellent solution, thankyou for posting!

-pcweirdo.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
when creating a *.iso file, how to make the file size smaller? minm Linux - Newbie 8 12-26-2004 09:58 PM
Mail Attachment size hinetvenkat Linux - Security 3 12-26-2004 08:05 AM
Exists a mail-client for Fedora, that can read local mail file without deleting? mxn Linux - Software 1 07-10-2004 12:53 PM
file system size larger than fysical size:superblock or partition table corrupt klizon Linux - General 0 06-18-2004 04:18 PM
E-Mail Size Restriction Nezar Linux - Networking 1 11-23-2001 04:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:37 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration