LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-29-2003, 08:09 PM   #1
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Bsh Script ( Email )


Hello all,

I want to create a script which will make a copy of each mail that exist 100kb before putting it in my user mailbox and sent to "me@mydomain.com"

For ex. :
email from joe@yahoo.com to user@mydomain.com which exist 100kb will sent it to user mailbox and also at the same time it make a copy of that mail and sent to me@mydomain.com


Can anyone help to figure this out
 
Old 10-29-2003, 09:30 PM   #2
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
I think this would be difficult to establish with a bash script.
Never mind, Procmail as local mailer can do this (and much more) 'on the fly'.
Just include the filter conditions in the procmailrc file (see man procmail, man procmailrc).

Last edited by J_Szucs; 10-29-2003 at 09:32 PM.
 
Old 10-29-2003, 09:35 PM   #3
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Original Poster
Rep: Reputation: 30
do you know where i can get the best information about this feature. or maybe you can give some directions how to put the conditions in procmail?
 
Old 10-29-2003, 10:36 PM   #4
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Here is a good page with procmail examples: http://pm-doc.sourceforge.net/pm-tips-toc.html

Last edited by J_Szucs; 10-29-2003 at 11:20 PM.
 
  


Reply



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
Script to send email... bfloeagle Linux - General 5 10-13-2009 10:20 AM
Compare BSH and Linux swmok Linux - General 3 01-07-2005 09:37 PM
Csh or Bsh max_linuxquesti Programming 4 12-26-2002 01:17 PM
email me my IP script linuxRules Linux - General 1 11-12-2002 09:36 AM
Email Script Sathe Linux - Newbie 3 10-22-2001 07:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:17 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
Open Source Consulting | Domain Registration