No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help
View Responses


Grex Info Item 81: Censoring you Mail [linked]
Entered by vidar on Fri Nov 26 01:44:49 UTC 1993:

Is there some way that I can block messages sent by "mail" from
certain people.  Sorta like a twit filter for mail?  There are a few
people I'd like to block out.     -Vidar

69 responses total.



#1 of 69 by davel on Fri Nov 26 02:40:14 1993:

There are all sorts of ways to accomplish this.  What are you using as a
mail program?  If it's elm, there are provisions for setting up a filter
to take various actions on received mail - including junking it conditionally.
(Someone who's actually *used* this had better provide the details - but
you *could* also read the doc, which is the man page and files under
/usr/local/lib/elm.)  I presume pine provides similar functionality.
The absolute worst case is that you write a script to copy your in box
to another file, stripping out unwanted messages - and then overwrite your
in box with nothing or otherwise kill its contents - and read the resulting
file with whatever tool you choose.  (Your in box is a file whose name is
your login ID, located in /usr/spool/mail.  You don't want to actually
*delete* this file, BTW.)


#2 of 69 by vidar on Fri Nov 26 02:46:38 1993:

I use simply "mail" as my mailer.  It's simple and that's why I use it. 
If typing "mail" actually uses another program, I need to know which one.
Thanks for the info.


#3 of 69 by robh on Fri Nov 26 15:00:06 1993:

You don't need to use Elm as your mail program to use the Elm mail
filter, which is a separate program.  Pretending for the moment that
you wanted to delete all the mail I sent to you, you would need
a .forward file that contained:

        "| /usr/local/bin/filter -o /dev/console"

(Include the quotation marks, they're important!)  Then, you would
create a directory .elm, and within that directory, you'd want a
file named filter-rules that said:

        if (from = "robh") then delete

Then, I could send you mail all the live-long day, and you'd never
get any of it.  For multiple users you don't want to get mail from,
just put additional lines in .elm/filter-rules.  If you need help setting
it up, let me know.


#4 of 69 by davel on Fri Nov 26 15:23:33 1993:

Where does it put the messages that *don't* get deleted? Do they go into
your regular in box?

Thanks for the info, BTW.
The Elm Filter Guide, to which the man on Filter refers, is the files
/usr/local/lib/elm/doc/Filter.fmtd   and   /usr/local/lib/elm/doc/Filter.guid
(the former being suitable for cat, the latter needing some kind of nroff
processing).


#5 of 69 by vidar on Fri Nov 26 16:08:43 1993:

Thanks for the info.  I've just filtered out four annoying people.


#6 of 69 by rcurl on Fri Nov 26 20:56:18 1993:

But then, you won't know what people are saying about you behind yor
back". And you won't be able to make witty, or cutting, combacks. 
Isn't that a "fool's paradise"?


#7 of 69 by robh on Fri Nov 26 22:23:41 1993:

Re #4 - Yup, they go into your regular incoming mailbox.  You can
then use whatever mail program you want to read them.

Re #6 - True, but I've been using the twit filter here in PicoSpan
for several months, and it's definitely made it a nicer place to
be.  Sometimes ignorance can be bliss.


#8 of 69 by vidar on Sat Nov 27 00:24:13 1993:

But how do I create directories?  I don't know unix very well.


#9 of 69 by robh on Sat Nov 27 01:22:58 1993:

From a Unix prompt - "mkdir .elm" (without quotes) to create
the directory, "cd .elm" to put yourself into the directory.


#10 of 69 by vidar on Sat Nov 27 16:33:57 1993:

Thanks, I tink I'll freeze this item now.


#11 of 69 by tsty on Mon Dec 6 11:45:35 1993:

Well, since you haven't, when the mailer lists the email, you can
always just    d #  and string out the numbers until you include
all the ones you don't want. Sure, that's manual, but it works.


#12 of 69 by vidar on Wed Dec 15 00:56:56 1993:

The only place I like manual transmition is in a car, thank you.
Life is now a little more peaceful since I've filtered out people.
Now all souces of all possible problems have been completely eredicated.


#13 of 69 by popcorn on Wed Feb 9 15:34:11 1994:

This response has been erased.



#14 of 69 by vidar on Thu Feb 10 01:03:56 1994:

Fine with me.  I don't think the topic is quite dead yet either.
\
<:-)
/


#15 of 69 by bartlett on Wed Aug 10 17:14:40 1994:

I think the only pattern matching you can do in the ELM index is by
subject, though I could be wrong about that.



#16 of 69 by jbo on Mon Oct 31 03:02:32 1994:

This may be an ignorant question, but can other people in Grex read mail that
saved or otherwise sent to me ?


#17 of 69 by popcorn on Mon Oct 31 04:59:36 1994:

This response has been erased.



#18 of 69 by popcorn on Mon Oct 31 05:07:08 1994:

This response has been erased.



#19 of 69 by davel on Mon Oct 31 13:48:28 1994:

Um, Valerie, I know you're trying to keep it basic, but be fair.

John:
Anyone with root access is in a position to read any file on the system.
I'm in fact quite sure that we don't have anyone here with root who makes
a habit of browsing through users' unreadable files - they're all pretty
busy trying to grex on their own AFTER doing whatever staff functions have
led them to have root access!  But in general, you should never assume
that ANY file on ANY Unix system ANYWHERE is completely secure.  If
you want it unread, encrypt it - even that's not perfect, but it's as
close as you'll get short of running only your own system that you never
connect to anything else.

In particular, if you send or receive email through the net, it will have
gone through a lot of systems, sitting on various of them for various
(usually brief) periods of time, & you have no way of knowing who has
access on all those systems.  So, for example, you should never include
a credit-card number in email without encryption.  I'm told (no personal
horror story or anything) that there are people out there who like to
scan messages as they pass by just pulling out lines containing numbers
with the formats of credit-card numbers, which they can then try.

So, I'm making a somewhat technical point - but you don't say what
level of security you're worried about.  What Valerie gave you is a
basic introduction to protection against ordinary users, & that is
the most important thing, really.  But if you're (say) saving email
about how to crash Grex & then going out & trying it, some staff member
may have occasion to look at your files.  If you're (say) saving
500MB mail files, and suddenly no one else can do anything, some staff
member looking for files to clean up is very likely to look at your
file, I'd guess.  And if your mail goes through the net, there are LOTS
of people with the ability to read it.


#20 of 69 by popcorn on Tue Nov 1 14:13:07 1994:

This response has been erased.



#21 of 69 by tsty on Sun Nov 6 07:58:44 1994:

agreed


#22 of 69 by jbo on Sun Nov 6 23:05:04 1994:

My question was whether grex users could read my "mail"
Point well taken about sending mail.
Another "dumb" question, Popcorn, were the commands given Unix 
commands?  Can you name any outside books that would explain
this (response 18 & 19) indepth.  Thanks


#23 of 69 by popcorn on Mon Nov 7 13:23:17 1994:

This response has been erased.



#24 of 69 by curby on Sun Nov 13 12:44:24 1994:

Can we start another Religious war on what mailer is 
the best now?  <grin>



#25 of 69 by popcorn on Sun Nov 13 19:28:51 1994:

This response has been erased.



#26 of 69 by kentn on Sun Nov 13 22:45:41 1994:

It's good at sorting your mail (I've heard).


#27 of 69 by tsty on Mon Nov 14 10:15:16 1994:

Is it available here, I want ot try it after a source of
mine recommended it highly.


#28 of 69 by popcorn on Tue Nov 15 02:41:51 1994:

This response has been erased.



#29 of 69 by popcorn on Tue Nov 15 02:43:37 1994:

This response has been erased.



#30 of 69 by remmers on Tue Nov 15 03:19:57 1994:

In contrast to monolithic mail-handling programs like elm and pine, mh
is actually a collection of programs -- each program handles one
specific mail-related task.  So you run one program to read messages,
another to reply, another to forward, etc.  Conventionally, the
programs are stored in a directory named "mh" under /usr/local/bin.  I
guess whoever installed mh here decided to put all the programs in
/usr/local/bin and set up the symbolic link so that they could all be
found via the path /usr/local/bin/mh.  This has the advantage that you
don't have to put an extra directory on your path -- having
/usr/local/bin on it is sufficient.


#31 of 69 by tsty on Tue Nov 15 08:38:15 1994:

The man pages are  terse on MH, and refer users to a LOT of doc-
umentation that is probably not on line. 
  
SEE ALSO
     The RAND MH Message Handling System: User's Manual,
     The RAND MH Message Handling System: Tutorial,
     The RAND MH Message Handling System: The UCI BBoards  Facil-
     ity,
     MH.5: How to process 200 messages a day and still  get  some
     real work done

 
anybody know where to see copies of these. One note, though, this
is not a program just to "run and see what it does ..." 


#32 of 69 by remmers on Tue Nov 15 10:38:27 1994:

Right, don't just run it, especially if you've got a lot of unread
mail.  I did that once on another system, and it split all several
dozen pending messages up into separate files with the "From " lines
stripped off so that my normal mail reader, elm, couldn't deal with
them.


#33 of 69 by tsty on Wed Nov 16 02:45:57 1994:

Stripped the    From   lines????? (gasp!) Does MH use From:  instead?


#34 of 69 by remmers on Wed Nov 16 19:21:41 1994:

Yes.  I believe that's ok behavior on mh's part.  If I've got it
straight, "From " lines aren't actually part of the message header, but
instead belong to the "envelope", to use official internet email
terminology -- perhaps "postmark" is an appropriate term for them.
Sufficient information for dealing with a mail message is supposed to
be contained in the headers.  Each header has a label that ends in a
colon -- "From:", "Sender:", "Date:", "Subject:", etc.

Some mailer readers, like elm, preserve the "From " lines when they
store messages in folders, and expect to find them there when the
folder is opened for reading.  So they can't handle folders created by
mh.


#35 of 69 by davel on Thu Nov 17 02:03:12 1994:

It would be nice if such aberrant behavior could be turned off.  I'm also
curious as to how messages are delimited - as that "From " line is what
elm, pine, and (I believe) anything that is dealing with the standard
inbox format uses to recognize the start of a new message.  Yes, any
mail program can use any format it chooses for files containing the mail
it extracts from the inbox - but since everyone has to read that one
format anyway, it's a convenient one for other purposes as well.


#36 of 69 by kentn on Thu Nov 17 02:56:17 1994:

Sometimes...it's handy to have the "From" line when the "From:" line
is bogus.  Some mailers look to the former when the latter fails, at
least the offline mailer I use (yarn) does.


#37 of 69 by remmers on Thu Nov 17 11:38:11 1994:

Re #35:  Mh delimits messages by storing each one in a seperate file.

I haven't studied mh real closely, so I don't know how configurable it is.


#38 of 69 by mdw on Sun Nov 27 03:48:24 1994:

Mh is fairly configurable, but I don't know if the "^From " line
stripping is one of the things that can be configured.  My guess is that
it would require some minor hacks to the source, but I really don't know
for sure.


#39 of 69 by bjorn on Fri Sep 29 18:09:05 1995:

I doubt I'll need the information gathered herein again.  but just in case
I do, I shall remember item 81.


Last 30 Responses and Response Form.
No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help

- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss