Thread View: comp.mail.misc
3 messages
3 total messages
Started by Sue Raisty
Sat, 26 Jun 1993 22:54
Help with RMAIL??? (GNU Emacs)
Author: Sue Raisty
Date: Sat, 26 Jun 1993 22:54
Date: Sat, 26 Jun 1993 22:54
49 lines
3537 bytes
3537 bytes
Hi. I was wondering if anyone could help me. :) I've been working with GNU Emacs RMAIL and have written lots of little elisp routines to automatically sort my mail and output messages from certain people to designated rmail files. The way they work is as follows: When RMAIL is started, it gets all the messages from my po-box, and then starting with the first new message runs a filter of sorts on the headers fields of the message that determine which "folder" (rmail file) the message should be filed in. Then it runs rmail-output-to-rmail-file and then rmail-delete-message on that message. Then it go on to the next message. Thing is, this system is not working out so well because it is really taking up alot of time and memory space, which i don't have much of. Because Emacs makes backup copies of the primary input RMAIL file and of all the other rmail files that I'm using. So effectively, each new message is saved four times over in my account! Also, getting the mail and then sorting it seems to be taking a long time. I want to be able to send each message to the proper file right off instead of bringing it into my primary file and then sending it off to the right place. That would require my being able to look at each message individually before it is brought into my directory. The movemail.c program that rmail-get-messages calls seems to put all the messages in the po-box together in a lump and transfers all of them at once. I'd like to be able to transfer them one at a time, because among other things this will allow me to read some of my messages if I'm about to go over my memory quota, and will let me get the rest when I have more room in my account. Does anyone know how I can do this? (getting the messages one at a time instead of in a big lump?) Does it involve changing the movemail.c program or something else. I should mention that I am on a very distributed mail system that uses POP mail and remote post-offices. Is there a program that will do this already that I am not aware of? I don't really understand most of the movemail.c program that I can find here, probably because its been hacked a few times over for the athena system, and it doesn't have a comment in it. Thanks for your help. Personal replies would be appreciated. --------------------------------------------------------------------------- | Sue Raisty | | | semi-permanent MIT student | "This is a UNIX System! I _know_this!" | | august@athena.mit.edu | -- Alexis from *Jurassic Park* | | no phone | | ---------------------------------------------------------------------------
Re: Help with RMAIL??? (GNU Emacs)
Author: Richard Pieri
Date: Mon, 28 Jun 1993 17:55
Date: Mon, 28 Jun 1993 17:55
29 lines
2379 bytes
2379 bytes
You would need a program, or set of programs/scripts, to 1) cut each mail message out of the Unix mailbox file [pretty easy to do; just do a regexp search for the message delimiters] 2) append it to the correct file [also pretty easy to do; just do a regexp search on the headers and use whatever language's equivalent to alists to append to the correct file] 2a) possibly convert it to BABYL before appending [not to difficult; translate the -to-babyl code from rmail.el] 3) get Emacs to read the files (probably call the programs via shell-command or something) [somewhat more difficult; either you have to read each file manually, read *all* files automatically, or figure out some way of telling Emacs which files to read (the most difficult)]. Acutally, now that I think of it, it wouldn't be too difficult to write the whole thing in emacs-lisp. And that would make step 3 significantly easier. --Rat <ratinox@ccs.neu.edu> Northeastern's Stainless Steel Rat PGP Public Key Block available upon request Ask about rat-pgp.el ||||| | | | | | | | | | | | | | | | | | | | | | | ||||| One likes to believe in the freedom of baseball. --Geddy Lee
Re: Help with RMAIL??? (GNU Emacs)
Author: Jin S Choi
Date: Tue, 29 Jun 1993 12:16
Date: Tue, 29 Jun 1993 12:16
40 lines
3132 bytes
3132 bytes
>>>>> On 26 Jun 1993 22:54:55 GMT, august@athena.mit.edu (Sue Raisty) said: Sue> I want to be able to send each message to the proper file right off Sue> instead of bringing it into my primary file and then sending it off to Sue> the right place. That would require my being able to look at each Sue> message individually before it is brought into my directory. Sue> The movemail.c program that rmail-get-messages calls seems to put all Sue> the messages in the po-box together in a lump and transfers all of Sue> them at once. I'd like to be able to transfer them one at a time, Sue> because among other things this will allow me to read some of my Sue> messages if I'm about to go over my memory quota, and will let me get Sue> the rest when I have more room in my account. The place to do this is before the mail reader gets to it. You can use any one of a number of different mail processors to do this; I use procmail. Of course, this requires that you get your mail on a system that recognizes .forward files; I get my mail forwarded from athena to a private machine. This doesn't really help you, because: Sue> Does anyone know how I can do this? (getting the messages one at a Sue> time instead of in a big lump?) Does it involve changing the Sue> movemail.c program or something else. I should mention that I am on a Sue> very distributed mail system that uses POP mail and remote Sue> post-offices. Is there a program that will do this already that I am Sue> not aware of? I don't really understand most of the movemail.c Sue> program that I can find here, probably because its been hacked a few Sue> times over for the athena system, and it doesn't have a comment in it. I don't think there is a way to get mail off the pobox one at a time. I would hope Athena's movemail would check to see if you have enough space for the mail like (I think) inc does, but it probably doesn't. As for getting your messages presorted into folders, you might try to see what VM does, but I think it does pretty much what your functions do. -- Jin Choi jsc@athena.mit.edu
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads