{"action":"created","issue":{"url":"https://api.github.com/repos/vstakhov/rspamd/issues/478","labels_url":"https://api.github.com/repos/vstakhov/rspamd/issues/478/labels{/name}","comments_url":"https://api.github.com/repos/vstakhov/rspamd/issues/478/comments","events_url":"https://api.github.com/repos/vstakhov/rspamd/issues/478/events","html_url":"https://github.com/vstakhov/rspamd/issues/478","id":126495149,"number":478,"title":"Why local fuzzy worker doesn't store shingles?","user":{"login":"moisseev","id":2275981,"avatar_url":"https://avatars.githubusercontent.com/u/2275981?v=3","gravatar_id":"","url":"https://api.github.com/users/moisseev","html_url":"https://github.com/moisseev","followers_url":"https://api.github.com/users/moisseev/followers","following_url":"https://api.github.com/users/moisseev/following{/other_user}","gists_url":"https://api.github.com/users/moisseev/gists{/gist_id}","starred_url":"https://api.github.com/users/moisseev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moisseev/subscriptions","organizations_url":"https://api.github.com/users/moisseev/orgs","repos_url":"https://api.github.com/users/moisseev/repos","events_url":"https://api.github.com/users/moisseev/events{/privacy}","received_events_url":"https://api.github.com/users/moisseev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-13T19:31:08Z","updated_at":"2016-01-14T12:05:53Z","closed_at":null,"body":"~~~sql\r\n# sqlite3 fuzzy.db\r\nSQLite version 3.9.2 2015-11-02 18:31:45\r\nEnter \".help\" for usage hints.\r\nsqlite> .tables\r\ndigests   shingles\r\nsqlite> SELECT Count(*) FROM digests;\r\n15517\r\nsqlite> SELECT Count(*) FROM shingles;\r\n0\r\nsqlite> .quit\r\n~~~\r\n\r\nrspamd.conf.local.override\r\n~~~\r\nworker {\r\n    type = \"fuzzy\";\r\n    count = 1;\r\n    bind_socket = \"*:11335\";\r\n    hash_file = \"${DBDIR}/fuzzy.db\"\r\n    expire = 360d;\r\n    allow_update = \"127.0.0.1\";\r\n}\r\n\r\n# Rspamd modules configuration\r\n\r\nfuzzy_check {\r\n    # Include dynamic conf for the rule\r\n    .include(try=true,priority=1) \"${DBDIR}/dynamic/fuzzy_check.conf\"\r\n    min_bytes = 300;\r\n    rule {\r\n        servers = \"rspamd.com:11335\";\r\n        encryption_key = \"icy63itbhhni8bq15ntp5n5symuixf73s1kpjh6skaq4e7nx5fiy\";\r\n        symbol = \"FUZZY_UNKNOWN\";\r\n        mime_types = [\"application/*\"];\r\n        max_score = 20.0;\r\n        read_only = yes;\r\n        skip_unknown = yes;\r\n        fuzzy_map = {\r\n            FUZZY_DENIED {\r\n                max_score = 20.0;\r\n                flag = 1;\r\n            }\r\n            FUZZY_PROB {\r\n                max_score = 10.0;\r\n                flag = 2;\r\n            }\r\n            FUZZY_WHITE {\r\n                max_score = 2.0;\r\n                flag = 3;\r\n            }\r\n        }\r\n    }\r\n    rule {\r\n        servers = \"localhost:11335\";\r\n        symbol = \"LOCAL_FUZZY_UNKNOWN\";\r\n        mime_types = \"application/pdf\";\r\n        mime_types = \"*\";\r\n        max_score = 20.0;\r\n        read_only = no;\r\n        skip_unknown = yes;\r\n        fuzzy_map = {\r\n            LOCAL_FUZZY_DENIED {\r\n                max_score = 20.0;\r\n                flag = 11;\r\n            }\r\n            LOCAL_FUZZY_PROB {\r\n                max_score = 10.0;\r\n                flag = 12;\r\n            }\r\n            LOCAL_FUZZY_WHITE {\r\n                max_score = 2.0;\r\n                flag = 13;\r\n            }\r\n        }\r\n    }\r\n}\r\n~~~\r\n"},"comment":{"url":"https://api.github.com/repos/vstakhov/rspamd/issues/comments/171627534","html_url":"https://github.com/vstakhov/rspamd/issues/478#issuecomment-171627534","issue_url":"https://api.github.com/repos/vstakhov/rspamd/issues/478","id":171627534,"user":{"login":"moisseev","id":2275981,"avatar_url":"https://avatars.githubusercontent.com/u/2275981?v=3","gravatar_id":"","url":"https://api.github.com/users/moisseev","html_url":"https://github.com/moisseev","followers_url":"https://api.github.com/users/moisseev/followers","following_url":"https://api.github.com/users/moisseev/following{/other_user}","gists_url":"https://api.github.com/users/moisseev/gists{/gist_id}","starred_url":"https://api.github.com/users/moisseev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moisseev/subscriptions","organizations_url":"https://api.github.com/users/moisseev/orgs","repos_url":"https://api.github.com/users/moisseev/repos","events_url":"https://api.github.com/users/moisseev/events{/privacy}","received_events_url":"https://api.github.com/users/moisseev/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T12:05:53Z","updated_at":"2016-01-14T12:05:53Z","body":"~~~\r\n# tcpdump -n -nn -ttt -i lo0 -w learning.cap portrange 11333-11335\r\n\r\n# rspamc -h localhost:11334 -w 20 -f 13 fuzzy_add bugzilla.eml\r\nResults for file: bugzilla.eml (0.003 seconds)\r\nsuccess = true;\r\n~~~\r\nThe dump has been mailed to @vstakhov ."}}