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
pilot(1)						      General Commands Manual							  pilot(1)

Name
       pilot - simple file system browser in the style of the Pine Composer

Syntax
       pilot [ options ] [ directory ]

Description
       Pilot is a simple, display-oriented file system browser based on the Pine message system composer.  As with Pine, commands are displayed at
       the bottom of the screen, and context-sensitive help is provided.

       Pilot displays the current working directory at the top of the screen.  The directory's contents are displayed in  columns  of  file  name,
       file  size pairs.  Names that are directories are indicated by the name "(dir)" in place of the file size.  The parent of the current work-
       ing directory is indicated by the file name ".." and size of "(parent dir)".  File names that are symbolic links to other  files  are  dis-
       played with a file size of "--".

       Several	basic file manipulation commands are provided: Delete, Rename, Copy, View, Launch, and Edit.  The "View" and "Edit" commands oper-
       ate on text files only.	By default, the "View" command displays files using "pine -F", but will respect the environment variable PAGER	if
       set.   The  "Edit" command simply invokes "pico".  The "Launch" command provides a convenient way to either execute the selected file or to
       run an application on it.

       More specific help is available in pilot's online help.

Options
       -a     Display all files including those beginning with a period (.).

       -f     Use function keys for commands.  This option supported only in conjunction with UW Enhanced NCSA telnet.

       -g     Enable "Show Cursor" mode.  Cause cursor to be positioned before the current selection rather than placed at the lower left  of  the
	      display.

       -j     Enable "Goto" command.  This enables the command to permit explicitly telling pilot which directory to visit.

       -m     Enable mouse functionality.  This only works when pilot is run from within an X Window System "xterm" window.

       -nn    The  -nn	option	enables  new  mail notification.  The n argument is optional, and specifies how often, in seconds, your mailbox is
	      checked for new mail.  For example, -n60 causes pilot to check for new mail once every minute.  The default interval is 180 seconds,
	      while the minimum allowed is 30. (Note: no space between "n" and the number)

       -o dir Sets  operating directory.  Only files within the specified directory are accessible and browsing is limited to the specified direc-
	      tory subtree.

       -v     Enable single vertical column display.

       -x     Disable keymenu at the bottom of the screen.

       -z     Enable ^Z suspension of pilot.

       -q     Termcap or terminfo definition for input escape sequences are used in preference to sequences defined by default.   This	option	is
	      only available if pilot was compiled with the TERMCAP_WINS define turned on.

Authors
       Michael Seibel <mikes@cac.washington.edu>
       Copyright 1994-2001 by the University of Washington.

See Also
       pine(1)
       Source distribution (part of the Pine Message System):
	  ftp://ftp.cac.washington.edu/mail/pine.tar.Z

       $Date: 2001/01/02 21:59:52 $

								    Version 1.1 							  pilot(1)
All times are GMT -4. The time now is 04:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy