Sponsored Content
Full Discussion: procmail rule
Top Forums UNIX for Beginners Questions & Answers Answers to Frequently Asked Questions Email Antispam Techniques and Email Filtering procmail rule Post 47606 by Optimus_P on Friday 13th of February 2004 09:39:11 AM
Old 02-13-2004
i believe it is becuase it is an extended char.

if your filter can understand octal or hex you might have a better chance.

or if you can define a new char encodeing for proc mail then you will be set.
 

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. UNIX for Dummies Questions & Answers

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... (1 Reply)
Discussion started by: luiz_fer10
1 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. UNIX and Linux Applications

procmail configuration pronblem?

Hi, I am using "procmail" for triggering an application job which is doing some database operations.The Home directory for my application script has the permissions 2771 which is a policy recommendation. As we know procmail won't accept it's default configuration file $HOME/.procmailrc if... (1 Reply)
Discussion started by: DILEEP410
1 Replies

6. 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

7. 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

8. 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

9. 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

10. 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
LDAP_SEARCH(3)						     Library Functions Manual						    LDAP_SEARCH(3)

NAME
ldap_search, ldap_search_s, ldap_search_st - Perform an LDAP search operation SYNOPSIS
#include <sys/time.h> /* for struct timeval definition */ #include <ldap.h> int ldap_search(ld, base, scope, filter, attrs, attrsonly) LDAP *ld; char *base; int scope; char *filter, *attrs[]; int attrsonly; int ldap_search_s(ld, base, scope, filter, attrs, attrsonly, res) LDAP *ld; char *base; int scope; char *filter, *attrs[] int attrsonly; LDAPMessage **res; int ldap_search_st(ld, base, scope, filter, attrs, attrsonly, timeout, res) LDAP *ld; char *base; int scope; char *filter, *attrs[] int attrsonly; struct timeval *timeout; LDAPMessage **res; DESCRIPTION
These routines are used to perform LDAP search operations. ldap_search_s() does the search synchronously (i.e., not returning until the operation completes). ldap_search_st() does the same, but allows a timeout to be specified. ldap_search() is the asynchronous version, initiating the search and returning the message id of the operation it initiated. Base is the DN of the entry at which to start the search. Scope is the scope of the search and should be one of LDAP_SCOPE_BASE, to search the object itself, LDAP_SCOPE_ONELEVEL, to search the object's immediate children, or LDAP_SCOPE_SUBTREE, to search the object and all its descendents. Filter is a string representation of the filter to apply in the search. Simple filters can be specified as attributetype=attributevalue. More complex filters are specified using a prefix notation according to the following BNF: <filter> ::= '(' <filtercomp> ')' <filtercomp> ::= <and> | <or> | <not> | <simple> <and> ::= '&' <filterlist> <or> ::= '|' <filterlist> <not> ::= '!' <filter> <filterlist> ::= <filter> | <filter> <filterlist> <simple> ::= <attributetype> <filtertype> <attributevalue> <filtertype> ::= '=' | '~=' | '<=' | '>=' The '~=' construct is used to specify approximate matching. The representation for <attributetype> and <attributevalue> are as described in RFC 2254. In addition, <attributevalue> can be a single * to achieve an attribute existence test, or can contain text and *'s inter- spersed to achieve substring matching. For example, the filter "mail=*" will find any entries that have a mail attribute. The filter "mail=*@terminator.rs.itd.umich.edu" will find any entries that have a mail attribute ending in the specified string. To put parentheses in a filter, escape them with a backslash '' character. See RFC 2254 for a more complete description of allowable filters. See ldap_getfilter(3) for routines to help in con- structing search filters automatically. Attrs is a null-terminated array of attribute types to return from entries that match filter. If NULL is specified, all attributes will be returned. The type "*" (LDAP_ALL_USER_ATTRIBUTES) may be used to request all user attributes to be returned. The type "+"(LDAP_ALL_OPERA- TIONAL_ATTRIBUTES) may be used to request all operational attributes to be returned. To request no attributes, the type "1.1" (LDAP_NO_ATTRS) should be listed by itself. Attrsonly should be set to 1 if only attribute types are wanted. It should be set to 0 if both attributes types and attribute values are wanted. ERRORS
ldap_search_s() and ldap_search_st() will return the LDAP error code resulting from the search operation. See ldap_error(3) for details. ldap_search() returns -1 in case of trouble. NOTES
Note that both read and list functionality are subsumed by these routines, by using a filter like "objectclass=*" and a scope of LDAP_SCOPE_BASE (to emulate read) or LDAP_SCOPE_ONELEVEL (to emulate list). These routines may dynamically allocate memory. The caller is responsible for freeing such memory using supplied deallocation routines. Return values are contained in <ldap.h>. SEE ALSO
ldap(3), ldap_result(3), ldap_getfilter(3), ldap_error(3) ACKNOWLEDGEMENTS
OpenLDAP is developed and maintained by The OpenLDAP Project (http://www.openldap.org/). OpenLDAP is derived from University of Michigan LDAP 3.3 Release. OpenLDAP 2.0.27-Release 25 July 1999 LDAP_SEARCH(3)
All times are GMT -4. The time now is 11:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy