Forums: users (Thread #5838)

Mew-4.0.66以降への対応 (2004-08-26 03:34 by a39 #10756)

Mewのマークが改定され,`@'(multi)がなくなりました.
そのため,Mew3用のmew.elでは,mew-bsfilter-*-multiがエラーになります.
今後は`*'のみで一括処理することになります.

従来は,@->*というマーク付けにより一括処理できていましたが,*->*のままでよいのか,*->$(escape)がよいのか,*->" "がよいのか,迷うところです.
取り敢えず,*->$とする例として,quick hackしてみました.

Mew-4.0.67, CVS headをお使いの方は,お試しください.

(define-key mew-summary-mode-map "bm" 'mew-bsfilter-mark)
(define-key mew-summary-mode-map "bM" 'mew-bsfilter-mark-multi)
(define-key mew-summary-mode-map "bs" 'mew-bsfilter-spam)
(define-key mew-summary-mode-map "bS" 'mew-bsfilter-spam-multi)
(define-key mew-summary-mode-map "bc" 'mew-bsfilter-clean)
(define-key mew-summary-mode-map "bC" 'mew-bsfilter-clean-multi)

(setq mew-refile-ctrl-multi nil)

(setq mew-field-spec
(reverse (append (list (car (reverse mew-field-spec)))
'(("^X-Spam-Probability:$" t)
("^X-Spam-Flag:$" t))
(cdr (reverse mew-field-spec)))))

(defun mew-bsfilter-cmd-msg (command)
"Executing an external command specifying this message as an
argument."
(interactive)
(mew-summary-goto-message)
(mew-summary-msg
(let* ((fld (mew-summary-folder-name))
(msg (mew-summary-message-number))
(file (mew-expand-folder fld msg)))
(while (not (mew-which-exec command))
(setq command (read-string "Command: ")))
(message "Executing %s for %s..." command msg)
(call-process command nil nil nil file)
(message "Executing %s for %s...done" command msg))))

(defun mew-bsfilter-cmd-msgs (command)
"Executing an external command specifying messages
marked with '*' as arguments."
(interactive)
(mew-summary-multi-msgs
(let ()
(while (not (mew-which-exec command))
(setq command (read-string "Command: ")))
(message "Executing %s ..." command)
(apply 'call-process command nil nil nil FILES)
(message "Executing %s ...done" command))))


(defun mew-bsfilter-mark ()
"mew-bsfilter-mark"
(interactive)
(mew-bsfilter-cmd-msg "bs_mark")
(mew-summary-escape))

(defun mew-bsfilter-mark-multi ()
"mew-bsfilter-mark-multi"
(interactive)
(mew-bsfilter-cmd-msgs "bs_mark")
(mew-summary-mark-escape))

(defun mew-bsfilter-spam ()
"mew-bsfilter-spam"
(interactive)
(mew-bsfilter-cmd-msg "bs_spam")
(mew-summary-escape))

(defun mew-bsfilter-spam-multi ()
"mew-bsfilter-spam-multi"
(interactive)
(mew-bsfilter-cmd-msgs "bs_spam")
(mew-summary-mark-escape))

(defun mew-bsfilter-clean ()
"mew-bsfilter-clean"
(interactive)
(mew-bsfilter-cmd-msg "bs_clean")
(mew-summary-escape))

(defun mew-bsfilter-clean-multi ()
"mew-bsfilter-clean-multi"
(interactive)
(mew-bsfilter-cmd-msgs "bs_clean")
(mew-summary-mark-escape))

Reply to #10756×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: Mew-4.0.66以降への対応 (2004-08-28 03:23 by nabeken #10798)

情報ありがとうございます
Reply to #10756

Reply to #10798×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Mew-4.0.68 Released (2004-08-30 16:02 by a39 #10832)

Mew-4.0.68がリリースされました.
久々のβリリースです.
Reply to #10756

Reply to #10832×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: Mew-4.0.66以降への対応 (2004-09-28 18:09 by Anonymous #11207)

新しく `U' (unread) ができたので、
U->* とかはどうでしょうか?

読む前に判定した方がいいでしょうし。
Reply to #10756

Reply to #11207×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: Mew-4.0.66以降への対応 (2004-09-28 20:06 by a39 #11210)

U->* もいいですね.

その後一応検討もしたのですが,また最近マークを増やそうという声もあがっているので,しばらく様子をみているところです.
nabekenさんはどうお考えなのでしょう.ちょっと気になるところです.
Reply to #10756

Reply to #11210×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: Mew-4.0.66以降への対応 (2004-09-29 22:55 by nabeken #11232)

正式リリースされてから考えます。
Reply to #11210

Reply to #11232×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: Mew-4.0.69 released (2004-10-01 19:01 by a39 #11254)

Mew-4.0.69 がリリースされました.まだまだbetaです.

POP proxyを使わずにincしながらspamを判定するのであれば,
Mewのspam関連機能を使う形でelispを書いた方が,Mewの利用者には
敷居が低いのかなという気がしてきました.
Reply to #10756

Reply to #11254×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Mew-4.1 released (2004-10-18 23:44 by trueroad #11568)

正式リリースの Mew-4.1 が出ましたね。

個人的には POP over SSL を使っていることもあって、
POP Proxy は使いたくありません。

そこで、POP Proxy を使わずに
inc 時に判定できるのであれば、
非常に便利だなぁ、と思います。

ただ、非力なマシンだと、
判定にかなりのパワーを消費するような感じがありますので、
一旦 inc した後で、ゆっくりまとめて判定できる以前の方法も
選択できるようにしていただければ非常にうれしいです。
Reply to #11254

Reply to #11568×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: Mew-4.1 released (2004-10-20 23:01 by nabeken #11608)

bsfilter -> POP server -> POP over SSL -> mew
という経路で、どうでしょうか?

mewのPOPでのincでbsfilterをかますは、elispがPOPを喋っているので、私にはちょっと難しいのです。

私は、
POP server @ provider -> fetchmail -> bsfilter -> procmail -> cleanのみPOP server @ localhost -> mew
で使っています。
これだと、目立たないところでbsfilterが走るので、重さが気になりません。
Reply to #11568

Reply to #11608×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: Mew-4.1 released (2004-10-22 23:24 by trueroad #11627)

現在は、
POP over SSL server @ provider -> mew
という構成で使ってます。

もちろん、
POP over SSL server @ provider -> stunnel -> fetchmail -> bsfilter -> POP server @ local -> mew
とかやればできるんでしょうけど、あらかじめ各種デーモンを起動しておかなければならないのが面倒な上に、侵入される危険性も増えてしまいます。それよりも何よりも、mew の鍵アイコンが表示されなくなるのが悲しいです。

あとは、stunnel->bsfilter の wrapper でも作って
mew に使わせればできるかもしれないですね。

mew 側に inc 時にフィルタへ渡してくれる機構があれば…。
Reply to #11608

Reply to #11627×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login