Re: Question(s) about folder-hook

2007-08-17 Thread Chris G
On Fri, Aug 17, 2007 at 05:12:34PM +0200, Alain Bench wrote:
> Hello Kyle and Chris,
> 
>  On Sunday, August 12, 2007 at 9:23:50 -0600, Kyle Wheeler wrote:
> 
> > I *believe* [the folder-hook regexp will] match against
> > /home/chris/Mail/france/meteo, but it's possible it might be only
> > against =france/meteo (I doubt it though).
> 
> Both, in some way. A folder-hook regexp is matched against the full
> path, period. But if you write an "=" as first character of the regexp,
> this shortcut first gets expanded to the value of $folder (at hook's
> parsing time), then the result is matched against the full path.
> 
> Note you can't usefully write a "^=blah" folder-hook regexp: Only
> the first character gets expanded. In fact you can neither use the "^"
> anchor: It gets expanded to the current folder name, which during muttrc
> parsing is the empty string. Fleature collision, see bug/2402 "damaged
> regexps in folder-hooks".
> 
> 
> > It will certainly be more than just meteo.
> 
> Except in case the user does:
> 
> | $ cd /home/chris/Mail/france/
> | $ mutt -f meteo
> 
> But then the status line shows just "meteo", not "=france/meteo".
> We're not exactly in the initial conditions anymore.
> 
> To trigger on a folder filename regardless of path, I tend to write
> regexps like: "\\ a folder-hook will also trigger on =espagne/meteo and /tmp/meteo though,
> which may be wanted or not.
> 
Thank Alain for that very complete explanation.

-- 
Chris Green


Re: Can one specify the order of display of directories/folders

2007-08-17 Thread Chris G
On Thu, Aug 16, 2007 at 05:01:43PM -0600, Kyle Wheeler wrote:
> On Thursday, August 16 at 11:13 PM, quoth Chris G:
> >I know one can specify what directories are shown when doing a
> >change-folder command (using the M[ask] command) but is it possible
> >to alter the order in which they are displayed?  Or is it that it's
> >dependent on the order in which the operating system displays them?
> 
> Press 'o' to change the sort order (or 'O' for reverse sort order).
> 
Ah, oops, I should have seen that - I hadn't noticed that 'o' works
during a change-folder as well as when looking at an index.  Thanks.

-- 
Chris Green


Re: Question(s) about folder-hook

2007-08-17 Thread Alain Bench
Hello Kyle and Chris,

 On Sunday, August 12, 2007 at 9:23:50 -0600, Kyle Wheeler wrote:

> I *believe* [the folder-hook regexp will] match against
> /home/chris/Mail/france/meteo, but it's possible it might be only
> against =france/meteo (I doubt it though).

Both, in some way. A folder-hook regexp is matched against the full
path, period. But if you write an "=" as first character of the regexp,
this shortcut first gets expanded to the value of $folder (at hook's
parsing time), then the result is matched against the full path.

Note you can't usefully write a "^=blah" folder-hook regexp: Only
the first character gets expanded. In fact you can neither use the "^"
anchor: It gets expanded to the current folder name, which during muttrc
parsing is the empty string. Fleature collision, see bug/2402 "damaged
regexps in folder-hooks".


> It will certainly be more than just meteo.

Except in case the user does:

| $ cd /home/chris/Mail/france/
| $ mutt -f meteo

But then the status line shows just "meteo", not "=france/meteo".
We're not exactly in the initial conditions anymore.

To trigger on a folder filename regardless of path, I tend to write
regexps like: "\\http://www.chiark.greenend.org.uk/~sgtatham/bugs.html>


Escape characters in messages

2007-08-17 Thread Nicolas
Hello,

I use mutt since 3-4 years. Sometimes, I receive messages which contain
escape characters. Here is what is looks like :
\222 is displayed while a ' should appear
\200 is displayed while a  should appear

That mess happens in the messages coming from the same people. One of
them use the following user agent :
User-Agent: Internet Messaging Program (IMP) 3.2.5
... which probably is a web mail.

What could I do to display the characters properly ?

Thanks for your help.

Nicolas, Paris.

-- 
~~
~ BOYCOTT SUSE & NOVELL (C)(TM)(R) MICRO$OFT ~
~~
~I DO LIKE AND SUPPORT GPL VERSION 3 ~
~~


Re: GPG Signing based on recipient

2007-08-17 Thread Michelle Konzack
Hi Kyle,

Am 2007-08-13 09:58:37, schrieb Kyle Wheeler:
> What you need to do is separate them into different send-hooks, like 
> so:
> 
> send-hook '~C [EMAIL PROTECTED]' 'my_hdr From: Test Account <[EMAIL 
> PROTECTED]>'
> send-hook '~C [EMAIL PROTECTED]' 'set pgp_sign_as=98765432198765432'
> 
> Unfortunately, you can't have a single send-hook execute multiple 
> commands.

Excuise me if I sit on my line but I have:

[ '~/.mutt/hook-send' ]-

send-hook . ''

send-hook '~t (delorie.com\|watt-32\|alleg-main)' \
  'source ~/.mutt/headers; \
   my_hdr From: Michelle Konzack <[EMAIL PROTECTED]>; \
   my_hdr X-Uptime: `uptime`; \
   my_hdr X-Homepage-4: http://freenet-homepage.de/dos4michelle/; \
   my_hdr Fcc: =.ML_devel/; \
   set pgp_autosign=yes; \
   set pgp_sign_as="0xE8C09D5A"; \
   set edit_headers=yes; \
   set signature=~/.signatures/rotate.txt'

send-hook '~t (lists.debian.org)' \
  'source ~/.mutt/headers; \
   my_hdr From: Michelle Konzack <[EMAIL PROTECTED]>; \
   my_hdr X-Uptime: `uptime`; \
   my_hdr X-Homepage-2: http://freenet-homepage.de/linux4michelle/; \
   my_hdr Fcc: =.ML_debian/; \
   set pgp_autosign=yes; \
   set pgp_sign_as="0xC492F812"; \
   set edit_headers=yes; \
   set signature=~/.signatures/debian_lists.txt'


...and the multiple commands are working fine.

Greetings
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
# Debian GNU/Linux Consultant #
Michelle Konzack   Apt. 917  ICQ #328449886
   50, rue de Soultz MSN LinuxMichi
0033/6/6192519367100 Strasbourg/France   IRC #Debian (irc.icq.com)


signature.pgp
Description: Digital signature


Re: CC'ing list people but not getting CC'd?

2007-08-17 Thread martin f krafft
also sprach Nicolas Rachinsky <[EMAIL PROTECTED]> [2007.08.17.1303 +0200]:
> If you do this bind in a message-hook, it should solve the problem, if
> you reply to a message from the pager. And you can bind L in the index
> to a macro that opens the message and does an L again. I haven't tried
> this, but I think it should work.

Okay, this does work as you say.

In the mean time, however, I found that Junio, the git maintainer,
really just dislikes M-F-T:

  http://marc.info/?l=git&m=113882569532399&w=2

Thus, I better comply and *stop* setting the header altogether.

  send-hook . 'set followup_to'
  send-hook '~C [EMAIL PROTECTED]' 'unset followup_to'

I am also experimenting with another solution: if I use my procmail
filters to *add* the Mail-Followup-To header, including all
From/To/Cc addresses, but have followup_to unset as per the above,
I *should* get the desired effect: list-reply would honour M-F-T and
put everyone including the mailing list on To/Cc, but since mutt
does not add the header by itself, it is not on the outgoing
message.

I have yet to verify this and publish the solution to the git
mailing list. But if you have comments right now, I'd love to hear
them!

Cheers,

-- 
martin;  (greetings from the heart of the sun.)
  \ echo mailto: !#^."<*>"|tr "<*> mailto:"; [EMAIL PROTECTED]
 
"cs class at 8:30am. ugly. if you can wake up early enough to get
 good grades here, you need to develop hacker habits..."
 -- jeff bailey on #debian-devel
 
spamtraps: [EMAIL PROTECTED]


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: Can one specify the order of display of directories/folders

2007-08-17 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thursday, August 16 at 11:13 PM, quoth Chris G:
>I know one can specify what directories are shown when doing a
>change-folder command (using the M[ask] command) but is it possible
>to alter the order in which they are displayed?  Or is it that it's
>dependent on the order in which the operating system displays them?

Press 'o' to change the sort order (or 'O' for reverse sort order).

~Kyle
- -- 
The chief enemy of creativity is 'good taste.'
   -- Pablo Picasso
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iD8DBQFGxNdXBkIOoMqOI14RAhwZAJ4xSITxUrDX1v6c4ARIKleQ6oSGdACePBnc
0YqSCc3+eeiLkf2ZpE9yTUk=
=wDBv
-END PGP SIGNATURE-


CC'ing list people but not getting CC'd?

2007-08-17 Thread martin f krafft
Dear list,

on the git mailing list, people seem to prefer being CC'd on list
posts. After I trained myself for years to use  instead
of , I am now faced by the challenge to meet their
desires while not offending the others (e.g.
[EMAIL PROTECTED]).

I realise that an easy solution would be for all *other* subscribers
(at least those who use mutt) to s/subscribe git/lists git/ in their
config, but I can hardly expect everyone to do so.

So I am trying to come up with a solution that fits the list policy
and also doesn't involve me to go out of my way. I could obviously
simply 'unsubscribe [EMAIL PROTECTED]', but that would have two
bad effects:

  -  no longer works, forcing me to go back to
 the hard way.
  - mutt won't add the M-F-T header to mail I send, which means
I'll get CC's to git list mail, which I don't want.

One solution would be to bind L to  for the git
mailing list, but a reply-hook is too late for that, and I don't
have a special folder for git mail.

Is there another way, in which mutt could assist me with my quest?
I really don't want to get back into the habit of using
 for mailing lists...

Thanks,

-- 
martin;  (greetings from the heart of the sun.)
  \ echo mailto: !#^."<*>"|tr "<*> mailto:"; [EMAIL PROTECTED]
 
one has to multiply thoughts to the point
where there aren't enough policemen to control them.
   -- stanislaw jerzey lec
 
spamtraps: [EMAIL PROTECTED]


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: CC'ing list people but not getting CC'd?

2007-08-17 Thread Nicolas Rachinsky
* martin f krafft <[EMAIL PROTECTED]> [2007-08-17 12:48 +0200]:
> One solution would be to bind L to  for the git
> mailing list, but a reply-hook is too late for that, and I don't
> have a special folder for git mail.

If you do this bind in a message-hook, it should solve the problem, if
you reply to a message from the pager. And you can bind L in the index
to a macro that opens the message and does an L again. I haven't tried
this, but I think it should work.

HTH,
Nicolas

-- 
http://www.rachinsky.de/nicolas


Re: CC'ing list people but not getting CC'd?

2007-08-17 Thread Kai Grossjohann
On Fri, Aug 17, 2007 at 04:38:30PM +0200, martin f krafft wrote:

> In the mean time, however, I found that Junio, the git maintainer,
> really just dislikes M-F-T:
> 
>   http://marc.info/?l=git&m=113882569532399&w=2

Which email client does he use?  He claims that MFT is used for replies,
but the name suggests that it should be used for followups, not replies.

Kai


Re: Escape characters in messages

2007-08-17 Thread Kai Grossjohann
On Sat, Aug 18, 2007 at 12:52:55AM +0200, Nicolas wrote:

> I use mutt since 3-4 years. Sometimes, I receive messages which contain
> escape characters. Here is what is looks like :
> \222 is displayed while a ' should appear
> \200 is displayed while a  should appear

Looks like the windows-1252 charset.  Are the messages labeled as such?
If not, does it help to Ctrl-E the message and put windows-1252 as the
charset?

Kai