Re: fcc-hook

2021-01-16 Thread Victor Sudakov
Kevin J. McCarthy wrote:
> On Sat, Jan 16, 2021 at 01:21:08PM +0700, Victor Sudakov wrote:
> > I'd like to disable fcc when sending to certain domains/addresses.
> > What's the correct syntax? I've come up with
> > 
> > fcc-hook @example.com /dev/null
> > 
> > but this /dev/null thing looks kind of ugly. I with I could just unset
> > fcc for some addresses.
> 
> For an fcc-hook, that is the correct syntax.  In fact, Mutt explicitly
> checks for "/dev/null", and will skip the whole Fcc process in that case.

Thank you! That is what I call an intuitive interface.



-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/


signature.asc
Description: PGP signature


Re: fcc-hook

2021-01-16 Thread Kevin J. McCarthy

On Sat, Jan 16, 2021 at 01:21:08PM +0700, Victor Sudakov wrote:

I'd like to disable fcc when sending to certain domains/addresses.
What's the correct syntax? I've come up with

fcc-hook @example.com /dev/null

but this /dev/null thing looks kind of ugly. I with I could just unset
fcc for some addresses.


For an fcc-hook, that is the correct syntax.  In fact, Mutt explicitly 
checks for "/dev/null", and will skip the whole Fcc process in that 
case.


--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


fcc-hook

2021-01-15 Thread Victor Sudakov
Dear Colleagues,

I'd like to disable fcc when sending to certain domains/addresses.
What's the correct syntax? I've come up with 

fcc-hook @example.com /dev/null

but this /dev/null thing looks kind of ugly. I with I could just unset
fcc for some addresses.

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/


signature.asc
Description: PGP signature


Re: fcc-hook: how to tame it?

2011-07-12 Thread Marcelo Luiz de Laia
On Tue, 12 Jul 2011, Jimmy Wu wrote:

> 
> Another idea is to unhook fcc-hook inside your profile.mymail1.
> 

Yeah!

set 'unhook fcc-hook' in the profile.mymail1 solved the issue!

Thank you very much!

Marcelo


Re: fcc-hook: how to tame it?

2011-07-12 Thread Jimmy Wu
On Tue, Jul 12, 2011 at 18:55, Marcelo Luiz de Laia
 wrote:
> On Tue, 12 Jul 2011, du yang wrote:
>
>> On Tuesday 07/12/11 07:53:50 CST, Marcelo Luiz de Laia wrote:
>> > I have fcc-hook in one of my 3 profile, like this:
>> >
>> > ~/.mutt/profile.mymail3
>> > fcc-hook . "+MyMail3/Sent"
>> >
>> > In my muttrc, I have:
>> > unhook send-hook
>> > send-hook . "source ~/.mutt/profile.mymail1\n"
>> > send-hook ^(bla...@blabla.com|lalal...@somethings.org) "set mime_forward 
>> > signature=''"
>> > send-hook ^(friend1|friend2) "source ~/.mutt/profile.mymail3\n"
>> >
>> > When I sent a e-mail to friend1 or friend2, the message is salved at
>> > MyMail3/Sent, what is very nice.
>> >
>> > However, after this action, all other messages that I sent is salved
>> > at this mailbox!
>> >
>> > ~/.mutt/profile.mymail1 don't have fcc-hook seted.
>> >
>>
>> fcc-hook .* "=Sent"
>
> This is not possible because I use gmail (my default profile).
>
>> if you don't want to save mails, you can set the first line to,
>>
>> fcc-hook .* "/dev/null"
>
> If I set this line in gmail profile, all messages is writed to
> /dev/null and fcc-hook . "+MyMail3/Sent" in profile.mymail3 was ignored.

It seems to me the problem is your fcc-hook pattern is too broad.
Currently, fcc-hook is doing exactly what you are telling it to, which
is to match everything.

fcc-hook . "+MyMail3/Sent"

Since this is not what you intend, why not the following?

fcc-hook ^(friend1|friend2) "+MyMail3/Sent"

If that's the only thing your profile.mymail3 does you could just put
it in muttrc.  I find it less confusing to configure all my accounts
in one place instead of separating them into profiles - side effects
of things like the above example are more obvious that way.

Another idea is to unhook fcc-hook inside your profile.mymail1.

Cheers,
Jimmy


Re: fcc-hook: how to tame it?

2011-07-12 Thread Marcelo Luiz de Laia
On Tue, 12 Jul 2011, du yang wrote:

> On Tuesday 07/12/11 07:53:50 CST, Marcelo Luiz de Laia wrote:
> > I have fcc-hook in one of my 3 profile, like this:
> > 
> > ~/.mutt/profile.mymail3
> > fcc-hook . "+MyMail3/Sent"
> > 
> > In my muttrc, I have:
> > unhook send-hook
> > send-hook . "source ~/.mutt/profile.mymail1\n"
> > send-hook ^(bla...@blabla.com|lalal...@somethings.org) "set mime_forward 
> > signature=''"
> > send-hook ^(friend1|friend2) "source ~/.mutt/profile.mymail3\n"
> > 
> > When I sent a e-mail to friend1 or friend2, the message is salved at
> > MyMail3/Sent, what is very nice.
> > 
> > However, after this action, all other messages that I sent is salved
> > at this mailbox!
> > 
> > ~/.mutt/profile.mymail1 don't have fcc-hook seted.
> > 
> 
> fcc-hook .* "=Sent"

This is not possible because I use gmail (my default profile).

> if you don't want to save mails, you can set the first line to,
> 
> fcc-hook .* "/dev/null"

If I set this line in gmail profile, all messages is writed to
/dev/null and fcc-hook . "+MyMail3/Sent" in profile.mymail3 was ignored.

I continue looking for a workaround.

-- 
  O___   - Marcelo Luiz de Laia
 c/  /'_ - Diamantina
(*)  \(*)- Minas Gerais
~- Brazil
^- Linux user number 487797


Re: fcc-hook: how to tame it?

2011-07-12 Thread du yang
On Tuesday 07/12/11 07:53:50 CST, Marcelo Luiz de Laia wrote:
> I have fcc-hook in one of my 3 profile, like this:
> 
> ~/.mutt/profile.mymail3
> fcc-hook . "+MyMail3/Sent"
> 
> In my muttrc, I have:
> unhook send-hook
> send-hook . "source ~/.mutt/profile.mymail1\n"
> send-hook ^(bla...@blabla.com|lalal...@somethings.org) "set mime_forward 
> signature=''"
> send-hook ^(friend1|friend2) "source ~/.mutt/profile.mymail3\n"
> 
> When I sent a e-mail to friend1 or friend2, the message is salved at
> MyMail3/Sent, what is very nice.
> 
> However, after this action, all other messages that I sent is salved
> at this mailbox!
> 
> I have googled and found a lot of issues like me. Here is 2 out many messages 
> I found:
> 
> http://tech.groups.yahoo.com/group/mutt-users/message/49010
> http://www.davep.org/mutt/muttrc/fcc-hooks.html
> 
> and manual's section 3.15.
> 
> Have you a way to unset fcc-hook? Or I will need to write it to
> /dev/null? If this the way, how I could do that? In muttrc or in
> profile.mymail1?
> 
> ~/.mutt/profile.mymail1 don't have fcc-hook seted.
> 
> Thank you very much!
> 
> Marcelo

Hi, 

I think you have to set a fcc-hook in each of you profiles if you don't want to 
save all mails to "+MyMail3/Sent". Because the hooks will never be changed 
itself only it was set to a new value, and there is only one place for fcc-hook 
setting in your profiles, so mutt will use it to forever.

if you just care mails to friend1 and friend2, you could try this 2 lines,

fcc-hook .* "=Sent"
fcc-hook "~t (friend1|friend2)" "+MyMail3/Sent"


then the first line is the default fcc-hook action on sent mails. the second is 
a specific action on mails to friend2 and friend2.

if you don't want to save mails, you can set the first line to,

fcc-hook .* "/dev/null"

Hope this could help you.

PS, you could also combine fcc-hook with other hooks(like folder-hook, 
send-hook...)  to get fcc-hook dynamically changed.

- du yang

-- 
  临江仙·滚滚长江东逝水--杨慎
滚滚长江东逝水,浪花淘尽英雄。
是非成败转头空。青山依旧在,几度夕阳红。
白发渔樵江渚上,惯看秋月春风。
一壶浊酒喜相逢。古今多少事,都付笑谈中。


fcc-hook: how to tame it?

2011-07-11 Thread Marcelo Luiz de Laia
I have fcc-hook in one of my 3 profile, like this:

~/.mutt/profile.mymail3
fcc-hook . "+MyMail3/Sent"

In my muttrc, I have:
unhook send-hook
send-hook . "source ~/.mutt/profile.mymail1\n"
send-hook ^(bla...@blabla.com|lalal...@somethings.org) "set mime_forward 
signature=''"
send-hook ^(friend1|friend2) "source ~/.mutt/profile.mymail3\n"

When I sent a e-mail to friend1 or friend2, the message is salved at
MyMail3/Sent, what is very nice.

However, after this action, all other messages that I sent is salved
at this mailbox!

I have googled and found a lot of issues like me. Here is 2 out many messages I 
found:

http://tech.groups.yahoo.com/group/mutt-users/message/49010
http://www.davep.org/mutt/muttrc/fcc-hooks.html

and manual's section 3.15.

Have you a way to unset fcc-hook? Or I will need to write it to
/dev/null? If this the way, how I could do that? In muttrc or in
profile.mymail1?

~/.mutt/profile.mymail1 don't have fcc-hook seted.

Thank you very much!

Marcelo


Re: Losing my mind? fcc-hook doesn't work for one *from* ?

2010-05-28 Thread hubert depesz lubaczewski
On Fri, May 28, 2010 at 09:01:44PM +0200, Rado S wrote:
> > > > and now fcc_hook is no longer applied ?!
> > > Somethink along the lines of
> > > default_hook="~f %s !~P | (~P ~C %s)"
> > > So you'd better spell out the fcc-hook pattern
> > > eg fcc-hook '~t @depesz.com' +depesz
> 
> Michael told you:
> your fcc-hook operated on the my_hdr because of built-in defaults
> when you use hooks without _EXPLICIT_ ~-hook-patterns.
> Please rtfm more about the var Michael mentionend.

ah. thanks. got it finally.

Best regards,

depesz

-- 
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: dep...@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007


Re: Losing my mind? fcc-hook doesn't work for one *from* ?

2010-05-28 Thread Rado S
=- hubert depesz lubaczewski wrote on Thu 27.May'10 at 22:50:36 +0200 -=

> On Thu, May 27, 2010 at 10:44:25PM +0200, Michael Tatge wrote:
> > > I change the my_hdr line to:
> > > my_hdr From: Marcin Pietrzak 
> > > and now fcc_hook is no longer applied ?!
> > 
> > Somethink along the lines of
> > 
> > default_hook="~f %s !~P | (~P ~C %s)"
> > 
> > So you'd better spell out the fcc-hook pattern
> > eg fcc-hook '~t @depesz.com' +depesz
> 
> I did make it working, but I just don't understand why it doesn't work
> with this my_hdr.
> i want to understand why some values in my_hdr make it break.

Michael told you:
your fcc-hook operated on the my_hdr because of built-in defaults
when you use hooks without _EXPLICIT_ ~-hook-patterns.
Please rtfm more about the var Michael mentionend.

-- 
© Rado S. -- You must provide YOUR effort for your goal!
EVERY effort counts: at least to show your attitude.
You're responsible for ALL you do: you get what you give.


Re: Losing my mind? fcc-hook doesn't work for one *from* ?

2010-05-27 Thread hubert depesz lubaczewski
On Thu, May 27, 2010 at 06:12:24PM -0300, Monte Stevens wrote:
> So, instead of
> fcc-hook @depesz.com +depesz/
> you'd have
> fcc-hook "~C @depesz\.com" +depesz/
> .
> 
> I'm not sure what you want to match so I went with the ~C which would
> evaluate as true if the message is to or cc @depesz\.com .

But fcc hook is applied to *To:* field, not From:! ?!

Best regards,

depesz

-- 
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: dep...@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007


Re: Losing my mind? fcc-hook doesn't work for one *from* ?

2010-05-27 Thread Monte Stevens
On Thu, May 27, 2010 at 12:56:59PM +0200, hubert depesz lubaczewski wrote:
> Situation:
> server martin.depesz.com
> shell account depesz.
> 
> i create test.rc with following content:
> my_hdr From: depesz 
> fcc-hook @depesz.com +depesz/
> 
> start mutt with:
> mutt -n -F test.rc
> 
> ignore messages about missing directories, write mail to myself, and on
> finish screen, i see that fcc has been correctly set to depesz/
> 
> Now. 
> 
> I change the my_hdr line to:
> my_hdr From: Marcin Pietrzak 
> 
> and now fcc_hook is no longer applied ?!
> 
> Why is that?

Perhaps it has something to do with the default_hook, which defaults to:
"~f %s !~P | (~P ~C %s)"

This would make your simple regular expression (@depesz.com) evaluate to
"~f @depesz.com !~P | (~P ~C @depesz.com)" .

Filling in the ~characters yields something like:
from @depesz.com and not from alternates or (from alternates and (to or
cc @depesz.com)) .

Solving for the first case (from: depesz ):
1 and 1 or (0 and ?) = 1 .

Solving for the second case (from: Marcin Pietrzak ):
0 and 1 or (0 and ?), = 0 .

Hopefully someone will jump in and point out any errors I've made in
translating or evaluating the patterns.  Barring any errors, I'd say the
best way out is to craft a pattern from your simple regular expression.

So, instead of
fcc-hook @depesz.com +depesz/
you'd have
fcc-hook "~C @depesz\.com" +depesz/
.

I'm not sure what you want to match so I went with the ~C which would
evaluate as true if the message is to or cc @depesz\.com .

-- 
Monte


Re: Losing my mind? fcc-hook doesn't work for one *from* ?

2010-05-27 Thread hubert depesz lubaczewski
On Thu, May 27, 2010 at 10:44:25PM +0200, Michael Tatge wrote:
> * On Thu, May 27, 2010 12:56PM +0200 hubert depesz lubaczewski 
> (dep...@depesz.com) muttered:
> > i create test.rc with following content:
> > my_hdr From: depesz 
> 
> Well you shouldn't use my_hdr unless forced too
> Just set $from instead
> 
> > fcc-hook @depesz.com +depesz/
> > 
> > start mutt with:
> > mutt -n -F test.rc
> > 
> > i see that fcc has been correctly set to depesz/
> > 
> > Now. 
> > 
> > I change the my_hdr line to:
> > my_hdr From: Marcin Pietrzak 
> > 
> > and now fcc_hook is no longer applied ?!
> 
> Somethink along the lines of
> 
> default_hook="~f %s !~P | (~P ~C %s)"
> 
> So you'd better spell out the fcc-hook pattern
> eg fcc-hook '~t @depesz.com' +depesz


I did make it working, but I just don't understand why it doesn't work
with this my_hdr.

basically I switched to $from and other $..., but it's irrelevant at the
moment - i want to understand why some values in my_hdr make it break.

Best regards,

depesz

-- 
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: dep...@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007


Re: Losing my mind? fcc-hook doesn't work for one *from* ?

2010-05-27 Thread Michael Tatge
* On Thu, May 27, 2010 12:56PM +0200 hubert depesz lubaczewski 
(dep...@depesz.com) muttered:
> i create test.rc with following content:
> my_hdr From: depesz 

Well you shouldn't use my_hdr unless forced too
Just set $from instead

> fcc-hook @depesz.com +depesz/
> 
> start mutt with:
> mutt -n -F test.rc
> 
> i see that fcc has been correctly set to depesz/
> 
> Now. 
> 
> I change the my_hdr line to:
> my_hdr From: Marcin Pietrzak 
> 
> and now fcc_hook is no longer applied ?!

Somethink along the lines of

default_hook="~f %s !~P | (~P ~C %s)"

So you'd better spell out the fcc-hook pattern
eg fcc-hook '~t @depesz.com' +depesz


HTH,

Michael
-- 
COBOL is for morons.
-- E. W. Dijkstra

PGP-Key-ID: 0xDC1A44DD
Jabber: init...@amessage.de


Re: Losing my mind? fcc-hook doesn't work for one *from* ?

2010-05-27 Thread hubert depesz lubaczewski
On Thu, May 27, 2010 at 07:55:59PM +0200, Jostein Berntsen wrote:
> On 27.05.10,12:56, hubert depesz lubaczewski wrote:
> > Situation:
> > server martin.depesz.com
> > shell account depesz.
> > 
> > i create test.rc with following content:
> > my_hdr From: depesz 
> > fcc-hook @depesz.com +depesz/
> > 
> > start mutt with:
> > mutt -n -F test.rc
> > 
> > ignore messages about missing directories, write mail to myself, and on
> > finish screen, i see that fcc has been correctly set to depesz/
> > 
> > Now. 
> > 
> > I change the my_hdr line to:
> > my_hdr From: Marcin Pietrzak 
> > 
> > and now fcc_hook is no longer applied ?!
> > 
> > Why is that?
> > 
> 
> Have you tried to restart mutt after you have applied the new fcc-hook?
 
sure. besides - this fcc is in the test.rc file.

Best regards,

depesz

-- 
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: dep...@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007


Re: Losing my mind? fcc-hook doesn't work for one *from* ?

2010-05-27 Thread Jostein Berntsen
On 27.05.10,12:56, hubert depesz lubaczewski wrote:
> Situation:
> server martin.depesz.com
> shell account depesz.
> 
> i create test.rc with following content:
> my_hdr From: depesz 
> fcc-hook @depesz.com +depesz/
> 
> start mutt with:
> mutt -n -F test.rc
> 
> ignore messages about missing directories, write mail to myself, and on
> finish screen, i see that fcc has been correctly set to depesz/
> 
> Now. 
> 
> I change the my_hdr line to:
> my_hdr From: Marcin Pietrzak 
> 
> and now fcc_hook is no longer applied ?!
> 
> Why is that?
> 

Have you tried to restart mutt after you have applied the new fcc-hook?


Jostein






Losing my mind? fcc-hook doesn't work for one *from* ?

2010-05-27 Thread hubert depesz lubaczewski
Situation:
server martin.depesz.com
shell account depesz.

i create test.rc with following content:
my_hdr From: depesz 
fcc-hook @depesz.com +depesz/

start mutt with:
mutt -n -F test.rc

ignore messages about missing directories, write mail to myself, and on
finish screen, i see that fcc has been correctly set to depesz/

Now. 

I change the my_hdr line to:
my_hdr From: Marcin Pietrzak 

and now fcc_hook is no longer applied ?!

Why is that?

Best regards,

depesz

-- 
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: dep...@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007


Re: fcc-hook (was: unable to set working send-hook)

2008-07-11 Thread mimosinnet
On Fri, 11 Jul 2008, Ennio-Sr wrote:

> * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [110708, 01:53]:
> > On Fri, Jul 11, 2008 at 12:37:18AM +0200, Ennio-Sr wrote:
> > > fcc-hook [EMAIL PROTECTED] ~/Mail/Sent/Test  # nasr.. being my _From_ 
> > > address
> > >  
> > > worked for me! Note that writing it as:
> > >  fcc-hook From: nasr   ...
> > > will produce an error, and putting quotes like 'From: nasr ..' saves the
> > > outgoing message in the wrong folder.
> > 
> > Thanks very much for trying. I am getting different results ?-)
> > 
> 
> And you are right! I spoke to early ;(
> In effect it does work on the _From:_ but just from one particular
> address! In other words, I put two fcc-kook lines in my .muttrc with
> different _From:_ patterns; it works for one of the two only.
> Sorry, I cannot be of any further help FTTB. You may have understood better
> than myself what Patrick said: as English is not my mother tongue I
> was unable to arrive at a correct setting ;(

I very much appreciate your insight as it has offered the opportunity to
learn how fcc-hook works, and that it was not useful to me. I have
finally found what I was looking for: sender profiles:
http://www.acoustics.hut.fi/~mara/mutt/profiles.html

> [Why use Win$ozz (I say) if ... "even a fool can do that.  \\?//
>  Do something you aren't good at!" (as Henry Miller used to say)]  (°|°)
> Regards, Ennio. --> Please replace '.' for '_dot_' in my Reply-To.  )=(

I feel quite close to your quote: neither English nor computing are my
first languages. I normally speak Catalan with a psychology accent ;-) . 

Cheers!

-- 
Mimosinnet
Location: 41:24:51N (41.41417) 2:11:25E (2.1903)


Re: fcc-hook (was: unable to set working send-hook)

2008-07-11 Thread Ennio-Sr
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [110708, 01:53]:
> On Fri, Jul 11, 2008 at 12:37:18AM +0200, Ennio-Sr wrote:
> > fcc-hook [EMAIL PROTECTED] ~/Mail/Sent/Test  # nasr.. being my _From_ 
> > address
> >  
> > worked for me! Note that writing it as:
> >  fcc-hook From: nasr   ...
> > will produce an error, and putting quotes like 'From: nasr ..' saves the
> > outgoing message in the wrong folder.
> 
> Thanks very much for trying. I am getting different results ?-)
> 

And you are right! I spoke to early ;(
In effect it does work on the _From:_ but just from one particular
address! In other words, I put two fcc-kook lines in my .muttrc with
different _From:_ patterns; it works for one of the two only.
Sorry, I cannot be of any further help FTTB. You may have understood better
than myself what Patrick said: as English is not my mother tongue I
was unable to arrive at a correct setting ;(
Regards.

> With these configuration lines: 
> set postponed=~/.mutt/postponed
> fcc-hook [EMAIL PROTECTED] ~/.mutt/record/uab
> 

[...]
-- 
[Why use Win$ozz (I say) if ... "even a fool can do that.  \\?//
 Do something you aren't good at!" (as Henry Miller used to say)]  (°|°)
Regards, Ennio. --> Please replace '.' for '_dot_' in my Reply-To.  )=(


[OT] Re: MTA and fcc-hook

2008-01-15 Thread Angel Olivera

On Wed 09.Jan.08 19:46, Michelle Konzack wrote:

Am 2008-01-08 19:46:58, schrieb Rado S:

=- Lucas GR wrote on Tue  8.Jan'08 at 18:57:11 +0100 -=
I was wondering if it could be possible to use differents smtp 
servers depending of the destinatary of the email.


exim, postfix or courier, even ssmtp or msmtp can not change the 
SMTP-Relay on the fly.  This is a config option from the MTA.


(Just for the sake of correctness.)

Of those, at least postfix can do it. See transport(5) for more 
information.



Perhaps this configuration is only possible in my MTA.


Right


Well, no, but Rado and Kyle have already provided some answers.

--
redondos


signature.asc
Description: Digital signature


Re: MTA and fcc-hook

2008-01-11 Thread Lucas GR
Yes, it did work very well :)

With the help of this hint i could discover the reason of why it ignored
the record set in the folder-hook. It was because of this line at
fcc-hooks:

fcc-hook .* =mailboxes/mydir

Once the line is commented and all folder-hooks are set up everything
works perfectly!

Thank You All for your help

Lucas J González


Re: MTA and fcc-hook

2008-01-11 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Friday, January 11 at 04:25 AM, quoth Lucas GR:
> I would like to auto save a copy of the sent email in the same 
> mailbox where it is sent from.

This should do it:

     fcc-hook . ^

~Kyle
- -- 
Testing can show the presence of errors, but not their absence.
  -- E. W. Dijkstra
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iD8DBQFHh53vBkIOoMqOI14RAhn3AJ9ylSbgu6/i9Qfsm/yvNS7OwRVE2QCdGATD
Jie/aGsynjTmb8gxnaq64qU=
=6REO
-END PGP SIGNATURE-


Re: MTA and fcc-hook

2008-01-11 Thread Lucas GR
El  0, Michelle Konzack <[EMAIL PROTECTED]> escribió:
> How do you want archive this from mutt?


> exim, postfix or courier, even ssmtp or msmtp can not change the
> SMTP-Relay on the fly.  This is a config option from the MTA.


I was thinking of a macro wich reconfigured and restarted exim or whatever
MTA. But I didn't try. Though it would be actually a mutt action, just a
trigger. Or having differente "profiles" or MTA versions and using a
folder-hook with every mailbox/MTA. I am now getting familiar with mutt but i 
didn't see this
options implemented. That's why i asked about it. Thank you for clarifying this
points. :)



Re: MTA and fcc-hook

2008-01-11 Thread Michelle Konzack
Am 2008-01-08 19:46:58, schrieb Rado S:
> =- Lucas GR wrote on Tue  8.Jan'08 at 18:57:11 +0100 -=
> 
> > I was wondering if it could be possible to use differents smtp
> > servers depending of the destinatary of the email.
> 
> Yes, see "send-hook" cmd and "sendmail" var.

How do you want archive this from mutt?

exim, postfix or courier, even ssmtp or msmtp can not change the
SMTP-Relay on the fly.  This is a config option from the MTA.

> > Perhaps this configuration is only possible in my MTA.

Right

> See faq for this.

Where?

Thanks, Greetings and nice Day
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: MTA and fcc-hook

2008-01-11 Thread Lucas GR
 Hi again,
 
 Thank you for your help.
 
 Now emails are sent from where i want to, I would like to auto save
 a copy of the sent email in the same mailbox where it is sent from.
 
 In muttrc I have:
 
set record=+mailboxes/mydir
 
 In folder-hooks I have:
 
folder-hook =mailboxes/mydir2  set [EMAIL PROTECTED] realname=myname 
record=+mailboxes/mydir2
 
 But, and this is what I can't understand, when I send an email from
 =mailboxes/mydir2, its copy is still saved under =mailboxes/mydir.
 
 What I define in fcc-hooks works fine, but i can't get it done with all
 the messages sent from this mailbox.
 
 What am I misunderstanding?
 


Re: MTA and fcc-hook

2008-01-08 Thread Rado S
=- Lucas GR wrote on Tue  8.Jan'08 at 18:57:11 +0100 -=

> I was wondering if it could be possible to use differents smtp
> servers depending of the destinatary of the email.

Yes, see "send-hook" cmd and "sendmail" var.

> Perhaps this configuration is only possible in my MTA.

See faq for this.

-- 
© Rado S. -- You must provide YOUR effort for your goal!
EVERY effort counts: at least to show your attitude.
You're responsible for ALL you do: you get what you give.


MTA and fcc-hook

2008-01-08 Thread Lucas GR
Hi,

I was wondering if it could be possible to use differents smtp servers
depending of the destinatary of the email.

For example, using dinamic IP services as it is my case servers like
gmail won't accept email coming from my domain, so I have to use their
own smtp server. But, is it possible to send email directly from my host
to specific email addresses? Perhaps this configuration is only possible
in my MTA.

Regards,
Lucas



Re: First "fcc-hook" is not more working...

2007-12-07 Thread Rocco Rutte

Hi,

* Michelle Konzack wrote:

Hello Rocco,



The problem is definitivly NOT IN MUTT since I get exact the same error
now in one of my scripts usin "egrep"



Here the code sniplet:



8<--
   elif `echo "${LINE}" |egrep '^(---|+++) ' >/dev/null` ; then
 echo "${ESC}35;40m${LINE}"
8<--


That regex looks perfectly fine to me. I was afraid it was not a mutt 
issue since for the alternates case I looked at, the value got read 
correctly by mutt and passed straight down to the regex engine without 
modification.


The only source of error I can think of is the implementation of regex, 
i.e. most likely glibc in your case.



Any ideas?


In general, you could retry with different libc versions. For mutt, you 
can compile your own using --with-regex option to configure. That will 
compile mutt using a different engine shipped with mutt.


Also creating a minimal test case showing the problem (some text file 
and an egrep call) would be useful to file a bug report against your 
distribution.


I'm not sure if something like that exists: But you could try to search 
your distro docs for updating hints (at least sometimes things breaking 
things get documented).


On the other hand, if there's no breakage documented, I can't really 
imagine that something crucial as regex breaks already for such simply 
patterns since that should be backed by dozens of automated tests...


Rocco


Re: First "fcc-hook" is not more working...

2007-12-07 Thread Michelle Konzack
Hello Rocco,

The problem is definitivly NOT IN MUTT since I get exact the same error
now in one of my scripts usin "egrep"

Am 2007-11-30 15:22:54, schrieb Rocco Rutte:
> * Michelle Konzack wrote:
> >8<--
> >[EMAIL PROTECTED]:~/] export LANG=C
> >[EMAIL PROTECTED]:~/] export LC_ALL=C
> >[EMAIL PROTECTED]:~/] mutt
> >Error in /home/michelle.konzack/.mutt/hook-fcc, line 8: Unmatched ( or \(
> >Error in /home/michelle.konzack/.mutt/muttrc, line 18: source: errors in 
> >/home/michelle.konzack/.mutt/hook-fcc
> >source: errors in /home/michelle.konzack/.mutt/muttrc
> >8<--

> Oh, please not again. Somebody on IRC had exactly the same problem where 
> a 600 byte alternates command wouldn't work and reported a regex error.  
> In one mutt version it worked, with a different on a different system it 
> didn't for no reason. As in your case, I bet the error is the regex 
> engine and not mutt itself.
> 
> For the alternates issue, the workaround was to split the pattern at |.
> 
> Can you please give system details and see if multiple fcc-hooks work 
> (including 'mutt -v | grep REGEX' and the libc version)? Do you have 
> other regexes with brackets/OR logic?
> 
> I really have no clue what's wrong, thouhg :(
- END OF REPLIED MESSAGE -

Here the code sniplet:

8<--
elif `echo "${LINE}" |egrep '^(---|+++) ' >/dev/null` ; then
  echo "${ESC}35;40m${LINE}"
8<--

and if I call my script with:

[ command 'tdfileview --color --inputfile=tdfileview.0201.diff' ]---

Viewing:  /home/michelle.konzack//bin/tdfileview.0201.diff
Filetype: RCS/CVS diff output text
Filter:   201, diff or patch
==
Index: debian-packages
grep: »)« oder »\)« ohne öffnende Klammer
===
grep: »)« oder »\)« ohne öffnende Klammer
--- debian-packages (revision 2398)
grep: »)« oder »\)« ohne öffnende Klammer


Any ideas?

grep:
  Installiert:2.5.1.ds2-5
  Mögliche Pakete:2.5.1.ds2-5
  Versions-Tabelle:
 *** 2.5.1.ds2-5 0
500 cdrom://Etch DVD 1 etch/main Packages
100 /var/lib/dpkg/status

Thanks, Greetings and nice Day
Michelle Konzack
Tamay Dogan Network
Open Hardware Developer
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: First "fcc-hook" is not more working...

2007-12-04 Thread Michelle Konzack
Hi Rocco,

Am 2007-11-30 15:22:54, schrieb Rocco Rutte:
> Hi,
> 
> * Michelle Konzack wrote:
> 
> >8<--
> >[EMAIL PROTECTED]:~/] export LANG=C
> >[EMAIL PROTECTED]:~/] export LC_ALL=C
> >[EMAIL PROTECTED]:~/] mutt
> >Error in /home/michelle.konzack/.mutt/hook-fcc, line 8: Unmatched ( or \(
> >Error in /home/michelle.konzack/.mutt/muttrc, line 18: source: errors in 
> >/home/michelle.konzack/.mutt/hook-fcc
> >source: errors in /home/michelle.konzack/.mutt/muttrc
> >8<------
> 
> >Now, the first "fcc-hook" do not more work.  I have chnaged it to
> 
> >   fcc-hook '~t .*@(bugs|packages|qa)\.debian\.org'  =.BTS_debian/
> 
> >but the same error.  After reading the mutt manual I am curios abot this
> >issue...
> 
> >Any Ideas?
> 
> Oh, please not again. Somebody on IRC had exactly the same problem where 

   :-)  ...shit!

> a 600 byte alternates command wouldn't work and reported a regex error.  
> In one mutt version it worked, with a different on a different system it 
> didn't for no reason. As in your case, I bet the error is the regex 
> engine and not mutt itself.

Exactly, I have had 1.5.9/12 it was working.  Now on my workstation
1.5.13 and on my laptop I think 1.5.15.

> For the alternates issue, the workaround was to split the pattern at |.
> 
> Can you please give system details and see if multiple fcc-hooks work 
> (including 'mutt -v | grep REGEX' and the libc version)? Do you have 
> other regexes with brackets/OR logic?

+HAVE_REGCOMP  -USE_GNU_REGEX  


libc6:
  Installiert:2.3.6-15
  Mögliche Pakete:2.3.6-15
  Versions-Tabelle:
 *** 2.3.6-15 0
500 cdrom://Etch DVD 1 etch/main Packages
100 /var/lib/dpkg/status

> I really have no clue what's wrong, thouhg :(

Thanks, Greetings and nice Day
Michelle Konzack
Tamay Dogan Network
Open Hardware Developer
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: First "fcc-hook" is not more working...

2007-11-30 Thread Rocco Rutte

Hi,

* Michelle Konzack wrote:


8<--
[EMAIL PROTECTED]:~/] export LANG=C
[EMAIL PROTECTED]:~/] export LC_ALL=C

[EMAIL PROTECTED]:~/] mutt
Error in /home/michelle.konzack/.mutt/hook-fcc, line 8: Unmatched ( or \(
Error in /home/michelle.konzack/.mutt/muttrc, line 18: source: errors in 
/home/michelle.konzack/.mutt/hook-fcc
source: errors in /home/michelle.konzack/.mutt/muttrc
8<--



Now, the first "fcc-hook" do not more work.  I have chnaged it to



   fcc-hook '~t .*@(bugs|packages|qa)\.debian\.org' =.BTS_debian/



but the same error.  After reading the mutt manual I am curios abot this
issue...



Any Ideas?


Oh, please not again. Somebody on IRC had exactly the same problem where 
a 600 byte alternates command wouldn't work and reported a regex error.  
In one mutt version it worked, with a different on a different system it 
didn't for no reason. As in your case, I bet the error is the regex 
engine and not mutt itself.


For the alternates issue, the workaround was to split the pattern at |.

Can you please give system details and see if multiple fcc-hooks work 
(including 'mutt -v | grep REGEX' and the libc version)? Do you have 
other regexes with brackets/OR logic?


I really have no clue what's wrong, thouhg :(

Rocco


First "fcc-hook" is not more working...

2007-11-30 Thread Michelle Konzack
Hello *,

if I start mutt I get:

8<--
[EMAIL PROTECTED]:~/] export LANG=C
[EMAIL PROTECTED]:~/] export LC_ALL=C
[EMAIL PROTECTED]:~/] mutt
Error in /home/michelle.konzack/.mutt/hook-fcc, line 8: Unmatched ( or \(
Error in /home/michelle.konzack/.mutt/muttrc, line 18: source: errors in 
/home/michelle.konzack/.mutt/hook-fcc
source: errors in /home/michelle.konzack/.mutt/muttrc
8<--

which is realy annoying and I have an include

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

#######
# 
# # fcc-hook [!] 
# 
#  is recipient,  is where to save a copy
# 

fcc-hook '~t @(bugs|packages|qa)\.debian\.org'      =.BTS_debian/

fcc-hook '~t [EMAIL PROTECTED]' =.ML_debian/

fcc-hook '~t [EMAIL PROTECTED]' =.ML_linux/
fcc-hook '~t [EMAIL PROTECTED]' =.ML_linux/
fcc-hook '~t [EMAIL PROTECTED]'     =.ML_linux/
fcc-hook '~t [EMAIL PROTECTED]'     =.ML_linux/
fcc-hook '~t [EMAIL PROTECTED]'         =.ML_linux/

fcc-hook '~t [EMAIL PROTECTED]'         =.ML_mail/
fcc-hook '~t [EMAIL PROTECTED]' =.ML_mail/
fcc-hook '~t [EMAIL PROTECTED]' =.ML_mail/

fcc-hook '~t [EMAIL PROTECTED]' =.ML_lugs/

fcc-hook '~t [EMAIL PROTECTED]' =.ML_pgsql/

fcc-hook '~t [EMAIL PROTECTED]' =.ML_php/

fcc-hook '~t [EMAIL PROTECTED]'     =.ML_xwindow/

#---------------

fcc-hook '~f [EMAIL PROTECTED]' =.Private/
fcc-hook '~f [EMAIL PROTECTED]' =.BSD/
fcc-hook '~f [EMAIL PROTECTED]' =.Devel/
fcc-hook '~f [EMAIL PROTECTED]' =.DOS/
fcc-hook '~f [EMAIL PROTECTED]' =.Linux/
fcc-hook '~f [EMAIL PROTECTED]'         =.Sun/
fcc-hook '~f [EMAIL PROTECTED]' =.Windows/


which was working long time ago...  (Debian Woody or something older)
Now, the first "fcc-hook" do not more work.  I have chnaged it to

fcc-hook '~t .*@(bugs|packages|qa)\.debian\.org'=.BTS_debian/

but the same error.  After reading the mutt manual I am curios abot this
issue...

Any Ideas?

Thanks, Greetings and nice Day
Michelle Konzack


-- 
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: [Bug?] fcc-hook or $record with IMAP boxes

2007-02-21 Thread Bernhard Schmidt
Christian Ebert wrote:

>> No change, neither with =Sent nor with +Sent.
> 
> Perhaps the prob is related to IMAP, I can't test because I don't
> use it. Still what you could do is check the values in running
> Mutt:
> 
> :set ?record

record="imap://imap.birkenwald.de/Sent"

> :set ?folder

folder="imap://imap.birkenwald.de/"

Seems to be fine.

Regards,
Bernhard


Re: [Bug?] fcc-hook or $record with IMAP boxes

2007-02-21 Thread Christian Ebert
* Bernhard Schmidt on Wednesday, February 21, 2007 at 12:43:54 +0100:
> On Wed, Feb 21, 2007 at 12:19:01PM +0100, Christian Ebert wrote:
>> * Bernhard Schmidt on Wednesday, February 21, 2007 at 11:26:26 +0100:
>>>| folder-hook . set record = =Sent
>> 
>> I gues Mutt is confused by unquoted spaces inside the command.
>> 
>> Try:
>> 
>> folder-hook . 'set record="+Sent"'
> 
> No change, neither with =Sent nor with +Sent.

Perhaps the prob is related to IMAP, I can't test because I don't
use it. Still what you could do is check the values in running
Mutt:

:set ?record

and also:

:set ?folder

This at least should tell you the current settings, and perhaps
you can derive from that what causes the problem.

c
-- 
_B A U S T E L L E N_ lesen! --->> 


Re: [Bug?] fcc-hook or $record with IMAP boxes

2007-02-21 Thread Bernhard Schmidt
On Wed, Feb 21, 2007 at 12:19:01PM +0100, Christian Ebert wrote:

> * Bernhard Schmidt on Wednesday, February 21, 2007 at 11:26:26 +0100:
> >| folder-hook . set record = =Sent
> 
> I gues Mutt is confused by unquoted spaces inside the command.
> 
> Try:
> 
> folder-hook . 'set record="+Sent"'

No change, neither with =Sent nor with +Sent.

Regards,
Bernhard


Re: [Bug?] fcc-hook or $record with IMAP boxes

2007-02-21 Thread Christian Ebert
* Bernhard Schmidt on Wednesday, February 21, 2007 at 11:26:26 +0100:
>| folder-hook . set record = =Sent

I gues Mutt is confused by unquoted spaces inside the command.

Try:

folder-hook . 'set record="+Sent"'

c
-- 
_B A U S T E L L E N_ lesen! --->> 


[Bug?] fcc-hook or $record with IMAP boxes

2007-02-21 Thread Bernhard Schmidt
Hi,

I'm running mutt (Debian 1.5.13 package) with IMAP mailboxes only and
I'm trying to save my sent mail to the Sent folder of this IMAP account
(and to another mailbox if I was in a special mailbox before, hence the
folder-hook, happens without it as well though):

| folder-hook . set record = =Sent

after I edit the mail, Fcc: =Sent is prefilled in the Compose window as
one would expect.  When I send it the message does not appear in the
folder though. If I press 'f' in the sending window (to choose Fcc) and
just press ENTER (so basically accepting the selection I made before) it
is saved.

Anyone having seen that?

Regards,
Bernhard


Re: fcc-hook: how to set the current folder?

2002-10-13 Thread Nicolas Rachinsky

* Lukas Ruf <[EMAIL PROTECTED]> [2002-10-13 23:43 +0200]:
> On Sun, 13 Oct 2002, David T-G wrote:
> > Why bother to be folder-specific?  Back to TFM and you'll find the
> > abbreviation for "the current folder" can help:
> > 
> >   fcc-save-hook . ^
> > 
> Pardon my non-understanding, but searching the text version of the
> manual for "the current folder" as well as trying your proposal have
> not helped me solving my problem.  When I define a fcc-save-hook as
> proposed, the Fcc: in the "send menu" (?) reads 
> Fcc: ^
> -- but there is no message appended to the current folder.
> 
> Maybe, I misinterpreted something?

David forgot to mention that ^ is added by a patch. You find it:
http://home.worldonline.dk/~byrial/mutt/patches/

Nicolas



Re: fcc-hook: how to set the current folder?

2002-10-13 Thread Lukas Ruf

Elimar,

thanks.

On Sun, 13 Oct 2002, Elimar Riesebieter wrote:

> 
> "inbox" is the folder where your incoming mails are saved! If you
> are using procmail it is your DEFAULT=$MAILDIR/YourInbox. If not try
> /var/spool/mail/YourUserName!
> 
Well, I know the name inbox from my pine-times -- some two or three
years ago.  I do not like it since I make heavily use of procmail to
distribute my emails to appropriate folders.  For this reason, I call
my "inbox" +def, which stands for default, i.e. the mails I could not
automagically deliver to the appropriate folder.

What I meant is that I would like to configure a
fcc-hook/fcc-save-hook the way that if I reply to a single user of a
mailing list, the email gets saved into the appropriate folder.  For
example, assume I would have sent this email to you only.  However,
since the email was delivered to my =mutt folder, I would like to have
the outgoind email sent into =mutt too.  But, since I do not know how
to specify the current folder, I have specified 
fcc-save-hook . =def 
in my muttrc.

The other proposal sent by David directed to the point I wanted to
know.  However, neither TFM nor the hint could really help me.

If anyone has any further help, I would really appreciate!  

Thanks!
-- 
Lukas Ruf
http://www.lpr.ch http://www.maremma.ch
http://www.{{topsy,nodeos}.net,{promethos,netbeast,rawip}.org}
Wanna know anything about raw ip? Join [EMAIL PROTECTED] on www.rawip.org



Re: fcc-hook: how to set the current folder?

2002-10-13 Thread Elimar Riesebieter

On Sun, 13 Oct 2002 the mental interface of 
Lukas Ruf told:

> Elimar,
> 
> On Sun, 13 Oct 2002, Elimar Riesebieter wrote:
> 
> > 
> > This means you want "set record=+inbox" ?
> > 
> > Maybe fcc-hook . "inbox" , but this is a contradiction!
> > 
> 
> I do not have a folder named inbox.  It does not really solve my
> problem.  Thanks, anyway.

"inbox" is the folder where your incoming mails are saved! If you
are using procmail it is your DEFAULT=$MAILDIR/YourInbox. If not try
/var/spool/mail/YourUserName!

Uff!

-- 
  Excellent day for drinking heavily. 
  Spike the office water cooler;-)



msg31778/pgp0.pgp
Description: PGP signature


Re: fcc-hook: how to set the current folder?

2002-10-13 Thread Lukas Ruf

David,

On Sun, 13 Oct 2002, David T-G wrote:

> 
> Why bother to be folder-specific?  Back to TFM and you'll find the
> abbreviation for "the current folder" can help:
> 
>   fcc-save-hook . ^
> 
Pardon my non-understanding, but searching the text version of the
manual for "the current folder" as well as trying your proposal have
not helped me solving my problem.  When I define a fcc-save-hook as
proposed, the Fcc: in the "send menu" (?) reads 
Fcc: ^
-- but there is no message appended to the current folder.

Maybe, I misinterpreted something?

Thanks for any help!
-- 
Lukas Ruf
http://www.lpr.ch http://www.maremma.ch
http://www.{{topsy,nodeos}.net,{promethos,netbeast,rawip}.org}
Wanna know anything about raw ip? Join [EMAIL PROTECTED] on www.rawip.org



Re: fcc-hook: how to set the current folder?

2002-10-13 Thread Lukas Ruf

Elimar,

On Sun, 13 Oct 2002, Elimar Riesebieter wrote:

> 
> This means you want "set record=+inbox" ?
> 
> Maybe fcc-hook . "inbox" , but this is a contradiction!
> 

I do not have a folder named inbox.  It does not really solve my
problem.  Thanks, anyway.

-- 
Lukas Ruf
http://www.lpr.ch http://www.maremma.ch
http://www.{{topsy,nodeos}.net,{promethos,netbeast,rawip}.org}
Wanna know anything about raw ip? Join [EMAIL PROTECTED] on www.rawip.org



Re: fcc-hook: how to set the current folder?

2002-10-13 Thread David T-G

Luka --

...and then Lukas Ruf said...
% 
...
% b) all the emails I do not have specifically configured fcc-hooks for,
%I would like to store in the folder where I actually read the
%emails in.  This is most useful when replying.
% 
% For b) I would like to make use of the folder-hook.  When entering a
% particular folder, I would like to set the fcc-hook such that every
% outgoing email is saved in this folder.

Why bother to be folder-specific?  Back to TFM and you'll find the
abbreviation for "the current folder" can help:

  fcc-save-hook . ^

Of course, you follow that with your specific cases and away you go.


HTH & HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg31773/pgp0.pgp
Description: PGP signature


Re: fcc-hook: how to set the current folder?

2002-10-13 Thread Elimar Riesebieter

On Sun, 13 Oct 2002 the mental interface of 
Lukas Ruf told:

> Dear all,
> 
> I would like to configure mutt 1.4 for outgoing emails such that every
> outgoing email is saved in an folder according to one of the following
> two methods:
> 
> a) some particular folders are configured according to well-known ,-)
>email-addresses using the fcc-hook '~C pattern' 'folder_notation'
>--> solved 
>   
> b) all the emails I do not have specifically configured fcc-hooks for,
>I would like to store in the folder where I actually read the
>emails in.  This is most useful when replying.
> 
> For b) I would like to make use of the folder-hook.  When entering a
> particular folder, I would like to set the fcc-hook such that every
> outgoing email is saved in this folder.

This means you want "set record=+inbox" ?

Maybe fcc-hook . "inbox" , but this is a contradiction!

HTH

-- 
  Ersatz des Zufalls durch den Irrtum.
-unknown-



msg31769/pgp0.pgp
Description: PGP signature


fcc-hook: how to set the current folder?

2002-10-13 Thread Lukas Ruf

Dear all,

I would like to configure mutt 1.4 for outgoing emails such that every
outgoing email is saved in an folder according to one of the following
two methods:

a) some particular folders are configured according to well-known ,-)
   email-addresses using the fcc-hook '~C pattern' 'folder_notation'
   --> solved 
  
b) all the emails I do not have specifically configured fcc-hooks for,
   I would like to store in the folder where I actually read the
   emails in.  This is most useful when replying.

For b) I would like to make use of the folder-hook.  When entering a
particular folder, I would like to set the fcc-hook such that every
outgoing email is saved in this folder.

I read again some of the mutt-documentation on the different hooks,
variables and also most of the example muttrc, but I have neither found a
solution to this problem nor a hint how I could figure out the name of
the actual folder.

Any hint is gratefully appreciated!

Thanks
-- 
Lukas Ruf
http://www.lpr.ch http://www.maremma.ch
http://www.{{topsy,nodeos}.net,{promethos,netbeast,rawip}.org}
Wanna know anything about raw ip? Join [EMAIL PROTECTED] on www.rawip.org



Re: Complex fcc-hook?

2002-08-21 Thread Gary Johnson

On Wed, Aug 21, 2002 at 04:09:59AM -0700, Ryan Sorensen wrote:

> For an odd reason, fcc-save-hook seems to be order dependent.. The
> default hook'll override the specific one there. folder-hook doesn't
> seem to do the same thing. It took me a few minutes to try changing the
> order to the one they are now.

The purpose of an fcc-save-hook is to select a mailbox.  You can only
Fcc to one mailbox, so mutt stops searching the list of fcc-save-hooks
at the first hook whose pattern match succeeds.

The purpose of a folder-hook is to execute a command.  You can execute
several commands when changing folders, so mutt searches the entire list
of folder-hooks and executes every hook whose pattern match succeeds.

This means that if some folder-hooks set the same variable to different
values, the _last_ one in the list whose pattern match succeeds "wins",
whereas the _first_ fcc-save-hook in the list whose pattern match
succeeds "wins".  This also means that the order of folder-hooks should
be from more general patterns to more specific patterns (e.g., the
default hook should be first), whereas the order of fcc-save-hooks
should be from more specific patterns to more general patterns (e.g.,
the default hook should be last).

HTH,
Gary

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



Re: Complex fcc-hook?

2002-08-21 Thread Ryan Sorensen


msg.pgp
Description: PGP message


Re: Complex fcc-hook?

2002-08-21 Thread David T-G

Ryan --

Gee, it must be fcc-hook day on the list...

...and then Ryan Sorensen said...
% 
% I have procmail and mutt set up so mails for lists are automatically put
% in =lists/listname, and mutt recognizes every subdirectory name in that
% directory as a list.

Not bad.


% 
% listname is the part before the @, like mutt-users for this one.

Hokay.


% 
% Default save for other things, people, mainly, is in =people/name, where
% again, name is the part before the @.

OK.


% 
% How can I create fcc-hooks to put sent mail in the right directories?

I'd try something like

  fcc-save-hook . =people/%O# use "original" target but in this subdir
  fcc-save-hook (list1|list2|...) =lists/%O

for starters.  Since you have all of your list mail separated out, you
could have a script walk the directory and generate the list hook(s), and
all you have to do is ensure that you get the first list post (if you
post before you receive) saved into the right directory and then let your
muttrc handle it all again.


HTH & HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg30396/pgp0.pgp
Description: PGP signature


Complex fcc-hook?

2002-08-20 Thread Ryan Sorensen


I have procmail and mutt set up so mails for lists are automatically put
in =lists/listname, and mutt recognizes every subdirectory name in that
directory as a list.

listname is the part before the @, like mutt-users for this one.

Default save for other things, people, mainly, is in =people/name, where
again, name is the part before the @.

How can I create fcc-hooks to put sent mail in the right directories?



