开发者

file extention filtering does not work in procmail

procmail will not download just .xls, .doc and .docx extentions. every condition i have found either downloads everything or nothing. i am using fedora 14

conditions i have tried that dont download anything are:

*^[开发者_JS百科 ]* name:.*\.(xls|doc|docx)  
*^      name.*\.(xls|doc|docx)  
* ?? name:.*\.(xls|doc|docx)  
* filename:.\.(xls|doc|docx)

... and ever other combination of those.

EDIT: i have tried all of these as well.

* name=.*\.(xls|doc|docx)   
* ^.*name=.*.(xls|doc|docx)  
* ^.*name.*\.(xls|doc|docx)  
*^Content-.*attachment.*name=.*\.(xls|doc|docx)

Thank you in advance


Trapping 'multipart' content types first may help, but my procmail is a little rusty:

:0
* ^Content-Type: multipart/
{
  :0 B
  * ^Content-.*attachment.*name=.*\.(doc|xls)
  {

This should catch any .doc, .docx, .xls or .xlsx attachments.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