문제

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:

*^[ ]* 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top