Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General > Member Success Stories
User Name
Password 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.


  Search this Thread
Old 02-01-2005, 12:23 PM   #1
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:
* ^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.



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 On
HTML code is Off

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

All times are GMT -5. The time now is 04:30 PM.

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