Moving msgs in pine


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Moving msgs in pine
# 1  
Old 11-13-2008
Moving msgs in pine

hey im writing a script like this:

Code:
 
 
#!/bin/bash
#Name: moveMail
#Purpose: To move some files in the pine inbox to a folder on the desktop

#Step one: Find all messages with that have the subject "Hello" in them.
#---------------------------------------------------------------------
find /var/spool/mail/ -name "*Hello"

#EOF

is this the right path? Is there a special type of argument to find to find subjects in my inbox?

If you've read my other post in this scripting forum i needed help with my .forward , general.rc and .procmailrc files:
https://www.unix.com/shell-programmin...-patterns.html
As simple as it may seem, i need to move messages from my Pine inbox folder that contain the the word "Hello" to a folder thats on my desktop.

Could i just use mv? Well that would be to easy wouldnt it?Smilie
# 2  
Old 11-15-2008
how are you doing with Lab 6? I don't believe I have to change any of the file codes he gave in the Week 8 Notes right?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

I/O Redirection: how can I redirect error msgs to a temp file

Hi there, I just want to know how can I redirect error msgs returned from running a command (e.g. nslookup) and then only print out the correct output using an if statement?. I've tried the following: where $a is a list of IPs. but I got all the error msgs printed out to screen and... (9 Replies)
Discussion started by: Abdulelah
9 Replies

2. UNIX for Advanced & Expert Users

Forwarding syslog msgs to remote server non standard port

Hello Forumers! Has anyone successfully implemented forwarding of syslog messages to a remote server which is listening on a port other than udp514? Thanks! (3 Replies)
Discussion started by: bluescreen
3 Replies

3. Shell Programming and Scripting

Mail cleanup from ksh script, keeping 50 most recent msgs

I found some posts describing how to completely clean out a mailbox in Unix/Linux. But I want to keep the 50 most recent messages. Any ideas out there? Thanks! (3 Replies)
Discussion started by: OPTIMUS_prime
3 Replies

4. Shell Programming and Scripting

Problem in redirecting ftp msgs to a log file

Hi all.. The following set of statements is used in a shell script to ftp a file to a remote machine I want to redirect the ftp messages thrown by the first ftp statement to a log file. As you can see there is a logic downstream to decide if the ftp was a success or not. But i am not... (5 Replies)
Discussion started by: hareeshkumaru
5 Replies

5. Solaris

troubleshooting log detailing symptoms/error msgs/fix actions for NIS+ client authent

summary found at bottom. to skip straight to action summary, ctrl+f for <summary> this initially started with trouble changing passwords due to client being unable to authenticate, this was further caused by missing client files. This was transparent to me, so this details the road I took,... (0 Replies)
Discussion started by: ProGrammar
0 Replies

6. UNIX for Dummies Questions & Answers

pine

how to configure pine in my linux os (1 Reply)
Discussion started by: rajan_ka1
1 Replies

7. IP Networking

too many msgs (unknown source)

Hi All, I have a problem that I don't know its source. I got a client - server application (one client only) over TCP. I use berkley socket architecture (i.e. select). I log every msg ID that each side recv/ send. the problem is that each side accept more msgs that I actually send, so that all... (0 Replies)
Discussion started by: lenna
0 Replies

8. UNIX for Advanced & Expert Users

Pine

Hi :- I am trying to make a script to send mail using pine. But it takes me to the Pine Menu Console and I have to send it manually. Note that I am attaching a file with it. Any quick response will be highly appreciated. (4 Replies)
Discussion started by: s_aamir
4 Replies

9. UNIX for Dummies Questions & Answers

Sysadmin LOGIN msgs for all users

Is there a way, as sysadmin, to put out system msgs, ie scheduled downtime, backup info, etc, whenever users log in? (5 Replies)
Discussion started by: kymberm
5 Replies

10. UNIX for Dummies Questions & Answers

Xterm with Pine

Hello, Does anyone know why I'm not able to get colors in Pine when using Xterm, but I can get them using Dtterm? Any answers to this would be much appreciated. Radimus. (1 Reply)
Discussion started by: radimus
1 Replies
Login or Register to Ask a Question