Re: Folder specific TO-Address

2001-05-14 Thread Thomas Roessler

On 2001-05-13 19:59:00 -0700, Osamu Aoki wrote:

>In-Reply-To: <[EMAIL PROTECTED]>; 
> from [EMAIL PROTECTED] on Fri, May 11, 2001 at 
>08:25:07PM +0200S

You could of course delete In-Reply-To, which would at 
the same time take care of References.

-- 
Thomas Roesslerhttp://log.does-not-exist.org/



Re: Folder specific TO-Address

2001-05-13 Thread Suresh Ramasubramanian

Using a large mallet, Mr. Wade whacked out:

> I agree,... but what about messages which are NOT replies?  I
> think that's what the original question was about.  If he invokes
> the  function, (bound to "m" by default), he must then
> specify a "To:" header address.  I think that's what he was
> trying to automate.
 
 owch.

-- 
Suresh Ramasubramanian + Lumber Cartel India - 
mallet @ cluestick.org + Wallopus Malletus Indigenensis
EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin



Re: Folder specific TO-Address

2001-05-13 Thread Mr. Wade

Suresh Ramasubramanian wrote:
> Using a large mallet, Mr. Wade whacked out:
> 
> > I do this as well.  I think that perhaps I misunderstood the
> > original question.  I was under the impression that the asker
> > wanted to know how to have a default "To: [EMAIL PROTECTED]"
> > header specified when he loaded his mailing list mailbox folder,
> > so that he wouldn't have to enter that as input.  You seem to be
> > discussing sorting incoming mail rather than mail composition.
>  
>  Well, I sort incoming mail, and then use folder hooks to set my from address.
>  Mutt's L (list reply to) along with "subscribe foo" in muttrc handles things
>  quite OK.

I agree,... but what about messages which are NOT replies?  I
think that's what the original question was about.  If he invokes
the  function, (bound to "m" by default), he must then
specify a "To:" header address.  I think that's what he was
trying to automate.

-- 
Linux: The Choice of the GNU Generation





Re: Folder specific TO-Address

2001-05-13 Thread Suresh Ramasubramanian

Using a large mallet, Mr. Wade whacked out:

> I do this as well.  I think that perhaps I misunderstood the
> original question.  I was under the impression that the asker
> wanted to know how to have a default "To: [EMAIL PROTECTED]"
> header specified when he loaded his mailing list mailbox folder,
> so that he wouldn't have to enter that as input.  You seem to be
> discussing sorting incoming mail rather than mail composition.
 
 Well, I sort incoming mail, and then use folder hooks to set my from address.
 Mutt's L (list reply to) along with "subscribe foo" in muttrc handles things
 quite OK.
 
-- 
Suresh Ramasubramanian + Lumber Cartel India - 
mallet @ cluestick.org + Wallopus Malletus Indigenensis
EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin



Re: Folder specific TO-Address

2001-05-13 Thread Mr. Wade

Suresh Ramasubramanian wrote:
> Using a large mallet, Mr. Wade whacked out:
> 
> > This was an attempt to have Mutt use a default "To:" address for
> > a mailbox folder, as I understand it.
>  
>  Yes.  And I use procmail with other headers (say Sender: - usually distinctive
>  to the list) to filter each list into a separate mbox

I do this as well.  I think that perhaps I misunderstood the
original question.  I was under the impression that the asker
wanted to know how to have a default "To: [EMAIL PROTECTED]"
header specified when he loaded his mailing list mailbox folder,
so that he wouldn't have to enter that as input.  You seem to be
discussing sorting incoming mail rather than mail composition.

-- 
Linux: The Choice of the GNU Generation





Re: Folder specific TO-Address

2001-05-13 Thread Osamu Aoki

Hi, I know you quoted manual... But context made me worry.  I am not
sure we are talking same thing but try explaining what I meant:

On Sun, May 13, 2001 at 08:13:28PM +0200, Wilhelm Wienemann wrote:
> > On Fri, May 11, 2001 at 08:25:07PM +0200, Wilhelm Wienemann wrote:
> > > > I am searching for a way defining a default TO: address depending
> > > > on
...
> > >   list-reply (default: L)
> >  
> > >   Reply to the current or tagged message(s) by extracting any
> > >   addresses which match the addresses given by the ``lists or
> > >   subscribe'' commands, but also honor any Mail-Followup-To
> > >   header(s) if the ``$honor_followup_to'' configuration variable is
> > >   set.  Using this when replying to messages posted to mailing lists
> > >   helps avoid duplicate copies being sent to the author of the
> > >   message you are replying to.
> > 
> > Is this true solution? 
> 
> Sorry, but I didn't say it's the 'one-and-only' solution. 
> For me it's one of more possible ways to do it which will work
> here on my box without any problems. :-)
When "L" is pressed in place of "m", it creates To: correctly as
described above but also sets additional one:

In-Reply-To: <[EMAIL PROTECTED]>; from
[EMAIL PROTECTED] on Fri, May 11, 2001 at 08:25:07PM +0200S

So it becomes part of other thread if used in place of "m" command. ;-)
"m" will not set above tag.

Original posting was about how-to-set To:... for "m", I think...

Regards,
-- 
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ 
+  Osamu Aoki <[EMAIL PROTECTED]>, GnuPG-key: 1024D/D5DE453D  +
+  My debian quick-reference, http://www.aokiconsulting.com/quick/+




Re: Folder specific TO-Address

2001-05-13 Thread Suresh Ramasubramanian

Using a large mallet, Mr. Wade whacked out:

> This was an attempt to have Mutt use a default "To:" address for
> a mailbox folder, as I understand it.
 
 Yes.  And I use procmail with other headers (say Sender: - usually distinctive
 to the list) to filter each list into a separate mbox

-- 
Suresh Ramasubramanian + Lumber Cartel India - 
mallet @ cluestick.org + Wallopus Malletus Indigenensis
EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin



Re: Folder specific TO-Address

2001-05-13 Thread Wilhelm Wienemann

Hello Osamu!

On Sat, 12 May 2001, Osamu Aoki wrote:

> On Fri, May 11, 2001 at 08:25:07PM +0200, Wilhelm Wienemann wrote:
> > > I am searching for a way defining a default TO: address depending
> > > on
> >   list-reply (default: L)
>  
> >   Reply to the current or tagged message(s) by extracting any
> >   addresses which match the addresses given by the ``lists or
> >   subscribe'' commands, but also honor any Mail-Followup-To
> >   header(s) if the ``$honor_followup_to'' configuration variable is
> >   set.  Using this when replying to messages posted to mailing lists
> >   helps avoid duplicate copies being sent to the author of the
> >   message you are replying to.
> 
> Is this true solution? 

Sorry, but I didn't say it's the 'one-and-only' solution. 
For me it's one of more possible ways to do it which will work
here on my box without any problems. :-)

Kai Weber <[EMAIL PROTECTED]> was asking on Fri, 11 May 2001 
17:12:34 +0200:
---> cut here < -
[...] 

Let's say I am in the mutt's Mailinglist folder. If I
press "m" I want a default address [EMAIL PROTECTED] there.

[...] 
---> cut here < -

If you edit the 'subscribe'-variable in your $HOME/.muttrc then
you can get one (possible) solution with the answer which I've
quoted above and which is part of the official mutt-manual.

> I do concur the use of "lists or subscribe" is a good thing if used
> appropriately.  But blanket statement makes me worry.  This makes new
> message linked to previous message which we sometines do not want when
> one wish to initiate a thread.  

IMHO it's a question of the right managing of the tools, especially the
configure-tools of mutt.

> This is valid only for continuing discussion. (I see so many careless
> posting attached to unrelated thread.)

IMHO that's not a question of the managing of the 'L' feature. 
 
> L : continue discussion on list (Good thing with "lists"

...and 'subscribe' [!])

> m : start thread.
> g : reply to all 

Also a possible way but mostly the PM of CC or BCC are enclosed.

bye - Wilhelm

-- 
   ._.   Wilhelm Wienemann <[EMAIL PROTECTED]>
  / _,\  
 | (_./  Debian GNU/Linux Version 2.2 Potato
  \, To learn more visit => http://www.debian.org/ 



Re: Folder specific TO-Address

2001-05-13 Thread Mr. Wade

Suresh Ramasubramanian wrote:
> Using a large mallet, Mr. Wade whacked out:
> 
> > > folder-hook .'unmy_hdr To:'
> > > folder-hook =IN-L-mutt-users 'my_hdr To: [EMAIL PROTECTED]'
>  
> > > A problem with this, though, is that list-replies tend to have
> > > the list address twice in the To: field.  I haven't spent any
> > > time determining a method to correct that.
>  
>  Heh, no.  Doesnt need to be that way.  Trust to mail-followup-to / reply-to
>  set by the list (that takes care of the to) and just set your from header.
>  
>  See my muttrc at http://www.hserus.net/muttrc.html for a "list oriented"
>  muttrc

Well, for one thing, not all lists (this one, for example) modify
the "Reply-To:" header.  Also, not all users' MUAs accommodate
"Mail-Followup-To:" headers, but most importantly: not all
messages a user sends is a reply to a previous message.  Too many
users contaminate threads by replying to messages with something
that is totally unrelated or break them by not replying where
appropriate, beginning new threads.  Some are simply too lazy to
address an email for themselves, so they just reply, possibly
neither understanding nor caring how annoying it is.  :)

This was an attempt to have Mutt use a default "To:" address for
a mailbox folder, as I understand it.

-- Mr. Wade

-- 
Linux: The Choice of the GNU Generation





Re: Folder specific TO-Address

2001-05-13 Thread Osamu Aoki

On Fri, May 11, 2001 at 08:25:07PM +0200, Wilhelm Wienemann wrote:
> > I am searching for a way defining a default TO: address depending on
>   list-reply (default: L)
 
>   Reply to the current or tagged message(s) by extracting any addresses
>   which match the addresses given by the ``lists or subscribe''
>   commands, but also honor any Mail-Followup-To header(s) if the
>   ``$honor_followup_to'' configuration variable is set.  Using this when
>   replying to messages posted to mailing lists helps avoid duplicate
>   copies being sent to the author of the message you are replying to.

Is this true solution?  I do concur the use of "lists or subscribe" is
a good thing if used appropriately.  But blanket statement makes me
worry.  This makes new message linked to previous message which we
sometines do not want when one wish to initiate a thread.  This is valid
only for continuing discussion. (I see so many careless posting attached
to unrelated thread.)

L : continue discussion on list (Good thing with "lists")
m : start thread.
g : reply to all 

So also redefining "m" with each folder is a good idea which someone
else already posed if "m" to work as original poster intended.  (I
should try...)

One reminder, when you do not want reply to be addressed to you but
should go to ML, set "subscribe".  Then also change .muttrc

#index format (Collasped)
set index_format="%4C %Z %{%b %d} %-15.15F %?M?(#%03M)&(%4l)? %s"

to get address displayed sanely.  This one took me a while before I
figured out

Osamu
-- 
~~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ 
+  Osamu Aoki <[EMAIL PROTECTED]>, GnuPG-key: 1024D/D5DE453D  +
+  My debian quick-reference, http://www.aokiconsulting.com/quick/+




Re: Folder specific TO-Address

2001-05-11 Thread Suresh Ramasubramanian

Using a large mallet, Mr. Wade whacked out:

> > folder-hook .'unmy_hdr To:'
> > folder-hook =IN-L-mutt-users 'my_hdr To: [EMAIL PROTECTED]'
 
> > A problem with this, though, is that list-replies tend to have
> > the list address twice in the To: field.  I haven't spent any
> > time determining a method to correct that.
 
 Heh, no.  Doesnt need to be that way.  Trust to mail-followup-to / reply-to
 set by the list (that takes care of the to) and just set your from header.
 
 See my muttrc at http://www.hserus.net/muttrc.html for a "list oriented"
 muttrc
 
-- 
Suresh Ramasubramanian + Lumber Cartel India - 
mallet @ cluestick.org + Wallopus Malletus Indigenensis
EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin



Re: Folder specific TO-Address

2001-05-11 Thread Wilhelm Wienemann

Hello Kai!

On Fri, 11 May 2001, Kai Weber wrote:

> I am searching for a way defining a default TO: address depending on
> the actual folder. Let's say I am in the mutt's Mailinglist folder. If
> I press "m" I want a default address [EMAIL PROTECTED] there.
> 
> I think it is an folder-hook thing, but I have no idea how to implement
> this. Any suggestions & tips?

Look at the Mutt-Manual at point 

  2.3.4.  Miscellaneous Functions

  list-reply (default: L)

  Reply to the current or tagged message(s) by extracting any addresses
  which match the addresses given by the ``lists or subscribe''
  commands, but also honor any Mail-Followup-To header(s) if the
  ``$honor_followup_to'' configuration variable is set.  Using this when
  replying to messages posted to mailing lists helps avoid duplicate
  copies being sent to the author of the message you are replying to.

bye - Wilhelm

-- 
   ._.   Wilhelm Wienemann <[EMAIL PROTECTED]>
  / _,\  
 | (_./  Debian GNU/Linux Version 2.2 Potato
  \, To learn more visit => http://www.debian.org/ 



Re: Folder specific TO-Address

2001-05-11 Thread Mr. Wade

Kai Weber wrote:
> I am searching for a way defining a default TO: address depending on the
> actual folder. Let's say I am in the mutt's Mailinglist folder. If I
> press "m" I want a default address [EMAIL PROTECTED] there.
> 
> I think it is an folder-hook thing, but I have no idea how to implement
> this. Any suggestions & tips?

Mr. Wade wrote:
> This might help or give you a starting place, anyway:
> 
> folder-hook .'unmy_hdr To:'
> folder-hook =IN-L-mutt-users 'my_hdr To: [EMAIL PROTECTED]'
> 
> Obviously, I use "=IN-L-mutt-users" as the mailing list folder;
> you should sdjust that accordingly for your situation.
> 
> A problem with this, though, is that list-replies tend to have
> the list address twice in the To: field.  I haven't spent any
> time determining a method to correct that.

Regarding the "problem" I described: testing indicates that Mutt
will include duplicated addresses in the command-line arguments
used to call $sendmail, but it seems my MTA, Sendmail 8.11.3,
filters out those duplicate addresses anyway, sending a message
only once to each recipient, regardless of multiple mentions of
the same recipient addresses on the command-line, so it's a
non-issue for me, (but it's good to know!  I had been very
careful in the past to delete multiple mentions of the same
recipient in the recipient fields.  I guess that's unnecessary.)

-- Mr. Wade

-- 
Linux: The Choice of the GNU Generation





Re: Folder specific TO-Address

2001-05-11 Thread Gary Johnson

On Fri, May 11, 2001 at 05:12:34PM +0200, Kai Weber wrote:

> I am searching for a way defining a default TO: address depending on the
> actual folder. Let's say I am in the mutt's Mailinglist folder. If I
> press "m" I want a default address [EMAIL PROTECTED] there.
> 
> I think it is an folder-hook thing, but I have no idea how to implement
> this. Any suggestions & tips?

I use a set of folder-hooks like this, one for each mailing list folder.

folder-hook +Incoming/mutt-users\
'macro index M ":push m^[EMAIL PROTECTED]^M^M" "mail to list"'

Gary

-- 
Gary Johnson   | Agilent Technologies
[EMAIL PROTECTED]   | RF Communications PGU
http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA



Re: Folder specific TO-Address

2001-05-11 Thread Mr. Wade

Kai Weber wrote:
> I am searching for a way defining a default TO: address depending on the
> actual folder. Let's say I am in the mutt's Mailinglist folder. If I
> press "m" I want a default address [EMAIL PROTECTED] there.
> 
> I think it is an folder-hook thing, but I have no idea how to implement
> this. Any suggestions & tips?

This might help or give you a starting place, anyway:

folder-hook .'unmy_hdr To:'
folder-hook =IN-L-mutt-users 'my_hdr To: [EMAIL PROTECTED]'

Obviously, I use "=IN-L-mutt-users" as the mailing list folder;
you should sdjust that accordingly for your situation.

A problem with this, though, is that list-replies tend to have
the list address twice in the To: field.  I haven't spent any
time determining a method to correct that.

Good luck!

-- Mr. Wade

-- 
Linux: The Choice of the GNU Generation