Replying a mail in a mail list

2008-12-02 Thread Chengqi(Lars) Song
Hi,

When I'm replying a mail in a mail list, for example, a mail in
mutt-users@mutt.org from [EMAIL PROTECTED], the default target is 
  
  To: [EMAIL PROTECTED], 

how to changed it to the following?

  To: [EMAIL PROTECTED], Cc:mutt-users@mutt.org

Do I need something like hook? Could you please help me on this? Thanks.

Best
Lars


Re: Replying a mail in a mail list

2008-12-02 Thread Chengqi(Lars) Song
Thanks your for your help. I found that L works without lists or
subscribe in .muttrc. When I use L the target address becomes To:
mutt-users@mutt.org, amazing. What's the effect of lists and
subscribe then? I noticed that after adding them, there will be a tag
'L' in front of all mails from mutt-users mail list.

lars

On Tue, 02 Dec 2008, Ionel Mugurel Ciobica wrote:

 On  2-12-2008, at 19h 09'34, Chengqi(Lars) Song wrote about Replying a mail 
 in a mail list
  Hi,
  
  When I'm replying a mail in a mail list, for example, a mail in
  mutt-users@mutt.org from [EMAIL PROTECTED], the default target is 

To: [EMAIL PROTECTED], 
  
  how to changed it to the following?
  
To: [EMAIL PROTECTED], Cc:mutt-users@mutt.org
  
  Do I need something like hook? Could you please help me on this? Thanks.
  
 
 If you declare it as a mail list you can use `L' instead of `r' to
 replay.
 
 lists mutt-users@mutt.org   #this declare the mail list (you will be 
 cc-ed by list members)
 subscribe mutt-users@mutt.org   #this tells mutt you are subscribed and you 
 will not be cc-ed.
 
 
 Regards,
 Ionel


Re: Replying a mail in a mail list

2008-12-02 Thread Christian Ebert
* Chengqi(Lars) Song on Tuesday, December 02, 2008 at 19:09:34 +0800
 When I'm replying a mail in a mail list, for example, a mail in
 mutt-users@mutt.org from [EMAIL PROTECTED], the default target is 
  
  To: [EMAIL PROTECTED], 
 
 how to changed it to the following?
 
  To: [EMAIL PROTECTED], Cc:mutt-users@mutt.org

group-reply, bound to g by default iirc.

Be aware that some people (like me) prefer to not get double
responses.

c
-- 
\black\trash movie_C O W B O Y_  _C A N O E_  _C O M A_
Ein deutscher Western/A German Western
-- http://www.blacktrash.org/underdogma/ccc.html
-- http://www.blacktrash.org/underdogma/ccc-en.html


Re: Replying a mail in a mail list

2008-12-02 Thread Cherife Li
On Tue, 02 Dec 2008 at 21:01:31 +0800, Chengqi(Lars) Song wrote:

 Thanks your for your help. I found that L works without lists or
 subscribe in .muttrc. When I use L the target address becomes To:
 mutt-users@mutt.org, amazing. What's the effect of lists and
 subscribe then? I noticed that after adding them, there will be a tag
 'L' in front of all mails from mutt-users mail list.
RTFM, you'll find the answer and even more.
-- 
Rgds,
Cherife.


Remove old signature

2008-12-02 Thread steve
Hi,

After having searching on the web and in the archives, I come to you for
this small question.

When replying ('r') mutt can add a chosen signature but cannot remove
the old one, i.e the one from the sender.

In the FAQ, it's written that mutt cannot strip automaticaly signatures
since this should be the editor's job (vim in my case). But why so ? 

Any pointers on how to do that with vim ?

Thanks

--
Steve


Re: Replying a mail in a mail list

2008-12-02 Thread Ionel Mugurel Ciobica
On  2-12-2008, at 12h 18'00, Ionel Mugurel Ciobica wrote about Re: Replying a 
mail in a mail list
 
 If you declare it as a mail list you can use `L' instead of `r' to
 replay.
 

I ment to reply. Sorry.

Ionel


Header caching not working

2008-12-02 Thread Szymek
Hello

I have some problems with header caching in mutt. I have set the following
variable in .muttrc: set header_cache=$HOME/mail/hcache

My mail is organized like that:

$HOME/mail
   - box1
   - box2
   - box3
   - hcache

There are no files created in the hcache folder, why? Do I have to put a slash
at the end of the line in .muttrc? All of my mailboxes are in maildir format,
I have mutt version 1.5.8i with mdn-patch and the header-cache option passed
to configure during building. What could be wrong? I didn't use a separate
patch for hcache.


Best regards
Szymon


Re: Replying a mail in a mail list

2008-12-02 Thread Joel Esler

On Dec 2, 2008, at 6:18 AM, Ionel Mugurel Ciobica wrote:

On  2-12-2008, at 19h 09'34, Chengqi(Lars) Song wrote about  
Replying a mail in a mail list

Hi,

When I'm replying a mail in a mail list, for example, a mail in
mutt-users@mutt.org from [EMAIL PROTECTED], the default target is

 To: [EMAIL PROTECTED],

how to changed it to the following?

 To: [EMAIL PROTECTED], Cc:mutt-users@mutt.org

Do I need something like hook? Could you please help me on this?  
Thanks.




If you declare it as a mail list you can use `L' instead of `r' to
replay.

lists mutt-users@mutt.org   #this declare the mail list (you  
will be cc-ed by list members)
subscribe mutt-users@mutt.org   #this tells mutt you are subscribed  
and you will not be cc-ed.


You could reply to group as well.  Mash g.

Joel



Re: Remove old signature

2008-12-02 Thread Christian Ebert
* steve on Tuesday, December 02, 2008 at 14:55:18 +0100
 In the FAQ, it's written that mutt cannot strip automaticaly signatures
 since this should be the editor's job (vim in my case). But why so ? 

Yet another option ...

 Any pointers on how to do that with vim ?

On startup:

silent! g/^ \?-- $/,$ delete

or manually:

nnoremap buffer LocalLeaderqs :/^ \?-- $/,/^-- $/-dBarnohCR

eg. in ~/.vim/after/ftplugin/mail.vim

Adjust to taste.

c
-- 
\black\trash movie_C O W B O Y_  _C A N O E_  _C O M A_
Ein deutscher Western/A German Western
-- http://www.blacktrash.org/underdogma/ccc.html
-- http://www.blacktrash.org/underdogma/ccc-en.html


Re: Remove old signature

2008-12-02 Thread steve
Le 02-12-2008, à 15:20:21 +0100, Christian Ebert ([EMAIL PROTECTED]) a écrit :

 * steve on Tuesday, December 02, 2008 at 14:55:18 +0100
  In the FAQ, it's written that mutt cannot strip automaticaly signatures
  since this should be the editor's job (vim in my case). But why so ? 
 
 Yet another option ...

Ok ...
 
  Any pointers on how to do that with vim ?
 
 On startup:
 
 silent! g/^ \?-- $/,$ delete

Ok, I fell on one of those too. The question is how do I integrate that
line in .muttrc ?

I tried :

set editor=vim -c 'set textwidth=72' -c 'silent! g/^ \?-- $/,$
delete'

but it doesn't work, the old signature is still there. What did I do
wrong ?

 or manually:
 
 nnoremap buffer LocalLeaderqs :/^ \?-- $/,/^-- $/-dBarnohCR

Still a lot too complicated for me ..

 eg. in ~/.vim/after/ftplugin/mail.vim
 
 Adjust to taste.

Thanks for your help.

--
Steve


Re: Remove old signature

2008-12-02 Thread Christian Ebert
* steve on Tuesday, December 02, 2008 at 15:33:54 +0100
 Le 02-12-2008, à 15:20:21 +0100, Christian Ebert ([EMAIL PROTECTED]) a écrit :
 * steve on Tuesday, December 02, 2008 at 14:55:18 +0100
 Any pointers on how to do that with vim ?
 
 On startup:
 
 silent! g/^ \?-- $/,$ delete
 
 Ok, I fell on one of those too. The question is how do I integrate that
 line in .muttrc ?
 
 I tried :
 
 set editor=vim -c 'set textwidth=72' -c 'silent! g/^ \?-- $/,$
 delete'
 
 but it doesn't work, the old signature is still there. What did I do
 wrong ?

Probably you need to escape some of the \; you'd have to try.

I prefer to have this (and more) in a function MailStart in
~/.vim/after/ftplugin/mail.vim, and then simply have

set editor='vim -X -c call MailStart()'

in my muttrc -- much easier to tweak or turn off in hooks as
well. Saves me to try hundreds of escape combinations in muttrc.
So I am also too lazy to do it for you ;-)

btw. you don't need tw=72. That's already on by default for
ft=mail.

c
-- 
\black\trash movie_C O W B O Y_  _C A N O E_  _C O M A_
Ein deutscher Western/A German Western
-- http://www.blacktrash.org/underdogma/ccc.html
-- http://www.blacktrash.org/underdogma/ccc-en.html


Re: Remove old signature

2008-12-02 Thread steve
Le 02-12-2008, à 15:57:06 +0100, Christian Ebert ([EMAIL PROTECTED]) a écrit :

 * steve on Tuesday, December 02, 2008 at 15:33:54 +0100
  Le 02-12-2008, à 15:20:21 +0100, Christian Ebert ([EMAIL PROTECTED]) a 
  écrit :
  * steve on Tuesday, December 02, 2008 at 14:55:18 +0100
  Any pointers on how to do that with vim ?
  
  On startup:
  
  silent! g/^ \?-- $/,$ delete
  
  Ok, I fell on one of those too. The question is how do I integrate that
  line in .muttrc ?
  
  I tried :
  
  set editor=vim -c 'set textwidth=72' -c 'silent! g/^ \?-- $/,$
  delete'
  
  but it doesn't work, the old signature is still there. What did I do
  wrong ?
 
 Probably you need to escape some of the \; you'd have to try.

I will.
 
 I prefer to have this (and more) in a function MailStart in
 ~/.vim/after/ftplugin/mail.vim, and then simply have
 
 set editor='vim -X -c call MailStart()'
 
 in my muttrc -- much easier to tweak or turn off in hooks as
 well. Saves me to try hundreds of escape combinations in muttrc.
 So I am also too lazy to do it for you ;-)

Ok thanks for the hints, I'll give them a try tomorrow, end of the day
for me now.

 btw. you don't need tw=72. That's already on by default for
 ft=mail.

ok, didn't know that.

Many thanks Christian for your help.

--
steve


Re: Replying a mail in a mail list

2008-12-02 Thread Ionel Mugurel Ciobica
On  2-12-2008, at 19h 09'34, Chengqi(Lars) Song wrote about Replying a mail 
in a mail list
 Hi,
 
 When I'm replying a mail in a mail list, for example, a mail in
 mutt-users@mutt.org from [EMAIL PROTECTED], the default target is 
   
   To: [EMAIL PROTECTED], 
 
 how to changed it to the following?
 
   To: [EMAIL PROTECTED], Cc:mutt-users@mutt.org
 
 Do I need something like hook? Could you please help me on this? Thanks.
 

If you declare it as a mail list you can use `L' instead of `r' to
replay.

lists mutt-users@mutt.org   #this declare the mail list (you will be cc-ed 
by list members)
subscribe mutt-users@mutt.org   #this tells mutt you are subscribed and you 
will not be cc-ed.


Regards,
Ionel


Re: Header caching not working

2008-12-02 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tuesday, December  2 at 03:03 PM, quoth Szymek:
 There are no files created in the hcache folder, why? Do I have to 
 put a slash at the end of the line in .muttrc?

Yup.

You probably could have even tested that yourself! ;)

~Kyle
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iEYEARECAAYFAkk1WBEACgkQBkIOoMqOI14ongCeOTxXhvER1vp+xa/BO/DwsgpT
n9QAoLJahTsiEafBgtFzQgB3UmmHTrY4
=lWFT
-END PGP SIGNATURE-


Re: Remove old signature

2008-12-02 Thread David Champion
 Any pointers on how to do that with vim ?

I don't let my editor (vi, not vim) strip signatures automatically.
Sometimes I want to comment on the signature in my reply.  I have a vi
macro for signature-stripping:

 From main.d/070.delsig:
 Remove quoted signature, up to blank line
map ; :/^[  ]* -- *$/;?^[  ][ ]*$?;.,/^[ ]*$/-1d

All the sequences of whitespace above are spacetab, and the ^M is a
control-M, not a caret and an M.  Be sure to fix that if you copy and
paste.

Vim should be able to use this too -- if not, its vi compatibility is
worse than I thought.

-- 
 -D.[EMAIL PROTECTED]NSITUniversity of Chicago


Re: Header caching not working

2008-12-02 Thread Szymek
On Tue, Dec 02, 2008 at 09:45:27AM -0600, Kyle Wheeler wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On Tuesday, December  2 at 03:03 PM, quoth Szymek:
  There are no files created in the hcache folder, why? Do I have to 
  put a slash at the end of the line in .muttrc?
 
 Yup.
 
 You probably could have even tested that yourself! ;)
 
 ~Kyle


Yes, I forgot to make a test:) But there is no difference, still no files in
hcache folder.


Re: Header caching not working

2008-12-02 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tuesday, December  2 at 05:57 PM, quoth Szymek:
 Yes, I forgot to make a test:) But there is no difference, still no 
 files in hcache folder.

Hmm. When you run `mutt -v`, do you see +USE_HCACHE in there?

~Kyle
- -- 
I have not failed. I've just found 10,000 ways that won't work.
   -- Thomas Edison
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iEYEARECAAYFAkk1ajIACgkQBkIOoMqOI164+gCgzX2q+sakaXwlfchbgGcNRo9S
af8AoO9MQDYElq4uL6CLORlAW2bwRL6R
=ua8S
-END PGP SIGNATURE-


Re: Header caching not working

2008-12-02 Thread Szymek
On Tue, Dec 02, 2008 at 11:02:42AM -0600, Kyle Wheeler wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On Tuesday, December  2 at 05:57 PM, quoth Szymek:
  Yes, I forgot to make a test:) But there is no difference, still no 
  files in hcache folder.
 
 Hmm. When you run `mutt -v`, do you see +USE_HCACHE in there?
 
 ~Kyle
 - -- 
 I have not failed. I've just found 10,000 ways that won't work.
-- Thomas Edison
 -BEGIN PGP SIGNATURE-
 Comment: Thank you for using encryption!
 
 iEYEARECAAYFAkk1ajIACgkQBkIOoMqOI164+gCgzX2q+sakaXwlfchbgGcNRo9S
 af8AoO9MQDYElq4uL6CLORlAW2bwRL6R
 =ua8S
 -END PGP SIGNATURE-
 
That's the output of mutt -v:

-DOMAIN
-DEBUG
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  
+USE_FCNTL  -USE_FLOCK   -USE_INODESORT   
-USE_POP  -USE_IMAP  -USE_GSS  -USE_SSL  -USE_GNUTLS  -USE_SASL  -USE_SASL2  
+HAVE_REGCOMP  -USE_GNU_REGEX  
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
-CRYPT_BACKEND_CLASSIC_PGP  -CRYPT_BACKEND_CLASSIC_SMIME  -CRYPT_BACKEND_GPGME
 -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT  
+ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET 
+HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  -ICONV_NONTRANS  -HAVE_LIBIDN  +HAVE_GETSID  -HAVE_GETADDRINFO 
+USE_HCACHE  
ISPELL=/usr/bin/ispell
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  
+USE_FCNTL  -USE_FLOCK   -USE_INODESORT   
-USE_POP  -USE_IMAP  -USE_GSS  -USE_SSL  -USE_GNUTLS  -USE_SASL  -USE_SASL2  
+HAVE_REGCOMP  -USE_GNU_REGEX  
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
-CRYPT_BACKEND_CLASSIC_PGP  -CRYPT_BACKEND_CLASSIC_SMIME  -CRYPT_BACKEND_GPGME
 -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT  
+ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET 
+HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  -ICONV_NONTRANS  -HAVE_LIBIDN  +HAVE_GETSID  -HAVE_GETADDRINFO 
+USE_HCACHE  
ISPELL=/usr/bin/ispell
SENDMAIL=/usr/sbin/sendmail
MAILPATH=/var/mail
PKGDATADIR=/usr/share/mutt
SYSCONFDIR=/usr/etc
EXECSHELL=/bin/sh
-MIXMASTER

patch-1.5.8.g10.mdn.3


I think, that everything is ok with compilation, or is there maybe another
option, which I have to pass to configure script? Maybe this mutt version is
not ready for maildir with header caching?


best regards to all mutters


Re: Header caching not working

2008-12-02 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tuesday, December  2 at 10:42 PM, quoth Szymek:
That's the output of mutt -v:

Now that is *really* weird. I think there's either something wrong 
with the way you compiled it, or your source is corrupt. And I say 
that because your mutt spit out that full thing *twice*, and it's not 
supposed to do that. (Notice that from -DOMAIN through to ISPELL=... 
is duplicated.)

Are you using any patches besides the MDN patch?

Try doing a `make clean` and then build mutt again.

~Kyle
- -- 
Arguing with an engineer is like wrestling with a pig in mud, after a 
while you realize the pig is enjoying it.
 -- Unknown
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iEYEARECAAYFAkk1ssEACgkQBkIOoMqOI17gnwCg4TUbHRoflIE/1cnQkpIP6H1K
2+4An3Z/rR8ZATeSfvh78QaEhkCGSRnZ
=SjZh
-END PGP SIGNATURE-


Mutt in a script

2008-12-02 Thread Peter

Hi all.


I know this is most likely a permisions problem but need some help as I 
am a Windows convert.



I have a script /usr/bin/send_mail

that fires mutt to send an email.

If I run it from command line it works. I put in a line LOGGER: Sent mail

which shows up in my /var/log/messages and I can see it using tail


However if I run the same script from a program I am using I get the 
LOGGER statement in the messages file but it doesn't send email?


Help would be greatly appreciated.

Peter






secs.net.au
Licenced Electrician
Speciliasing in: HVAC-BUILDING AUTOMATION-REMOTE DATA AQUISITION

Are your tools safe?
TEST AND TAG Service.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.