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-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: Mutt with IMAP not checking (subscribed) folders

2008-01-11 Thread Michelle Konzack
Am 2008-01-08 22:53:10, schrieb Patrick Ben Koetter:
> Almost a week gone by and nobody picked this mail up. 

:-)  Maybe to less infos...

> Am I asking the wrong list? Is there some error so obvious nobody even thinks
> its worth to answer?

First of all:  Since you have:

set folder=imap://mail.state-of-mind.de/INBOX
and
INBOX.ml.spamassassin

I asume you are using courier-imap (which I use since years and I have
the same syntax)

Do you have setup the "mailboxes" command like

mailboxes =.ml.spamassassin

if not, mutt will NOT CHECK the mailfolder for new messages.
The "subscribe " has nothing to do with the polling for NEW
MESSAGES.

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


How to move outgoing mails in different mailboxes

2008-01-11 Thread Francis Moreau
Hello,

First of all, I did read the manual and I know how to do basic move using
hooks, yes I did my homework ;)

But with my following config, I don't see how to set up mutt to do the
right thing.

This is my config:

  - My spool mailbox is in a non-default place: it points to my imap local
server;

  - I subscribed to several mailing lists. The emails coming from a
specific mailing list are placed in a specific mailbox.

  - I have several mailboxes where emails are put because of their
subjects they adressed. For example I created a mailbox call
"Projects/Foo" where all emails dealing with Foo project are put.

  - I have several mailboxes where emails are put regarding the sender
of emails. For example, I created a mailbox called "Dad" where all
emails coming from [EMAIL PROTECTED] are placed.

So now I'd like to move my outgoing emails according to the mailbox
I'm composing this email:

  - if I compose an email from my spool mailbox, I'd like mutt to save
the outgoing message in my spool mailbox;

  - if I compose an email from a mailing list, I suppose there's no need
to save anything since I'm going to received a copy of the email I
wrote (I'm subscribed)

  - If I compose an email from my project mailboxe I'd like mutt to keep
a copy in this mailbox.

  - If I compose an email from a personal mailboxe I'd like Mutt to keep
a copy in this mailbox.

Coud anyone tell me if it possible ? If so could he give me any hints ?

Thanks !
-- 
Francis


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
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: How to move outgoing mails in different mailboxes

2008-01-11 Thread Lucas GR
> So now I'd like to move my outgoing emails according to the mailbox
> I'm composing this email

I have just asked the same thing

It is the thread named 'MTA and fcc-hook'

Good Luck

 Lucas J. González


Re: How to move outgoing mails in different mailboxes

2008-01-11 Thread Francis Moreau
He
Hello Kyle,

On Jan 11, 2008 7:42 PM, Kyle Wheeler <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Friday, January 11 at 06:19 PM, quoth Francis Moreau:
> > So now I'd like to move my outgoing emails according to the mailbox
> > I'm composing this email:
>
> Let's start with the exception:
>
> >  - if I compose an email from a mailing list, I suppose there's no
> >  need to save anything since I'm going to received a copy of the
> >  email I wrote (I'm subscribed)
>
> send-hook ~l 'set record='
>
> Now, you'll note that all the rest of these amount to the same thing:
> "if I'm in mailbox X, save the message to mailbox X".
>
> >  - if I compose an email from my spool mailbox, I'd like mutt to
> >  save the outgoing message in my spool mailbox;
> >  - If I compose an email from my project mailboxe I'd like mutt to
> >  keep a copy in this mailbox.
> >  - If I compose an email from a personal mailboxe I'd like Mutt to
> >  keep a copy in this mailbox.
>
> The following will do that:
>
>  fcc-hook . ^
>

Ah, that's what I can't find in the documentation. '^' char means the
current mailbox, doesn't it ?

I took a look to "mailbox shortcuts" in the documentation (section 4.7)
but there's no reference of this shortcut.

> The question is: how do you want these two to interact. If you simply
> put them both in your muttrc, the fcc-hook will always override the
> send-hook. If you'd like the send-hook to override the fcc-hook, use
> this (AFTER the fcc-hook) instead:
>
>  fcc-hook ~l /dev/null
>
> Alright, technically, that's a hack, since mutt's still saving the
> FCC. Unfortunately doing something like this:
>
>  fcc-hook ~l ''
>
> ... doesn't work.
>
> There are probably a half a dozen other ways of doing this. Here's
> another method:
>
>  send-hook .  'set record=^'
>  send-hook ~l 'set record='
>

Same here, I can't find the '^' meaning in the doc.

Thanks
-- 
Francis


Re: How to move outgoing mails in different mailboxes

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

On Friday, January 11 at 06:19 PM, quoth Francis Moreau:
> So now I'd like to move my outgoing emails according to the mailbox 
> I'm composing this email:

Let's start with the exception:

>  - if I compose an email from a mailing list, I suppose there's no 
>  need to save anything since I'm going to received a copy of the 
>  email I wrote (I'm subscribed)

send-hook ~l 'set record='

Now, you'll note that all the rest of these amount to the same thing: 
"if I'm in mailbox X, save the message to mailbox X".

>  - if I compose an email from my spool mailbox, I'd like mutt to 
>  save the outgoing message in my spool mailbox;
>  - If I compose an email from my project mailboxe I'd like mutt to 
>  keep a copy in this mailbox.
>  - If I compose an email from a personal mailboxe I'd like Mutt to 
>  keep a copy in this mailbox.

The following will do that:

 fcc-hook . ^

The question is: how do you want these two to interact. If you simply 
put them both in your muttrc, the fcc-hook will always override the 
send-hook. If you'd like the send-hook to override the fcc-hook, use 
this (AFTER the fcc-hook) instead:

 fcc-hook ~l /dev/null

Alright, technically, that's a hack, since mutt's still saving the 
FCC. Unfortunately doing something like this:

 fcc-hook ~l ''

... doesn't work.

There are probably a half a dozen other ways of doing this. Here's 
another method:

 send-hook .  'set record=^'
 send-hook ~l 'set record='

~Kyle
- -- 
This is my simple religion. There is no need for temples; no need for 
complicated philosophy. Our own brain, our own heart is our temple; 
the philosophy is kindness.
  -- Dalai Lama
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iD8DBQFHh7ivBkIOoMqOI14RAja7AJ9bZacFf60zTRldeldq4+SuUhEKewCeIz96
VS76zA4gyqv2H9POlSY9KuQ=
=vEBy
-END PGP SIGNATURE-


Re: How to move outgoing mails in different mailboxes

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

On Friday, January 11 at 09:26 PM, quoth Francis Moreau:
>> The following will do that:
>>
>>  fcc-hook . ^
>>
>
> Ah, that's what I can't find in the documentation. '^' char means the 
> current mailbox, doesn't it ?
>
> I took a look to "mailbox shortcuts" in the documentation (section 4.7) 
> but there's no reference of this shortcut.

It's new to the devel version of mutt, so it's probably not been added 
to the documentation yet. :(

Yes, ^ means "the current mailbox".

~Kyle
- -- 
Time is an illusion. Lunchtime doubly so.
   -- Douglas Adams
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iD8DBQFHh9ZgBkIOoMqOI14RAioEAJ9NnUljFXNGWIGac9P2j/EtlTFytACfQw0u
3wC1wI+rVE4PCZdzGXfvrm4=
=IG1+
-END PGP SIGNATURE-


Re: Mutt with IMAP not checking (subscribed) folders

2008-01-11 Thread Patrick Ben Koetter
* Michelle Konzack <[EMAIL PROTECTED]>:
> Am 2008-01-08 22:53:10, schrieb Patrick Ben Koetter:
> > Almost a week gone by and nobody picked this mail up. 
> 
> :-)  Maybe to less infos...

This I can hopefully mend...

> > Am I asking the wrong list? Is there some error so obvious nobody even 
> > thinks
> > its worth to answer?
> 
> First of all:  Since you have:
> 
> set folder=imap://mail.state-of-mind.de/INBOX
> and
> INBOX.ml.spamassassin
> 
> I asume you are using courier-imap (which I use since years and I have
> the same syntax)

Yes. Currently I am using Courier IMAP.


> Do you have setup the "mailboxes" command like
> 
> mailboxes =.ml.spamassassin

Yes, I do have. Here's an excerpt from my current config:

# IMAP
set imap_user='user'
set imap_pass='pass'
set imap_authenticators='cram-md5:plain'
set spoolfile=imap://mail.state-of-mind.de/INBOX
set folder=imap://mail.state-of-mind.de/INBOX
set imap_list_subscribed=no
set imap_check_subscribed=yes

# Mailboxen/Ordner-Einstellungen
set record="=.sent-mail"
set postponed="=.drafts"

mailboxes =.root =.backup =.state-of-mind

> if not, mutt will NOT CHECK the mailfolder for new messages.
> The "subscribe " has nothing to do with the polling for NEW
> MESSAGES.

So I do have that, but it does not seem to work. my mutt still does not show
new messages and I do know there are new messages in there.

Any ideas?

[EMAIL PROTECTED]



Re: How to move outgoing mails in different mailboxes

2008-01-11 Thread Francis Moreau
On Jan 11, 2008 9:49 PM, Kyle Wheeler <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Friday, January 11 at 09:26 PM, quoth Francis Moreau:
> >> The following will do that:
> >>
> >>  fcc-hook . ^
> >>
> >
> > Ah, that's what I can't find in the documentation. '^' char means the
> > current mailbox, doesn't it ?
> >
> > I took a look to "mailbox shortcuts" in the documentation (section 4.7)
> > but there's no reference of this shortcut.
>
> It's new to the devel version of mutt, so it's probably not been added
> to the documentation yet. :(
>

So does that mean I can't use this new notation with the version of
Mutt I'm using: 1.5.14 ? I unfortunately can't test it right now cause
I'm writting this on a machine where Mutt is not installed.

If so, when is the new release including this new notation planed ?

Thanks !
-- 
Francis


Re: How to move outgoing mails in different mailboxes

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

On Friday, January 11 at 10:30 PM, quoth Francis Moreau:
> So does that mean I can't use this new notation with the version of 
> Mutt I'm using: 1.5.14 ? I unfortunately can't test it right now 
> cause I'm writting this on a machine where Mutt is not installed.
>
> If so, when is the new release including this new notation planed ?

The feature was made available in 1.5.10. It is mentioned in the 
UPDATING file, but unfortunately not in the rest of the documentation.

~Kyle
- -- 
To believe in God is impossible---to not believe in him is absurd.
-- Voltaire
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iD8DBQFHh+07BkIOoMqOI14RAq4gAJ0fiioaDu7hwwVbptweRLZxgcTQ6wCg6Alm
xLLBRHIQP5KOWNzN+1SYYco=
=EfCB
-END PGP SIGNATURE-


Re: save-hook does not save in the right location?

2008-01-11 Thread Jörg Sommer
Hallo Corsair,

Corsair <[EMAIL PROTECTED]> wrote:
> On Thu, Jan 10, 2008 at 01:31:41PM +0100, Rocco Rutte wrote:
>> If you want to move read mail to ~/read-mail and ~/read-lists, you can do 
>> something like this:
>>
>>   folder-hook . 'set mbox=~/read-mail'
>>   folder-hook =lists 'set mbox=~/read-lists'
>>
>> The first makes sure that for every folder the $mbox setting gets reset. 
>> The second sets $mbox accordingly when you enter the =lists folder.
>
> So there's no way to do it (without a external mail filter) when mails
> from mailing lists and other mails are mixed in a folder?

>From /usr/share/doc/mutt/manual.txt.gz:

12. Using Multiple spool mailboxes

   Usage: mbox-hook [!]pattern mailbox

   This command is used to move read messages from a specified mailbox to a
   different mailbox automatically when you quit or change folders. pattern
   is a regular expression specifying the mailbox to treat as a ``spool''
   mailbox and mailbox specifies where mail should be saved when read.

   Unlike some of the other hook commands, only the first matching pattern is
   used (it is not possible to save read mail in more than a single mailbox).

I think, this does what you want.

Bye, Jörg.
-- 
Der Hase läuft schneller als der Fuchs,
denn der Hase läuft um sein Leben.


Re: How to move outgoing mails in different mailboxes

2008-01-11 Thread Patrick Shanahan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

* Kyle Wheeler <[EMAIL PROTECTED]> [01-11-08 17:28]:
> On Friday, January 11 at 10:30 PM, quoth Francis Moreau:
> > So does that mean I can't use this new notation with the version of 
> > Mutt I'm using: 1.5.14 ? I unfortunately can't test it right now 
> > cause I'm writting this on a machine where Mutt is not installed.
> >
> > If so, when is the new release including this new notation planed ?
> 
> The feature was made available in 1.5.10. It is mentioned in the 
> UPDATING file, but unfortunately not in the rest of the documentation.

7. Mailbox Shortcuts

   There are a number of built in shortcuts which refer to specific
   mailboxes. These shortcuts can be used anywhere you are prompted
   for a file or mailbox path.
 
   * ! -- refers to your $spoolfile (incoming) mailbox
   * > -- refers to your $mbox file
   * < -- refers to your $record file
   * ^ -- refers to the current mailbox
   * - or !! -- refers to the file you've last visited
   * ~ -- refers to your home directory
   * = or + -- refers to your $folder directory
   * @alias -- refers to the default save folder as determined by the
address of the alias

mutt-1.5.13-35.1  openSUSE 10.1 x86_64

- -- 
Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711
http://wahoo.no-ip.org Photo Album:  http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://counter.li.org
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFHh/+wClSjbQz1U5oRAuFZAJ4pHAPc0nCNLVa4xNJvP9fABmX4uQCgnELR
1XEgCCl67mjpbUgbIBYNuAY=
=0Fif
-END PGP SIGNATURE-


mail2muttalias.py problem

2008-01-11 Thread Michael
I am trying to use mail2muttalias.py with mutt, but when I tap the "A"
key, I get the following error:

SyntaxError: Non-ASCII character '\xf6' in file
/home/mike/.mutt/mail2muttalias.py on line 114, but no encoding
declared; see http://www.python.org/peps/pep-0263.html for details
Press any key to continue...

Line 114 of mail2muttalias.py is :
 inp_addresses = listrex (data,
'"?[\s\w\ö\ä\ü\-\ß\_.]*"?\s*<[EMAIL PROTECTED]>?')

Is there anybody on this list that knows the answer to this? 
I'm not a programmer in any sense of the word...I quit back in the days
of Commodore basic for the 64 ;) 

I search google, yahoo, comp.mail.mutt, and the mutt-users archives and
no answer.

Thanks.

-- 
"Estimated amount of glucose used by an adult human brain each day, expressed 
in M&Ms: 250"


  - Harper's Index


Re: mail2muttalias.py problem

2008-01-11 Thread Christian Ebert
* Michael on Friday, January 11, 2008 at 18:23:35 -0700
> I am trying to use mail2muttalias.py with mutt, but when I tap the "A"
> key, I get the following error:
> 
> SyntaxError: Non-ASCII character '\xf6' in file
> /home/mike/.mutt/mail2muttalias.py on line 114, but no encoding
> declared; see http://www.python.org/peps/pep-0263.html for details
> Press any key to continue...
> 
> Line 114 of mail2muttalias.py is :
> inp_addresses = listrex (data,
> '"?[\s\w\ö\ä\ü\-\ß\_.]*"?\s*<[EMAIL PROTECTED]>?')
> 
> Is there anybody on this list that knows the answer to this? 
> I'm not a programmer in any sense of the word...I quit back in the days
> of Commodore basic for the 64 ;) 
> 
> I search google, yahoo, comp.mail.mutt, and the mutt-users archives and
> no answer.

Why didn't you just follow the link given in the error message?

Find out the encoding of the mail2muttalias.py file, and then
insert something like:

# -*- coding: utf-8 -*-

(assuming the file is in utf-8) as the first or second line.

c
-- 
Python Mutt utilities 


Re: mail2muttalias.py problem

2008-01-11 Thread Michael
On Sat, Jan 12, 2008 at 03:05:31AM +0100, Christian Ebert wrote:
> * Michael on Friday, January 11, 2008 at 18:23:35 -0700
> > I am trying to use mail2muttalias.py with mutt, but when I tap the "A"
> > key, I get the following error:
> > 
> > SyntaxError: Non-ASCII character '\xf6' in file
> > /home/mike/.mutt/mail2muttalias.py on line 114, but no encoding
> > declared; see http://www.python.org/peps/pep-0263.html for details
> > Press any key to continue...
> > 
> > Line 114 of mail2muttalias.py is :
> > inp_addresses = listrex (data,
> > '"?[\s\w\ö\ä\ü\-\ß\_.]*"?\s*<[EMAIL PROTECTED]>?')
> > 
> > Is there anybody on this list that knows the answer to this? 
> > I'm not a programmer in any sense of the word...I quit back in the days
> > of Commodore basic for the 64 ;) 
> > 
> > I search google, yahoo, comp.mail.mutt, and the mutt-users archives and
> > no answer.
> 
> Why didn't you just follow the link given in the error message?

I did :)
> 
> Find out the encoding of the mail2muttalias.py file, and then
> insert something like:
> 
> # -*- coding: utf-8 -*-
> 
> (assuming the file is in utf-8) as the first or second line.
>
Sorry, I'm not as sharp as you in this :) 
I was thinking/assuming it had to be on the same line as the error.
That's why I asked.
 
> c
> -- 
> Python Mutt utilities 

-- 
"Estimated amount of glucose used by an adult human brain each day, expressed 
in M&Ms: 250"


  - Harper's Index