LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices



Reply
 
Search this Thread
Old 02-01-2005, 01:23 PM   #1
killfire
LQ Newbie
 
Registered: Jan 2005
Distribution: Slackware.
Posts: 16

Rep: Reputation: 0
fancy email forwarding service


maybe this is something trivial but it took me a while to figure out.

what i wanted to do is set up an email service for a couple of people, which, when i received an email from them with the subject "Mass: blah" it would (aompletely automatically) take the message, strip off the Mass: from the subject, and then blidn carbon copy it to a list of 250 or so email addresses (bcc so they couldnt steal my list and pollute the network).

the list itself was an accomplishment.

my school (where im doing this) has an onlin search database for people, so i put in my class (what the list will be) and then using cat | grep @ | awk | perl -e > file , to make the comma separated list to work with procmail (how i forwarded it)

here is the procmailrc:
Code:
:0
* ^FROM.*somebody
* ^SUBJECT.*Mass:


| formail -rkb -I "To:" -I "Bcc:`cat ~/.procmail/mailing_class_comma_separated.txt`" -I "Subject:`formail -rkbx Subject: | awk -F 'Mass:' '{print $(NF)}'`" | /usr/sbin/sendmail -t
looks simple now but it took me a long time to figure out.

killfire
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forwarding email Boffy Linux - General 2 03-18-2005 09:43 AM
EMail forwarding Brother Michael Debian 2 05-13-2004 09:19 AM
Forwarding Email sw1tchb0ard Linux - Newbie 1 10-26-2003 07:28 PM
email forwarding sk8guitar Programming 5 08-19-2003 02:44 PM
Email Forwarding Nezar Linux - Networking 2 06-12-2001 02:16 PM


All times are GMT -5. The time now is 01:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration