[imapfilter-devel] Imapfilter Problem

Lefteris Chatzibarbas lefcha at hellug.gr
Thu Aug 7 23:13:53 EEST 2003


On Thu, Aug 07, 2003 at 12:39:38PM -0700, Jim Gifford wrote:
> I don't see anything wrong, but I keep getting this error message.
> 
> imapfilter: warning: improper dir .imapfilter permissions
> imapfilter: warning: dir's mode should be 700 not 770
> imapfilter: parse error in config file at row 19
> imapfilter: closing socket; Bad file descriptor
> 
> I have fixed the permissions error but the parse error I have no idea.
> 
> My config is attached.
>
> [...]
> 
> account account1 firewall:password at mail.jg555.com:143
>   folder inbox INBOX
>   folder spam Spam
>   folder virus Virus
> 
> account account2 firewall-support:password at mail.jg555.com:143
>   folder inbox INBOX
>   folder spam Spam
>   folder virus Virus
>
> [...]
>
> job 7days spam,virus
>
> [...]

Account, folder and filter alias are unique across the configuration
file, ie. you cannot use the same folder alias twice.  So the above
would be written:

  account account1 firewall:password at mail.jg555.com:143
    folder inbox1 INBOX
    folder spam1 Spam
    folder virus1 Virus
  
  account account2 firewall-support:password at mail.jg555.com:143
    folder inbox2 INBOX
    folder spam2 Spam
    folder virus2 Virus

  ...

  job 7days spam1,spam2,virus1,virus2

  ...


PS. I know... it isn't the most efficient way... after v1.0 imapfilter
would be benefited from a redesign of its configuration file, which
should be made simpler, more flexible and more powerful.  Some things
can be accomplished nice and cleanly, but other look really ugly.




More information about the Imapfilter-devel mailing list