How to set filter email that don't have header Date: ?

taotoon

Well-Known Member
Nov 14, 2004
135
1
166
I am Cpanel normal user.

How to set filter email that don't have header Date: ?
In my mailbox, all of them are spam mail.

Can I use file .filter or .procmailrc ?
 

taotoon

Well-Known Member
Nov 14, 2004
135
1
166
When I added some filter in Cpanel, It will created files ~/.filter and /etc/vfilters/domain.com


I don't know which one is the master.



According to
http://www.exim.org/exim-html-4.30/doc/html/filter_3.html#SECT3.4
and
http://www.exim.org/exim-html-4.30/doc/html/filter_toc.html#TOC26


I modified the file ~/.filter to


$header_date: is ""+++++++/dev/null


I cat /etc/vfilters/domain.com , the data didn't change.

Then I tried to add some filter in Cpanel and delete it.

I cat /etc/vfilters/domain.com again, the data now updated.

Well, I goto Cpanel / email / filter

Viola! It shows my filter setting.

I tried to test by sent the no-date email, and it did work!



PS.

I don't know what is +++++++
Maybe it is cpanel syntax.


Hope these help for someone.
 
Last edited: