{"id":1765,"date":"2012-08-03T06:10:27","date_gmt":"2012-08-02T21:10:27","guid":{"rendered":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/?p=1765"},"modified":"2012-08-03T06:10:27","modified_gmt":"2012-08-02T21:10:27","slug":"sieve-el","status":"publish","type":"post","link":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/2012\/1765","title":{"rendered":"sieve.el"},"content":{"rendered":"<p>sieve.el \u3067\u691c\u7d22\u3057\u3066\u308b\u306e\u306b<\/p>\n<blockquote><p>\u6b21\u306e\u691c\u7d22\u7d50\u679c\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059: sieve.jp<\/p><\/blockquote>\n<p>\u3068\u304b\u629c\u304b\u3059 Google \u306f\u6ec5\u3073\u308d\u3001\u5272\u3068\u30de\u30b8\u3067\u3002<\/p>\n<p><!--more--><\/p>\n<p>OS X Server \u304b\u3089 GPLv3 \u306a <a href=\"http:\/\/roundcube.net\/\">RoundCube <\/a>\u304c\u7121\u304f\u306a\u3063\u305f\u306e\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u30e1\u30fc\u30eb\u632f\u308a\u5206\u3051\u3092\u884c\u3046 Sieve \u306e\u30eb\u30fc\u30eb\u4fee\u6b63\u304c\u51fa\u6765\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3067<span style=\"color: #888888;\">(\u3044\u3084\u9811\u5f35\u308c\u3070\u3067\u304d\u308b\u3051\u3069)<\/span>\u3069\u3046\u3057\u305f\u3082\u3093\u304b\u306a\u30fc\u3001\u3068\u60a9\u3093\u3067\u305f\u306e\u3067\u3059\u304c\u3001\u5b9f\u306f Emacs \u306b\u306f\u304b\u306a\u308a\u524d\u304b\u3089 Manage Sieve Protocol \u3092\u558b\u308c\u308b sieve.el \u304c\u4ed8\u5c5e\u3057\u3066\u3044\u308b<span style=\"color: #888888;\">(\u3068\u3044\u3046\u304b gnus \u306e\u4e00\u90e8\u307f\u305f\u3044)<\/span>\u3089\u3057\u304f\u3001\u305d\u308c\u3092\u4f7f\u3048\u3070\u3059\u3079\u3066\u89e3\u6c7a\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u8a00\u3063\u3066\u3082 Emacs \u4ed8\u5c5e\u306a\u3060\u3051\u3042\u3063\u3066\u4f7f\u3044\u65b9\u306f\u3068\u3063\u3066\u3082\u7c21\u5358<span style=\"color: #888888;\">(<a href=\"http:\/\/www.bookshelf.jp\/texi\/sieve-ja\/sieve-ja.html\">Texinfo\u306e\u30da\u30fc\u30b8\u306e\u5c11\u306a\u3055<\/a>\u3068\u3044\u3063\u305f\u3089!)<\/span><\/p>\n<ol>\n<li>M-x sieve-mode<\/li>\n<li>C-c RET<\/li>\n<li>\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u540d\u3092\u5165\u529b<\/li>\n<li>\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u5165\u529b<\/li>\n<li>\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b<\/li>\n<\/ol>\n<p>\u2026\u306a\u3093\u3060\u3051\u3069\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u308c\u3066\u3082 SASL \u306e\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u5165\u308c\u306a\u3044\u3002\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u30ed\u30b0<span style=\"color: #888888;\">(\/Library\/Logs\/Mail\/mailaccess.log)<\/span>\u3092\u898b\u3066\u307f\u308b\u3068<\/p>\n<pre>Aug  1 23:45:01 flora.hyrule.jp log[28337]: managesieve-login: Disconnected: Inactivity (auth failed, 1 attempts): user=&lt;goro&gt;, method=DIGEST-MD5, rip=127.0.0.1, lip=127.0.0.1, secured<\/pre>\n<p>\u3068\u2026\u3002<\/p>\n<p>\u3048!? IMAP \u3067 MD5 \u4f7f\u3048\u3066\u308b\u306e\u306b\u30a8\u30e9\u30fc\u306b\u306a\u3093\u306e!? \u3068\u601d\u3063\u3066\u3082\u3046\u3061\u3087\u3063\u3068\u8abf\u3079\u305f\u3089 IMAP \u306e\u30ed\u30b0\u306f\u3053\u3093\u306a\u611f\u3058<\/p>\n<pre>Aug  1 23:45:04 flora.hyrule.jp log[28337]: imap-login: Login: user=&lt;goro&gt;, method=CRAM-MD5, rip=127.0.0.1, lip=127.0.0.1, mpid=89682, secured<\/pre>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3069\u3046\u3082 CRAM-MD5 \u306a\u3089\u554f\u984c\u306a\u3044\u3051\u3069 DIGEST-MD5 \u3060\u3068\u30e6\u30fc\u30b6\u30fc\u3092\u898b\u3064\u3051\u3089\u308c\u306a\u3044\u307f\u305f\u3044?<\/p>\n<p>sieve-manage.el \u306b\u306f<\/p>\n<pre>(defcustom sieve-manage-authenticators '(digest-md5\r\n\t\t\t\t\t cram-md5\r\n\t\t\t\t\t scram-md5\r\n\t\t\t\t\t ntlm\r\n\t\t\t\t\t plain\r\n\t\t\t\t\t login)\r\n  \"Priority of authenticators to consider when authenticating to server.\"\r\n  :group 'sieve-manage)<\/pre>\n<p>\u3068\u3044\u3046\u5177\u5408\u306b DIGEST-MD5 \u3082 CRAM-MD5 \u3082\u558b\u308c\u308b\u3063\u307d\u304f\u5b9a\u7fa9\u3055\u308c\u3066\u308b\u306e\u3067\u9069\u5207\u306a\u5909\u6570\u3092\u30bb\u30c3\u30c8\u3059\u308c\u3070\u6700\u521d\u3063\u304b\u3089 CRAM-MD5 \u3067\u306e\u8a8d\u8a3c\u3092\u8a66\u307f\u308b\u6c17\u304c\u3059\u308b\u3093\u3060\u3051\u3069\u3001\u3071\u3063\u3068\u307f\u305f\u9650\u308a\u3058\u3083\u6307\u5b9a\u306e\u65b9\u6cd5\u304c\u308f\u304b\u3093\u306a\u3044\u3093\u3060\u3088\u306d\u30fc(\u5f31)\u3002\u307e\u3001\u4e0a\u624b\u304f\u30e6\u30fc\u30b6\u30fc\u3092\u898b\u3064\u3051\u3089\u308c\u306a\u3044\u8a8d\u8a3c\u65b9\u5f0f\u3092\u6709\u52b9\u5316\u3057\u3066\u3066\u3082\u7121\u99c4\u306a\u306e\u3067\u3001 <a href=\"http:\/\/dovecot.org\/\">Dovecot<\/a> \u5074\u3067\u306a\u3093\u3068\u304b\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n<a href=\"http:\/\/dovecot.org\/\">Dovecot<\/a> \u306e\u8a2d\u5b9a\u306f OS X Server \u3067\u306f<\/p>\n<pre> \/Library\/Server\/Mail\/Config\/dovecot\/dovecot.conf<\/pre>\n<p>\u3067\u3059\u304c\u3001\u8a8d\u8a3c\u90e8\u5206\u306f\u3053\u3053\u3067\u306f\u306a\u304f<\/p>\n<pre> \/Library\/Server\/Mail\/Config\/dovecot\/conf.d\/10-auth.conf<\/pre>\n<p>\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002\u305d\u306e\u307e\u3093\u307e\u306a\u306e\u3067\u9593\u9055\u3044\u3088\u3046\u304c\u306a\u3044\u3068\u306f\u601d\u3044\u307e\u3059\u304c\u4e0b\u8a18\u306e\u3088\u3046\u306b digest-md5 \u3092\u6d88\u3057\u3061\u3083\u3044\u307e\u3059\u3002<\/p>\n<pre>---auth_mechanisms = cram-md5 x-plain-submit digest-md5 gssapi\r\n+++auth_mechanisms = cram-md5 x-plain-submit gssapi<\/pre>\n<p>\u305d\u308c\u304c\u7d42\u308f\u3063\u305f\u3089 dovecot \u306e\u518d\u8d77\u52d5\u3067\u3059\u304c\u3001 Server.app \u69d8\u3092\u5229\u7528\u3057\u3066\u505c\u6b62 -&gt; \u958b\u59cb\u3068\u3059\u308b\u306e\u304c\u4e00\u756a\u9593\u9055\u3044\u304c\u306a\u3044\u3088\u3046\u306a\u3001\u3042\u308b\u3088\u3046\u306a\u2026\u3002<br \/>\n\u3068\u3044\u3046\u3053\u3068\u3067\u518d\u8d77\u52d5\u7d42\u4e86\u5f8c\u306b sieve-mode \u306b\u5165\u3063\u3066\u30b5\u30fc\u30d0\u30fc\u6307\u5b9a\u3092\u3057\u305f\u3068\u3053\u308d\u3001\u76ee\u51fa\u5ea6\u304f\u30b5\u30fc\u30d0\u30fc\u5074\u306b\u4fdd\u5b58\u3057\u3066\u3042\u308b\u30ec\u30b7\u30d4\u304c\u7de8\u96c6\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f!<\/p>\n<p>\u3061\u306a\u307f\u306b\u30ec\u30b7\u30d4\u3092\u5f04\u3063\u305f\u3042\u3068\u306b\u3001\u3044\u3064\u3082\u306e\u3088\u3046\u306b C-x C-s \u3059\u308b\u3068\u30ed\u30fc\u30ab\u30eb\u306b\u4fdd\u5b58\u3055\u308c\u3061\u3083\u3046\u3060\u3051\u306a\u306e\u3067\u3001 C-x C-l \u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u306a\u3044\u3068\u4e0d\u5e78\u306b\u306a\u308a\u307e\u3059\u3002\u3042\u3093\u307e\u308a\u4f7f\u308f\u306a\u3044\u30ad\u30fc\u30d0\u30a4\u30f3\u30c9\u3067\u9055\u548c\u611f\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u6ce8\u610f\u3059\u308b\u306e\u306f\u305d\u308c\u3050\u3089\u3044? \u6700\u521d\u304b\u3089\u30ec\u30b7\u30d4\u3092\u66f8\u304f\u306e\u306f\u3061\u3087\u3063\u3068\u9762\u5012\u306a\u306e\u3067\u3001 <a href=\"http:\/\/roundcube.net\/\">RoundCube <\/a>\u3092\u81ea\u524d\u3067\u5165\u308c\u305f\u307b\u3046\u304c\u4fbf\u5229\u306f\u4fbf\u5229\u3067\u3057\u3087\u3046\u306d\u3047\u3002\u3068\u3044\u3046\u304b Mail.app \u306b\u3053\u306e\u6a5f\u80fd<span style=\"color: #888888;\">(\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u30e1\u30fc\u30eb\u632f\u308a\u5206\u3051\u6a5f\u80fd\u306d)<\/span>\u3092\u4ed8\u3051\u3066\u3082\u30d0\u30c1\u306f\u3042\u305f\u3089\u306a\u3044\u3068\u601d\u3046\u3093\u3060\u3051\u3069\u306a\u30fc\u3002\u307e\u3041\u3001 Mail.app \u7684\u306b\u306f\u632f\u308a\u5206\u3051\u3057\u306a\u3044\u3067\u691c\u7d22\u3057\u308d\u3088\u3001\u3068\u3044\u3046\u8a2d\u8a08\u3060\u308d\u3046\u304b\u3089\u3064\u304f\u898b\u8fbc\u307f\u306f\u306a\u3044\u304b\u3082\u3067\u3059\u304c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>sieve.el \u3067\u691c\u7d22\u3057\u3066\u308b\u306e\u306b \u6b21\u306e\u691c\u7d22\u7d50\u679c\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059: sieve.jp \u3068\u304b\u629c\u304b\u3059 Google \u306f\u6ec5\u3073\u308d\u3001\u5272\u3068\u30de\u30b8\u3067\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[76,53,57,62,23],"class_list":["post-1765","post","type-post","status-publish","format-standard","hentry","category-emacs","tag-emacs","tag-lion-server","tag-open-directory","tag-os-x-server","tag-software"],"_links":{"self":[{"href":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/posts\/1765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/comments?post=1765"}],"version-history":[{"count":16,"href":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/posts\/1765\/revisions"}],"predecessor-version":[{"id":1794,"href":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/posts\/1765\/revisions\/1794"}],"wp:attachment":[{"href":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/media?parent=1765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/categories?post=1765"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/tags?post=1765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}