Sponsored Content
Top Forums Shell Programming and Scripting Email like files in seperate emails Post 302125713 by Shell_Life on Friday 6th of July 2007 02:10:18 PM
Old 07-06-2007
See if this is what you want:
Code:
for mBase in $@
do
  mParms=''
  for mEach in ${mBase}*
  do
     mParms=${mParms}" -a ${mEach}"
  done
  mutt -s "${mBase}" ${mParms} $email
done

 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How do I stop printf output from going into seperate txt files

I am using printf "%-75s%+10s %5s %1s \n" $s $z $x $y > status It works really well, however, when I email status it is sending 10 emails when I would like it to be in one. Is there a way to make all the output to go into one instance of a txt file. Yet still keep it 1 on each... (12 Replies)
Discussion started by: chrchcol
12 Replies

2. Shell Programming and Scripting

Split File into seperate files

Hi, So I have a text file which I want to separate into separate text files. I would use the split command but the problem here is that the text file is separated by delimiters. For example: blah blah blah ------ more text ----- and some more text So basically the first part should be... (4 Replies)
Discussion started by: eltinator
4 Replies

3. UNIX for Dummies Questions & Answers

comparing strings in seperate files

Hello, I am comparing files with for mismatches using fgrep but I've run into a problem. fgrep -vf $file1 $file2 > mismatches.dat file1 and file2 both contain file names on each line file1 has filenames which are up to 92 characters long and contain the "$" char. example file name:... (2 Replies)
Discussion started by: orahi001
2 Replies

4. Shell Programming and Scripting

Help with command to Move files by X number to seperate directories

Hello, I need help finding a script that will allow me to move files from one directory to another directory 10k files at a time. I have a directory that has 100 K files in it. I need to have those 100k files broken apart to separate directories each with 10k files in them. Here is the... (8 Replies)
Discussion started by: Geo_Bean
8 Replies

5. UNIX for Dummies Questions & Answers

looping through file and creating seperate files

Hi, My first post!! I have a files with header, something like this Header_Row AMC|D1|D2|D2 AAO|D3|D4|D5 AMC|D6|D7|D8 AAO|D9|D10|D11 . . . . . and millions fo records thereafter like this. I want to read the above file in a loop and write the lines having AMC into another... (1 Reply)
Discussion started by: amitbakre
1 Replies

6. UNIX for Dummies Questions & Answers

Archived Emails in UNIX Executable Files

Hello, A while back someone"archived" my emails for me, so I didn't have to worry about my email account filling up with emails. I need to get back into those emails and view them. When I opent the folder it has several files. The largest being an "mbox", which I am assuming has all of... (3 Replies)
Discussion started by: shaffer1921
3 Replies

7. Shell Programming and Scripting

Sending files to multiple emails

Hi All, I want to send each file to each email id as below. Instead of writing saparate 10 mail commands can we do it in a simple step. file1.csv to raghu.s@hps.com file2.csv to kiran.m@hps.com file3.csv to kenni.d@hps.com file4.csv to rani.d@hps.com file5.csv to sandya.s@hps.com... (2 Replies)
Discussion started by: ROCK_PLSQL
2 Replies

8. Shell Programming and Scripting

Seperate Odd and Even numbers from 1 file to 2 files

Hey guys. I have been trying to figure out an easy way to seperate a liste of 150k numbers (10 digits) in a .txt file into odd and even numbers with each of their own files, for a project at work. I've tried Excel, but it was too much for it and it wasnt very simple. So i gave up after... (13 Replies)
Discussion started by: TranceC
13 Replies

9. UNIX for Beginners Questions & Answers

For loop for seperate files

For shell script. If I had two separate files, file.txt and file1.txt and each has just a list of names from the who command. How would I create an if loop to compare each name? (1 Reply)
Discussion started by: Eric7giants
1 Replies
PYZOR(1)						      General Commands Manual							  PYZOR(1)

NAME
pyzor - spam-catcher using a collaborative filtering network SYNOPSIS
pyzor [-d] [--homedir dir] command [command_options] OPTIONS
-d turn on debugging --homedir dir use dir as the home directory for Pyzor instead of the default ~/.pyzor. See the files section for more information on what files are inside of the homedir. COMMANDS
check[--mbox] Reads on standard input an RFC 822 (email) message. Exit code is zero (0) if and only if a match is found and the global whitelist count is zero. If --mbox is provided, then the input is assumed to be a unix mailbox, and all messages in it will be checked. If multiple servers are listed in the configuration file, the exit code will be zero (0) if and only if there is a match found on at least one server (without it being whitelisted anyplace). report [--mbox] Reads on standard input an RFC 822 (email) message. Reports to the server a digest of each message in the mailbox as spam. Writes to standard output a tuple of (error-code, message) from the server. If --mbox is provided, then the input is assumed to be a unix mailbox, and all messages in it will be sent to the server. whitelist [--mbox] Reads on standard input an RFC 822 (email) message. Sends to the server a digest of each message in the mailbox for whitelisting. Writes to standard output a tuple of (error-code, message) from the server. If --mbox is provided, then the input is assumed to be a unix mailbox, and all messages in it will be sent to the server. discover Finds Pyzor servers, and writes them to ~/.pyzor/servers. This may accomplished through querying already-known servers or an HTTP call to a hard-coded address. ping Merely requests a response from the servers. genkey Based upon a secret passphrase gathered from the user and salt gathered from /dev/random, prints to standard output a tuple of "salt,key". Used to put account information into the accounts file. See the section Using Accounts for more information. digest [--mbox] Reads on standard input an RFC 822 (email) message. Writes the digest of the message to standard output. If --mbox is provided, then the input is assumed to be a unix mailbox, each message's digest is written to standard output, separated by newlines. predigest Reads on standard input an RFC 822 (email) message. Writes to standard output the normalized lines of data that are digested, with the exception that the lines printed have newlines (all whitespace is removed before digesting). USING PYZOR WITH READYEXEC
ReadyExec is a system to eliminate the high startup-cost of executing scripts repeatedly. If you execute pyzor a lot, you might be inter- ested in installing ReadyExec and using it with pyzor. To use pyzor with ReadyExec, the readyexecd.py server needs to be started as: readyexecd.py socket_file pyzor socket_file can be any (non-existing) filename you wish ReadyExec to use, such as /tmp/pyzor: readyexecd.py /tmp/pyzor pyzor Individual clients are then executed as: readyexec socket_file options command cmd_options For example: readyexec /tmp/pyzor check readyexec /tmp/pyzor report readyexec /tmp/pyzor whitelist --mbox readyexec /tmp/pyzor -d ping ReadyExec can be found at: http://readyexec.sourceforge.net/ INTEGRATION WITH MUTT
Add the following line to mutt.conf: macro index S "|/usr/bin/pyzor report" Then press S on the spam message in mutt to report it with pyzor. FILES
~/.pyzor/config The format of this file is INI-style (name=value, divided into [sections]). Names are case insensitive. All values which are filenames can have shell-style tildes (~) in them. All values which are relative filenames are interpreted to be relative to the Pyzor homedir. Defaults [client] ServersFile = servers AccountsFile = accounts DiscoverServersURL = http://pyzor.sourceforge.net/cgi-bin/inform-servers-0-3-x Timeout = 5 SEE ALSO
pyzord(1) AUTHOR
This manpage was originally written by Bastian Kleineidam <calvin@debian.org> for the Debian distribution of pyzor but may be used by oth- ers. The main author of pyzor is Frank J. Tobin <ftobin@neverending.org>. The main project page for pyzor can be found at http://source- forge.net/projects/pyzor 10 Oct 2002 PYZOR(1)
All times are GMT -4. The time now is 02:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy