Sponsored Content
Full Discussion: Moving msgs in pine
Top Forums Shell Programming and Scripting Moving msgs in pine Post 302258100 by oxoxo on Thursday 13th of November 2008 10:38:08 PM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. UNIX for Dummies Questions & Answers

pine

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

6. 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

7. 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

8. 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

9. 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

10. 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
RMF(1)								     [nmh-1.5]								    RMF(1)

NAME
rmf - remove an nmh folder SYNOPSIS
rmf [+folder] [-interactive | -nointeractive] [-version] [-help] DESCRIPTION
Rmf removes all of the messages (files) within the specified (or default) folder, and then removes the folder (directory) itself. If there are any files within the folder which are not a part of nmh, they will not be removed, and an error will be produced. If the folder is given explicitly or the -nointeractive option is given, then the folder will be removed without confirmation. Otherwise, the user will be asked for confirmation. If rmf can't find the current folder, for some reason, the folder to be removed defaults to `+inbox' (unless overridden by user's profile entry "Inbox") with confirmation. If the folder being removed is a subfolder, the parent folder will become the new current folder, and rmf will produce a message telling the user this has happened. This provides an easy mechanism for selecting a set of messages, operating on the list, then removing the list and returning to the current folder from which the list was extracted. If rmf s used on a read-only folder, it will delete all the (private) sequences (i.e., "atr-seq-folder" entries) for this folder from your context without affecting the folder itself. Rmf irreversibly deletes messages that don't have other links, so use it with caution. FILES
$HOME/.mh_profile The user profile PROFILE COMPONENTS
Path: To determine the user's nmh directory Current-Folder: To find the default current folder Inbox: To find the default inbox SEE ALSO
rmm(1) DEFAULTS
`+folder' defaults to the current folder, usually with confirmation `-interactive' if +folder' not given, `-nointeractive' otherwise CONTEXT
Rmf will set the current folder to the parent folder if a subfolder is removed; or if the current folder is removed, it will make "inbox" current. Otherwise, it doesn't change the current folder or message. BUGS
Although intuitively one would suspect that rmf works recursively, it does not. Hence if you have a sub-folder within a folder, in order to rmf the parent, you must first rmf each of the children. MH.6.8 11 June 2012 RMF(1)
All times are GMT -4. The time now is 08:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy