Re: [GENERAL] Getting input from email...

From: Herouth Maoz <herouth(at)oumail(dot)openu(dot)ac(dot)il>
To: Dan Delaney <dionysos(at)dionysia(dot)org>, PostgreSQL General List <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: [GENERAL] Getting input from email...
Date: 1998-10-26 16:18:15
Message-ID: l03110707b25a4fa3fb0a@[147.233.159.109]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

At 18:09 +0200 on 26/10/98, Dan Delaney wrote:

> I'd like to set up a DB using postgreSQL to archive a
> mailing list. How would I go about getting all of the mail
> sent to the list to be automatically entered into the
> database when it is sent? I assume I would need to set up an
> email address for the list to send to, something like
> "archive(at)blahblah(dot)org", but what would I need to do to get
> it into the database? Something in sendmail? Use procmail?
> Any ideas?

Procmail is supposed to be the ultimate solution in this case. Never tried
it myself. However, if you are working with the common unix and sendmail,
you have the possibility of creating a ".forward" file in the "archive"
user's home directory, in which there is one line which reads "|command".

The vertical bar has to be the first character on the line. The command can
be any old script - in this case a script which parses its input (an email
message) and places it in the appropriate tables of your database.

That's how the "vacation" program works. Use "man forward" on your machine
to see how to handle a .forward file.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Benjamin Gonay 1998-10-26 18:42:47 Re: [GENERAL] Getting input from email...
Previous Message Dan Delaney 1998-10-26 16:09:05 Getting input from email...