On Sat, Oct 11, 2003, Bart Schaefer stated:
a script that will move (save in Pine lingo) all messages from one Pine
folder to another.
If these are standard unix mbox format folders (as opposed to UW's mbx
format, or something else) you should be able to edit the first folder
with a text editor, delete the first message (ignoring "DO NOT DELETE"
warnings in that message) and then "cat editedfolder >> targetfolder"
(note ">>" for append, not ">" which will overwrite).
I think I follow you, but I'm not clear on how I'd delete the first
message from a script. Here's what my empty folder looks like:
<<----- BEGIN ------>>
# cat mail/blacked
From MAILER-DAEMON Sat Oct 11 12:14:09 2003
Date: 11 Oct 2003 12:14:09 -0500
From: Mail System Internal Data <MAILER-DAEMON(_at_)cullmail(_dot_)com>
Subject: DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA
Message-ID: <1065892449(_at_)bokler(_dot_)com>
X-IMAP: 1065208050 0000000541
Status: RO
This text is part of the internal format of your mail folder, and is not
a real message. It is created automatically by the mail system
software. If deleted, important folder data will be lost, and it will be
re-created with the data reset to initial values.
<<------ END ------>>
You've given me another idea, though... what about this:
1. save the "empty folder file" above as 'empty.blacked';
the target folder is called 'blacked-archive'
2. in my script:
cat mail/blacked | formail +1 -ds >> blacked-archive
rm blacked
cp empty.blacked blacked
Whaddya' think?
If that procedure makes you nervous, try downloading the imap-utils from
ftp://ftp.cac.washington.edu/mail/imap-utils.tar.Z -- there's a utility
in there for shuffling messages and mailboxes around, and because of the
way UW's mail software is structured it should work on local folders as
well as through an IMAP server, in spite of the name.
I may look into that - thanks... Pine ver 4.58 apparently has some new
"integrated" utilities for doing what I want:
http://www.washington.edu/pine/man/#mailutil
I could install this version of Pine, but I haven't yet figured out how
to do this without f**g up the ports tree on my system.
Thanks,
Jay Moore
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail