Forums: users (Thread #12331)

良いメールのコピーだけを転送するには? (2006-09-15 13:59 by Anonymous #24898)

おたずねします.
.forward 設定でbsfilterを使っています.spamは~/Mail/spamに落としていますが,良いメールのコピーだけを別のアカウントに転送したいのですが,.forwardに

"|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #user"
tensousaki

と書いても,~user/Mail/spamに落ちたspamも tensousakiにコピーが転送されます.
spamでないメールのコピーだけを転送する方法はありますでしょうか?

Reply to #24898×

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: 良いメールのコピーだけを転送するには? (2006-09-17 16:11 by nabeken #24937)

.forwardに2行でそのように書かれているのなら、procmailに渡すのとは別にコピーが作られtensousakiに送られる、という動作だと思います。
.forwardにtensousakiを書くのを止めて、
.procmailrcの最後に、

:0
tensousaki

とでも書いて、procmailに転送させるのはどうでしょうか。
Reply to #24898

Reply to #24937×

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: 良いメールのコピーだけを転送するには? (2006-09-17 16:19 by nabeken #24938)

:0
! tensousaki
ですか。
Reply to #24937

Reply to #24938×

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: 良いメールのコピーだけを転送するには? (2006-09-18 16:24 by Anonymous #24959)

nabeken様,ありがとうございます.アドバイスに従い,.procmailrcに以下のように追加することで,できました.

:0 fw
| bsfilter --pipe --insert-flag --insert-probability

:0
* ^X-Spam-Flag: Yes
spam/.

:0 c
! tensousaki
Reply to #24898

Reply to #24959×

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