Re: different hooks for Email/Usenet - nntp patch vs BCC?

2002-03-25 Thread Rocco Rutte

Hi,

On Sat, Mar 23, 2002 at 12:09:40:PM -0500 Andre Berger wrote:
 * Sven Guckes [EMAIL PROTECTED], 2002-03-22 20:31 -0500:
  well, does this BCC header get posted, too?
  if not then I don't a problem..  *shrug*

 Indirectly:
 To: undisclosed recipients ;
 is generated, but no mail is sent.

Who does insert it?

This is just a thought but in Mutt and in Vsevolod's nntp patch one may
specify programs for delivery of mail/news. A short wrapper (maybe Perl)
for both could strip of the 'Newsgroups'-header and deliver to sendmail
and strip of the 'To:', 'Cc:' and 'Bcc:'-header to deliver to inews.

Rocco



msg26047/pgp0.pgp
Description: PGP signature


Re: different hooks for Email/Usenet - nntp patch vs BCC?

2002-03-24 Thread Andre Berger

* Sven Guckes [EMAIL PROTECTED], 2002-03-22 20:31 -0500:
 * Andre Berger [EMAIL PROTECTED] [2002-03-18 15:51]:
   Can't you BCC all messages to one address, and filter with procmail?
  that's what I'm doing :) The problem is, when I
  post news (nntp-patch), I don't want a Bcc header.
 
 well, does this BCC header get posted, too?
 if not then I don't a problem..  *shrug*
 
 Sven
 

Indirectly:

To: undisclosed recipients ;

is generated, but no mail is sent.

-Andre




msg25975/pgp0.pgp
Description: PGP signature


Re: different hooks for Email/Usenet

2002-03-18 Thread Andre Berger

* Nicolas Rachinsky [EMAIL PROTECTED], 2002-03-18 10:17 -0500:
 * Andre Berger [EMAIL PROTECTED] [2002-03-17 21:50:28 -0500]:
  I'm working on different computers at work and want to save my mail
  on none of them. Bcc is a convenient mail to keep track of all my
  mail in one place, my compi at home. Where I use fcc-hooks BTW.
 
 Can't you BCC all messages to one address, and filter with procmail?
 
 Nicolas

Nicolas,

that's what I'm doing :) The problem is, when I post news
(nntp-patch), I don't want a Bcc header.

-Andre




msg25676/pgp0.pgp
Description: PGP signature


Re: different hooks for Email/Usenet

2002-03-18 Thread Nicolas Rachinsky

* Andre Berger [EMAIL PROTECTED] [2002-03-18 10:50:49 -0500]:
 that's what I'm doing :) The problem is, when I post news
 (nntp-patch), I don't want a Bcc header.

Uh, sorry, I didn't follow the thread closely, it seems I missed the
real problem.

Nicolas



Re: different hooks for Email/Usenet

2002-03-17 Thread Sven Guckes

* Andre Berger [EMAIL PROTECTED] [2002-03-17 02:05]:
 What I'm trying to accomplish is more or less the same Jerome (the
 original poster) wants. We use mutt with nntp-patch and want to set
 headers according to the fact if we are mailing or posting.

i got that.   however, you did not describe
what the goal of *your* setup should be.

 What I want is to test if there is a To-header or not - if
 there is one, I'm mailing, if there is none, I'm posting.

hmm.. ok.  i think.  (i do not know what else the NNTP patches offer.)

 If I'm mailing, add a Bcc header (I'm Bccing
 all mail to myself to keep track of it).
 If not, do not add this header because
 this results in an ugly To: undiclosed
 recipients ; line in my postings.

If you just want mutt to keep
a copy of all your messages
depending on Email or Usenet
then why not set FCC instead?

Why *send* a copy?

 I've tried an otherwise empty .muttrc file and
 send-hook .  unmy_hdr *
 send-hook  '~t ..*''my_hdr Bcc: mail'
 send-hook !'~t ..*''my_hdr Bcc: news'

  fcc-hook'~t .'   +MAIL
  fcc-hook  '! ~t .'   +NEWS

Isn't this easier?

 Testing the settings:
 1. (mail) no bcc
 2. (mail) bcc: mail
 3. (news) bcc: mail
 4. (news) bcc: news
 So it seems to work, but the
 send-hook is one message late.

huh?

Sven

-- 
Sven Guckes  [EMAIL PROTECTED]
http://www.math.fu-berlin.de/~guckes/mutt/setup.html



Re: different hooks for Email/Usenet

2002-03-17 Thread Andre Berger

* Sven Guckes [EMAIL PROTECTED], 2002-03-17 18:26 -0500:
 * Andre Berger [EMAIL PROTECTED] [2002-03-17 02:05]:
[...]
 If you just want mutt to keep
 a copy of all your messages
 depending on Email or Usenet
 then why not set FCC instead?
 
 Why *send* a copy?
[...]
   fcc-hook'~t .'   +MAIL
   fcc-hook  '! ~t .'   +NEWS
 
 Isn't this easier?

I'm working on different computers at work and want to save my mail
on none of them. Bcc is a convenient mail to keep track of all my
mail in one place, my compi at home. Where I use fcc-hooks BTW.

 
  Testing the settings:
  1. (mail) no bcc
  2. (mail) bcc: mail
  3. (news) bcc: mail
  4. (news) bcc: news
  So it seems to work, but the
  send-hook is one message late.
 
 huh?

[sigh] this means I'm trying to send 4 messages for test purposes
(mail, then mail, then news, then news). Send-hooks trying to set Bcc
headers do not effect the current but the next message!

-Andre




msg25651/pgp0.pgp
Description: PGP signature