Sponsored Content
Full Discussion: Procmail filter
Top Forums UNIX for Dummies Questions & Answers Procmail filter Post 22879 by luiz_fer10 on Wednesday 12th of June 2002 08:04:57 AM
Old 06-12-2002
Procmail filter

Hello,

I want to make a filter with procmail, using the day of the week ant the hour to filter the message.

If the day is Tuesday, the message is redirected to one address. On the other days, the message goes to another address. The messages will be redirected at 8 am to 17 pm.

I tried something like:

:0
* ^From (0[89]|1[0-6]|):[0-5][0-9]: (Tue)
! email

:0
* ^From (0[89]|1[0-6]|):[0-5][0-9]: (Sun|Mon||Wed|Thu|Fri|Sat)
! email2

But this don't work how I want to.

Anybody knows the right syntax?

Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Procmail Tutorial

Hello, Somebody knows a good procmail tutorial in the net? Thanks!:) (1 Reply)
Discussion started by: luiz_fer10
1 Replies

2. Email Antispam Techniques and Email Filtering

procmail rule

I can tell this is not a recently active formum, but here goes, "why doesn't this procmail rule block messages with víagra or v1agra appearing in the subject header :0 * ^Subject:.*(víagra¦v1agra¦pénis¦prescripti0n¦Medicati0n¦M0rtgage¦Xanaxz) { LOG="(THE 7 DIRTY WORDS) " :0 ... (4 Replies)
Discussion started by: jones
4 Replies

3. UNIX for Dummies Questions & Answers

procmail code help

Hello, I was wondering if my code is correct on a procmail recipe I am trying to use. I am trying to set up custom filter for for my email address. What needs to happen is any email NOT addressed to me in the to: or cc: field is deleted. For the time being it is set it up to go to another... (0 Replies)
Discussion started by: Hexabah
0 Replies

4. UNIX for Advanced & Expert Users

using procmail to filter content

Hi i would like to find out how can i write a procmail rule to filter based on the email content.i was unable to locate any similar threads that does filtering based on the content.would appreciate any pointers. thanks:0 * ^From: Machine1 <machine1@aaa.com> # i will have a string "machine1.log"... (1 Reply)
Discussion started by: new2ss
1 Replies

5. Shell Programming and Scripting

Procmail script

Hi, I need to write a procmail script such that: - incoming email is scanned to see if it is spam - if spam deliver to spam folder - otherwise deliver to inbox and send a copy to another address. So far I have: :0 * ^Subject:.*SPULK DUMB I can make a new recipe on to forward mail... (0 Replies)
Discussion started by: mojoman
0 Replies

6. UNIX for Dummies Questions & Answers

procmail, backup, ftp

Hello, On a remote server with Centos 5.0, I am running procmail At /var/mail/vhosts/, I can find all the accounts and I was thinking of saving those files on my local machine using ftp. The structure is right and the files containing the emails (most of them stored in the cur folders) appear... (1 Reply)
Discussion started by: JCR
1 Replies

7. UNIX for Dummies Questions & Answers

Procmail or Spamassassin?

Hello, this is my first visit to your forum and I've searched previous threads for my answer but have not been able to find one. Apologies if there is one that I didn't discover. Is there a way of bouncing or deleting spam that contains non-existent addresses in TO: field but is delivered due... (1 Reply)
Discussion started by: WendyTinley
1 Replies

8. UNIX for Dummies Questions & Answers

a few questions about procmail

Hello, I am running a email server on Centos 5.3 (dovecot, postfix, with emails for a few domains) and I am wondering whether I am using procmail or not. I know procmail is installed because procmail -version returns: Locking strategies: dotlocking, fcntl() Default rcfile: ... (0 Replies)
Discussion started by: JCR
0 Replies

9. UNIX for Dummies Questions & Answers

Procmail

Hi, I have a few questions. I am new to UNIX/Linux. At work I notice that our mail server uses sendmail. When I looked in the sendmail.cf file I see that it is using PROCMAIL as the Local Delivery Agent. Questions:- I looked for /etc/procmail to see its configuration file but I see none.... (0 Replies)
Discussion started by: mojoman
0 Replies

10. UNIX for Dummies Questions & Answers

Help with SendMail Procmail filtering

Hi All, I am very new to Unix. I have a test server running FreeBSD 10.1 and SendMail 8.14.9. I need to filter incoming emails based on the sender's email address or domain and forward them to another address on a different domain as well as to the original recipient. Can I achieve this with... (1 Reply)
Discussion started by: simplemind
1 Replies
Gtk2::RecentFilter(3pm) 				User Contributed Perl Documentation				   Gtk2::RecentFilter(3pm)

NAME
Gtk2::RecentFilter - wrapper for GtkRecentFilter HIERARCHY
Glib::Object +----Glib::InitiallyUnowned +----Gtk2::Object +----Gtk2::RecentFilter METHODS
recentfilter = Gtk2::RecentFilter->new $filter->add_age ($days) o $days (integer) $filter->add_application ($application) o $application (string) $filter->add_custom ($needed, $func, $data=undef) o $needed (Gtk2::RecentFilterFlags) o $func (scalar) o $data (scalar) $filter->add_group ($group) o $group (string) $filter->add_mime_type ($mime_type) o $mime_type (string) $filter->add_pattern ($pattern) o $pattern (string) $filter->add_pixbuf_formats boolean = $filter->filter ($filter_info) o $filter_info (scalar) string = $filter->get_name $filter->set_name ($name) o $name (string) recentfilterflags = $filter->get_needed ENUMS AND FLAGS
flags Gtk2::RecentFilterFlags o 'uri' / 'GTK_RECENT_FILTER_URI' o 'display-name' / 'GTK_RECENT_FILTER_DISPLAY_NAME' o 'mime-type' / 'GTK_RECENT_FILTER_MIME_TYPE' o 'application' / 'GTK_RECENT_FILTER_APPLICATION' o 'group' / 'GTK_RECENT_FILTER_GROUP' o 'age' / 'GTK_RECENT_FILTER_AGE' SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object COPYRIGHT
Copyright (C) 2003-2011 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.14.2 2012-05-27 Gtk2::RecentFilter(3pm)
All times are GMT -4. The time now is 09:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy