11-26-2011
I have seen that as well and that sounds about right, deleting autosaved mails that you are writing, once you have sent them. However I think that sometimes there may be a delay between sending it and the message appearing.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I would like to be able to delete the first n lines of a file from inside of a ksh script. I am not sure how to achieve this or if it is possible. Could someone please help. Thanks in advance. (5 Replies)
Discussion started by: rehoboth
5 Replies
2. Shell Programming and Scripting
Shell Program which deletes all lines containing the word "UNIX" in the files supplied as argument..please help me to do this task :) (4 Replies)
Discussion started by: abhiseknitd
4 Replies
3. UNIX for Advanced & Expert Users
Hi
I have a strange problem. Sometimes when I execute the below command something wierd happens.
rsync -avz -e ssh travegre@travegre.net: ../travegre.net/
the folder named "hm" that is held in travegre.net and is coppied along with all the other folders and data at travegre.net, gets... (1 Reply)
Discussion started by: travegre
1 Replies
4. UNIX for Advanced & Expert Users
Hi
I have a strange problem. Sometimes when I execute the below command something wierd happens.
rsync -avz -e ssh travegre@travegre.net: ../travegre.net/
the folder named "hm" that is held in travegre.net and is coppied along with all the other folders and data at travegre.net, gets deleted... (4 Replies)
Discussion started by: travegre
4 Replies
5. UNIX for Dummies Questions & Answers
I need a shell script that accepts 2 directories names bar1 and bar2
as arguments , and deletes those files in bar2 which are are identical to their name
spaces in bar1.
I tried with this code but it gives error.
if
then
echo " syntax <comnd dir1 dir2 > "
exit
else
... (6 Replies)
Discussion started by: krishnampkkm
6 Replies
6. UNIX for Advanced & Expert Users
Is there a way I can send a text file directly to my Drafts folder? (1 Reply)
Discussion started by: idontknow
1 Replies
7. Shell Programming and Scripting
I want to write a script that deletes files inside the dir. However, the script
should also allow the user to confirm by pressing (d) key before deleting files..
#!/bin/bash
for file in $1/*
do
size='ls -l $file | cut -f 5 -d " "'
name='ls -l $file | cut -f 9 -d " "'
... (1 Reply)
Discussion started by: herberwz
1 Replies
8. UNIX for Advanced & Expert Users
I have a complex multi-stage (media conversion and formatting) build process that leaves orphan target files needing deleting automatically (i.e. by reference only to the build rules themselves, not any parallel config) upon each regular build. Since MAKE cannot do this, what can? Thanks. (4 Replies)
Discussion started by: chrisjj
4 Replies
9. Solaris
i am trying to remove a directory using rm -rf command but its not getting removed.. it doesnt throw any error also.. i am logging as the owner of the dir and removing it but still no luck.. i am able remove a file but not a directory.
i am using solaris 10 (12 Replies)
Discussion started by: chidori
12 Replies
10. OS X (Apple)
It deletes my .bashrc file rarely but predictability after some unknown count of Mac's restarts. Has someone ever faced such behavior?
How do I prevent OS X from modifying .bashrc? What ownership/permission should I set up to not let it happen?
OS X Lion. (6 Replies)
Discussion started by: scrutinizerix
6 Replies
LEARN ABOUT DEBIAN
mailsound
MAILSOUND(1) General Commands Manual MAILSOUND(1)
NAME
mailsound - play sounds when mail is received
SYNOPSIS
mailsound [-hszZvrd] soundname ...
DESCRIPTION
mailsound allows a user to play sounds when new mail arrives. It reads a mail message from stdin and uses Mark Boyns' rplay library to
play sounds. The sound that is played is determined by a configuration file in the user's home directory called .mailsounds. Each line in
this file has two parts. The first part is a regular expression which will be used to match the from address from a mail message. The
second part describes what to do when a match is found. The options in the second part are identical to the options on the command line.
The command line options will set defaults which will be used if they are not specified in the configuration file.
If not specified, the mailsound program will use the following defaults:
default sound: youvegotmail.au
default volume: 127 (50%)
If the mail address does not match any of the regular expressions in the .mailsounds file, no sound will be played.
OPTIONS
-h hostname:[hostname...]
Play sounds on all of these hosts.
-z <minsize>:<minvolume>,<maxsize>:<maxvolume>
The volume the sound will be played at will be determined by the size of the mail message. The sound for a message with a size
smaller than <minsize> will be played at volume <minvolume>. The sound for a message with a size larger than <maxsize> will be
played at volume <maxvolume>. The sound for a message with a size between <minsize> and <maxsize> will be played at a volume which
is a linear interpolation between <minvolume> and <maxvolume>.
-Z <minsize>,<maxsize>
The sound to be played is determined by the size of the mail message. If the message is smaller than <minsize>, the first listed
sound is played. If the message is larger than <maxsize>, the last listed sound is played. If the message size is between those
two values, the appropriate sound from the list is played.
-s <subject re>
The regular expression supplied will have to match the subject of the message. If this option is not there, the subject of the mes-
sage is completely ignored. Be careful that the regular expression does not contain spaces. Due to laziness of the author of this
program, this will hopelessly confuse the program.
-v <int>
Set the volume at which the sound should be played. The range is 0-255.
-r Pick a sound at random from the list of sounds provided.
-d Turn on debugging. This will produce diagnostic output to stdout.
EXAMPLE
The following could appear in the .forward file in your home directory: (This assumes that your username is pickard)
pickard, |"/usr/local/bin/mailsound"
Here is a sample $HOME/.mailsounds file:
Andrew.* -r Passing_Train riot arrp flinstones
root.* out!
daemon.* -v 220 sci_fi_fun
MAILER.* -S 1000,10000 cuckoo pig Oomph
*. pigs
FILES
$HOME/.mailsounds
SEE ALSO
rplay.conf(5), rplayd(1)
AUTHOR
This program was written by Andrew Scherpbier at San Diego State University. He can be reached by E-mail as follows:
Andrew@SDSU.Edu
The mailsound program makes use of Mark Boyns' rplay package which can play multiple sounds on remote machines.
He can be reached by E-mail as follows:
boyns@sdsu.edu
BUGS
The code does very little error checking. No range checking on any of the values is done.
11 August 1993 MAILSOUND(1)