No record of mails (on fcc-hook) when mailbox is not valid

2001-08-30 Thread Volker Moell

Hi, there!

When specifying the fcc-hook:
   fcc-hook 'foo'  "+x/y/z"

without having a folder x/y/, mutt displays an error message which I
can't read, and then at once the "Mail sent.". I even can't read the
'message when increasing the $sleep_time.

But not the not-readable error message is the problem, but the
not-saving of the mail. I got at least no question dialog, and a grep
found nothing (both in ~/Mail and /tmp).

Is this a bug or do I have something misconfigured?

  -volker
   
-- 
  http://die-moells.de/  *  http://stama90.de/  *  http://scriptdale.de/

Q:  What's a light-year?
A:  One-third less calories than a regular year.



Re: my_hdr and fcc-hook

2001-07-27 Thread Thomas Huemmler

Hi Cedric,

* Cedric Duval <[EMAIL PROTECTED]> [010727 01:09]:
> * Thomas Huemmler <[EMAIL PROTECTED]> [07/27/01 00:23]:
> > I´ve got a problem with "my_hdr From:" and "fcc-hook". If "my_hdr From:"
> > is set, Mutt doesn´t produce a Fcc-Line. Is this a bug?
> 
> Looks like no fcc-hook is matching your mail.
> What are your fcc-hooks like? If they just use a simple regexp (i.e.
> without '~'), then they are evaluated according to the 'default-hook'
> variable.
> 
> The default for default-hook is
>   "~f %s !~P | (~P ~C %s)"
> ^^^
> 
> As it uses ~P, perhaps you haven't correctly set your 'alternates'
> variable?
> 
I haven´t set 'alternates' at all. Now I have. Thanks a lot.

:-)
Thomas


-- 
Thomas Hümmler * mailto:[EMAIL PROTECTED] * http://www.huemmler.de
REDAKTIONSBÜRO T.O.M. * Gsprait 1 * D-85560 Ebersberg
Phone: +49 (0 80 92) 8 38 33 Fax: +49 (0 80 92) 8 38 34
* am Kiosk: CHIP Linux-Spezial: KDE 2.1.1 für SuSE, Red HAT, Debian *



Re: my_hdr and fcc-hook

2001-07-26 Thread Cedric Duval

* Thomas Huemmler <[EMAIL PROTECTED]> [07/27/01 00:23]:
> I´ve got a problem with "my_hdr From:" and "fcc-hook". If "my_hdr From:"
> is set, Mutt doesn´t produce a Fcc-Line. Is this a bug?

Looks like no fcc-hook is matching your mail.
What are your fcc-hooks like? If they just use a simple regexp (i.e.
without '~'), then they are evaluated according to the 'default-hook'
variable.

The default for default-hook is
  "~f %s !~P | (~P ~C %s)"
^^^

As it uses ~P, perhaps you haven't correctly set your 'alternates'
variable?

HTH,
Cedric.



my_hdr and fcc-hook

2001-07-26 Thread Thomas Huemmler

Hi mutt users,

I´ve got a problem with "my_hdr From:" and "fcc-hook". If "my_hdr From:"
is set, Mutt doesn´t produce a Fcc-Line. Is this a bug? 
I´ve consulted google and the mutt-user-archive on mutt.org, but
didn´t find an answer. 
I am using "Mutt 1.2.5i (2000-07-28)" on Debian potato.

Is there any workaround?

tia
thomas

-- 
Thomas Hümmler * mailto:[EMAIL PROTECTED] * http://www.huemmler.de
REDAKTIONSBÜRO T.O.M. * Gsprait 1 * D-85560 Ebersberg
Phone: +49 (0 80 92) 8 38 33 Fax: +49 (0 80 92) 8 38 34
* am Kiosk: CHIP Linux-Spezial: KDE 2.1.1 für SuSE, Red HAT, Debian *



Re: regexps in fcc-hook, save-hook

2001-06-27 Thread John Arundel

On 2001-06-26 at 16:59:35, Zane Crawford warbled:
> What I'm trying to do, is make it such that by default, if no other rule
> defines how something will be saved, that it offers USER (from
> [EMAIL PROTECTED]) as the folder name.  Thanks!

But this is the default behaviour anyway, isn't it?

Backrefs would be nice, though.


--
"I've had a perfectly wonderful evening. But this wasn't it." - Groucho Marx

   I prefer encrypted mail (see headers for PGP key)
   Why encrypt? http://www.heureka.clara.net/sunrise/pgpwhy.htm


 PGP signature


Re: fcc-hook update after To: change

2000-08-24 Thread David Champion

On 2000.08.24, in <[EMAIL PROTECTED]>,
"David T-G" <[EMAIL PROTECTED]> wrote:
> 
> Well, while that might be convenient, I can also see how that would cause
> problems.  If you specifically set the fcc and then mutt notices that it

Yep.

> Probably :-)  My bet is that it would only be a benevolent feature patch,
> though.

Seems like the most adaptable approach, if this were to be implemented,
is to have an update-fcc routine that rewrites fcc: according to to:
and $force_name/$save_name.  I think that automating it would be
problematic for a variety of reasons.

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



Re: fcc-hook update after To: change

2000-08-24 Thread David T-G

Daniel --

Did you know your message hit the list twice as two separate items?


...and then Daniel Kollar said...
% Hi there,
% 
% I encountered a missing feature (or a bug?).

I think it's more the former.


% 
% When creating a new mail and exiting the editor, mutt fills in the correct Fcc: 
folder according to the fcc-hook entry.

Yep.


% When the To: entry is changed after this, the Fcc: should be updated.

Well, while that might be convenient, I can also see how that would cause
problems.  If you specifically set the fcc and then mutt notices that it
doesn't match the To: header (or you change the To: header and make mutt
want to change the fcc) then you'd be pretty unhappy.  If you don't
actually want the fcc to change and mutt changes it, then you'd also be
unhappy.

I have some various fcc-hooks that I'd hate to have to either work around
or enter by hand in cases such as above.  For instance, I might send
mail to myself and a multi-address alias to get mutt to set the fcc:
to my folder, but I'd of course remove myself from the To: header before
sending since I don't really want the mail sent to me.  I might also start
a message with the fcc: set somehow and then, as an afterthought, add an
additional recipient that matches an fcc-hook that shouldn't really apply.


% 
% Can this be implemented?

Probably :-)  My bet is that it would only be a benevolent feature patch,
though.


% 
% Cu,
% Daniel.
% -- 

HTH & HAND


:-D
-- 
David T-G   * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]  * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


fcc-hook update after To: change

2000-08-24 Thread Daniel Kollar

Hi there,

I encountered a missing feature (or a bug?).

When creating a new mail and exiting the editor, mutt fills in the correct Fcc: folder 
according to the fcc-hook entry.
When the To: entry is changed after this, the Fcc: should be updated.

Can this be implemented?

Cu,
Daniel.
-- 

+ DANIEL KOLLAR   Fujitsu Microelectronics Europe GmbH +
+ Application EngineerASIC/RF Technology   +
+ fon +49(0)6103-690-212  Am Siebenstein 6-10  +
+ fax +49(0)6103-690-122  D-63303 Dreieich-Buchschlag  +
+ [EMAIL PROTECTED]+




fcc-hook update after To: change

2000-08-24 Thread Daniel Kollar

Hi there,

I encountered a missing feature (or a bug?).

When creating a new mail and exiting the editor, mutt fills in the correct Fcc: folder 
according to the fcc-hook entry.
When the To: entry is changed after this, the Fcc: should be updated.

Can this be implemented?

Cu,
Daniel.
-- 

+ DANIEL KOLLAR   Fujitsu Microelectronics Europe GmbH +
+ Application EngineerASIC/RF Technology   +
+ fon +49(0)6103-690-212  Am Siebenstein 6-10  +
+ fax +49(0)6103-690-122  D-63303 Dreieich-Buchschlag  +
+ [EMAIL PROTECTED]+





Re: order of save-hook,fcc-hook,fcc-save-hook,etc matters?

2000-02-15 Thread Mikko Hänninen

Brian Kimball <[EMAIL PROTECTED]> wrote on Tue, 15 Feb 2000:
> Now I'm experimenting with fcc-save-hook, save-hook, and fcc-hook, and
> I'm finding that my default setting (fcc-save-hook .  "...") has to be
> placed after all my other fcc-hooks and save-hooks in order to get it to
> work.  Is this the intended behavior?

Yes.

You can only save or Fcc a message to one folder, so Mutt stops when
it finds the first match.  You need to choose the match priorities with
the order of the hooks.

For send-hooks and folder-hooks this isn't so, because Mutt can execute
all the specified (and matching) commands, no problem.  Even here order
actually matters, any matching hooks are executed in the order listed in
the .muttrc.  (Well, untested, but that's how I think it works...)


Regards,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
I have a bad feeling about this.



order of save-hook,fcc-hook,fcc-save-hook,etc matters?

2000-02-15 Thread Brian Kimball

I've never had to worry about the order of my folder-hooks.  They seem
to work regardless of where and in what order I put them in my .muttrc.
Now I'm experimenting with fcc-save-hook, save-hook, and fcc-hook, and
I'm finding that my default setting (fcc-save-hook .  "...") has to be
placed after all my other fcc-hooks and save-hooks in order to get it to
work.  Is this the intended behavior?

Thanks.

-- 
Brian Kimball



Re: saving mails -> savename + fcc-hook

2000-01-21 Thread Sven Guckes

* Jason Helfman <[EMAIL PROTECTED]> [000120 17:16]:
> .. everytime I send a msg, Mutt wants to create a mailbox for it.

I suppose you have "savename" set, ie mails to "user@domain"
are saved in folder "=user".  You might want to unset this or
define a fcc-hook to set the folder used for saving the copies:

fcc-hook  .   "=OUT"

The single dot always matches so folder "OUT"
should be used to save all outgoing mails.

Sven

-- 
Sven [EMAIL PROTECTED] using mutt-1.1.2i [000108] and  ,,
MUTT http://www.mutt.org/  news:comp.mail.mutt  (__/'.
MUTT http://www.math.fu-berlin.de/~guckes/mutt/ /| |\
MUTT MUTT - *the* mailer for UNIX with color, threading, IMAP+MIME+PGP+POP



Re: prompt for Fcc -> default fcc-hook

2000-01-20 Thread Sven Guckes

* Eric Smith <[EMAIL PROTECTED]> [000120 14:15]:
> How may I set mutt to prompt for an Fcc in the case
> that there is no Fcc hook or rule already?

There is no such prompt for Fcc.
Workaround:  Set a default fcc-hook.

Sven



Re: my_hdr From: && fcc-hook

1999-12-29 Thread David T-G

Alexander --

...and then Alexander Sclearuc said...
% Hello guys,
% 
% The problem:
% 
% I've corrected mutt configuration adding next string in it (to
% represent my current configuration): 
% my_hdr From: Alexander Sclearuc <[EMAIL PROTECTED]>

What was it doing before?


% 
% Now all my fcc-save-hook and fcc-hook directives do not have any
% effect: by default all messages are proposed to be saved in

Hmmm...  That's curious...


% =sent. I have played around with different configuration commands
% send-hook - no effect too.

Well, to turn off the =sent setting, try setting force_name in your
.muttrc (currently a commented out "unset" statement, which probably
means that it's still unset by default).


% 
% So, the question: what should be done to make fcc-save-hook &
% fcc-hook options working again?

You probably need to send on your hook files (sourced, I see) for us to
debug them, but try the force_name first to see if that changes =sent at
all.


:-D
-- 
David T-G   * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]  * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
"Why2k?  Well, I didn't think at the time that I could charge any more!"
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


my_hdr From: && fcc-hook

1999-12-28 Thread Alexander Sclearuc

Hello guys,

The problem:

I've corrected mutt configuration adding next string in it (to
represent my current configuration): 
my_hdr From: Alexander Sclearuc <[EMAIL PROTECTED]>

Now all my fcc-save-hook and fcc-hook directives do not have any
effect: by default all messages are proposed to be saved in
=sent. I have played around with different configuration commands
send-hook - no effect too.

So, the question: what should be done to make fcc-save-hook &
fcc-hook options working again?

Mutt version: mutt v1.0i

If you find that more information is needed please find attached
.muttrc file.

Looking forward to your replies,
Alex
-- 
Alexander Sclearuc  Phone:  (373 2) 229968, 229967
NetInfo S.R.L.  Phone/Fax:  (373 2) 213659
Chisinauhttp://www.netinfo-moldova.com
Moldova, Republic of  mailto:[EMAIL PROTECTED]


#
# System configuration file for Mutt
#

#
# $Id: Muttrc.in,v 2.0 1998/12/12 08:05:33 roessler Rel $
#

# default list of header fields to weed when displaying
#
ignore *
unignore from: to cc subject sender date X-URL
#ignore "from "
#ignore "from " received content- mime-version status x-status message-id
#ignore references return-path lines
#unignore sender

#
bind index \eK extract-keys
bind pager \eK extract-keys
bind attach \eK extract-keys

# imitate the old search-body function
macro index \eb '/~b ' 'search in message bodies'
macro index \eB |urlview\n 'call urlview to extract URLs out of a message'
macro pager \eB |urlview\n 'call urlview to extract URLs out of a message'

# lists
macro index \e] ":unlists *\n"
macro index \e[ ":source ~/.mutt.d/mutt.mailing-lists\n"

# simluate the old url menu

# Show documentation when pressing F1
macro generic  "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation"
macro index"!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation"
macro pager"!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation"

# If Mutt is unable to determine your sites domain name correctly, you can
# set the default here.
#
set hostname=netinfo-moldova.com

# If your sendmail supports the -B8BITMIME flag, enable the following
#
# set use_8bitmime

##
## More settings
##

# set abort_nosubject=ask-yes
# set abort_unmodified=yes
# set allow_8bit
set arrow_cursor
set ascii_chars
# unset askbcc
# unset askcc
# set attach_format="%u%D%t%2n %T%.40d%> [%.7m/%.10M, %.6e, %s] "
# set attach_split
# set attach_sep="\n"
set attribution="On %d, %n wrote:"
set autoedit
# unset auto_tag
unset beep
unset beep_new
#set charset="iso-8859-1"
#set charset="koi8-r"
set charset="cp866"
# set check_new
# set collapse_unread
unset confirmappend
# set confirmcreate
# set copy=yes
# set date_format="!%a, %b %d, %Y at %I:%M:%S%p %Z"
# set default_hook="~f %s !~P | (~P ~C %s)"
set delete=yes
set dsn_notify="failure,delay"
set dsn_return="hdrs"
set edit_headers
# set editor=""
# set escape="~"
set fast_reply
# unset fcc_attach
# set folder="~/Mail"
# set folder_format="%N %F %2l %-8.8u %-8.8g %8s %d %f"
# set followup_to
# unset force_name
# set forward_decode
# unset forward_decrypt
# set forward_format="[%a: %s]"
# unset forward_quote
# set hdrs
# unset header
# set help
# unset hidden_host
set history=10
# set hostname=""
# set in_reply_to="%i; from %n on %{!%a, %b %d, %Y at %I:%M:%S%p %Z}"
# set include=ask-yes
# set indent_string="> "
# set index_format="%4C %Z %{%b %d} %-15.15L (%4l) %s"
# unset ignore_list_rely_to
set ispell="/usr/local/bin/ispell"
# set locale="C"
# set mail_check=5
# set mailcap_path=""
# set mark_old
# set markers
# set mask="!^\\.[^.]"
set mbox="~/mbox"
# set mbox_type="mmdf"
# unset metoo
# unset menu_scroll
# unset meta_key
# unset mh_purge
set mime_forward=ask-yes
unset mime_forward_decode
set move=no
# set message_format="%s"
# set pager="builtin"
# unset pager_context
# set pager_format="-%S- %C/%m: %-20.20n   %s"
# set pager_index_lines=0
# unset pager_stop
# unset pip_split
# unset pipe_decode
# set pipe_sep="\n"
# set post_indent_string=""
set postpone=ask-no
set postponed="~/postponed"
# set print=ask-no
set print_command="lp"
# set prompt_after=1
# set query_command=""
# set quit=yes
# set quote_regexp="^([ \t]*[|>:}#])+"
# set reply_regexp="^(re([\\[0-9\\]+])*|aw):[ \t]*"
# set read_inc=10
# unset read_only
set realname="Alexander Sclearuc <[EMAIL PROTECTED]>"
# set recall=ask-yes
set record="=sent"
# unset reply_self
# set reply_to=as

fcc-hook bug?

1999-05-07 Thread Grant Beattie

Perhaps I am not understanding something...

-- .muttrc --
fcc-hook ericsson\.se =ericsson
-- .muttrc --

If I send mail to [EMAIL PROTECTED], no fcc: gets set.

What am I doing wrong?

g.

-- 
Grant Beattie  Network & Unix Consultant
work: [EMAIL PROTECTED]  The Fulcrum Consulting Group
play: [EMAIL PROTECTED]http://grant.spyda.net/