Re: Change into an mbox - like chdir

2007-07-13 Thread David Woodfall
On (01:03 13/07/07), Peter Wiersig [EMAIL PROTECTED] put forth the 
proposition:
 On Thu, Jul 12, 2007 at 11:17:48PM +0100, David Woodfall wrote:
  
  macro generic Y change-folderlists/mutt-users@mutt.orgenter
 
  gives error:
  
  /home/dive/mail/lists/hange-folderlists/mutt-users@mutt.org: No such file
  or directory (errno = 2)
 
 This looks like you left out the  before the c.
 
 Peter

No I've had this problem before. Mutt sees the c of change-folder and
assumes its c and everything after the 'c' is the folder name.

-- 
Ignisecond, n.:
The overlapping moment of time when the hand is locking the car
door even as the brain is saying, my keys are in there!
-- Rich Hall, Sniglets


Re: Change into an mbox - like chdir

2007-07-13 Thread David Champion
* On 2007.07.13, in [EMAIL PROTECTED],
*   David Woodfall [EMAIL PROTECTED] wrote: 
 
 No I've had this problem before. Mutt sees the c of change-folder and
 assumes its c and everything after the 'c' is the folder name.

Specifically, since change-folder is not defined in the generic
binding map, mutt interprets this as literal , c, h, etc.  You'll
need to write this macro once for index and once for pager, since those
are the only binding maps that change-folder is defined in.

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


Re: Change into an mbox - like chdir

2007-07-12 Thread Cameron Simpson
On 10Jul2007 18:35, David Woodfall [EMAIL PROTECTED] wrote:
| Sorry it's hard to explain what I mean. Basically, I have some keybinds set
| up like this:
| macro   browser l   c^u/home/dive/mail/listsreturn
| Works fine, but, I want to be able to cd into an mbox. I can't with c
| because I get an error about it not being a folder. So is there a command I
| can use in a macro or bind that will cd to an mbox?

An mbox is a file, not a directory. (Maildir and MH folders are
directories with files inside them; an mbox is a flat file).

So you can't cd into an mbox because it's not a directory.

I'm curious. Why is it useful to cd into a mail folder?
-- 
Cameron Simpson [EMAIL PROTECTED] DoD#743
http://www.cskk.ezoshosting.com/cs/

The type syntax for C is essentially unparsable. - Rob Pike


Re: Change into an mbox - like chdir

2007-07-12 Thread David Woodfall
On (16:57 11/07/07), Kai Grossjohann [EMAIL PROTECTED] put forth the 
proposition:
 On Tue, Jul 10, 2007 at 06:46:10PM +0100, David Woodfall wrote:
  
  Sorry it's hard to explain what I mean. Basically, I have some keybinds set
  up like this:
  
  macro   browser l   c^u/home/dive/mail/listsreturn
  
  Works fine, but, I want to be able to cd into an mbox. I can't with c
  because I get an error about it not being a folder. So is there a command I
  can use in a macro or bind that will cd to an mbox?
 
 Do you want to open the given mailbox / mail folder?
 
 Kai

Yes I want to make a macro that will open a mbox and mark all posts as
read. At them moment I have a macro that marks all post read but needs you
to manually enter the mbox.

-- 
May Euell Gibbons eat your only copy of the manual!


Re: Change into an mbox - like chdir

2007-07-12 Thread Kai Grossjohann
On Thu, Jul 12, 2007 at 05:07:46PM +0100, David Woodfall wrote:
 
 Yes I want to make a macro that will open a mbox and mark all posts as
 read. At them moment I have a macro that marks all post read but needs you
 to manually enter the mbox.

Well, the command is called change-folder, but you used the term cd
into, that is change-directory.  And to Mutt users, a folder is
distinct from a directory...

Does this work?  It is untested:

macro index X 'change-folder/tmp/fooenter'

Instead of X, put the desired key, and instead of /tmp/foo, put the name
of the folder.

Kai


Re: Change into an mbox - like chdir

2007-07-12 Thread David Woodfall
On (23:12 12/07/07), Kai Grossjohann [EMAIL PROTECTED] put forth the 
proposition:
 On Thu, Jul 12, 2007 at 05:07:46PM +0100, David Woodfall wrote:
  
  Yes I want to make a macro that will open a mbox and mark all posts as
  read. At them moment I have a macro that marks all post read but needs you
  to manually enter the mbox.
 
 Well, the command is called change-folder, but you used the term cd
 into, that is change-directory.  And to Mutt users, a folder is
 distinct from a directory...
 
 Does this work?  It is untested:
 
 macro index X 'change-folder/tmp/fooenter'
 
 Instead of X, put the desired key, and instead of /tmp/foo, put the name
 of the folder.
 
 Kai

macro generic Y change-folderlists/mutt-users@mutt.orgenter

gives error:

/home/dive/mail/lists/hange-folderlists/mutt-users@mutt.org: No such file
or directory (errno = 2)


-- 
Arthur's Laws of Love:
(1) People to whom you are attracted invariably think you
remind them of someone else.
(2) The love letter you finally got the courage to send will be
delayed in the mail long enough for you to make a fool of
yourself in person.


Re: Change into an mbox - like chdir

2007-07-12 Thread Angel Olivera

On Thu 12.Jul.07 23:17, David Woodfall wrote:

macro generic Y change-folderlists/mutt-users@mutt.orgenter

gives error:

/home/dive/mail/lists/hange-folderlists/mutt-users@mutt.org: No such file
or directory (errno = 2)


Set your $folder variable as appropriate and use 
'=lists/mutt-users@mutt.org'. (Yes, '=' expands to $folder.)


--
redondos


signature.asc
Description: Digital signature


Re: Change into an mbox - like chdir

2007-07-12 Thread Patrick Shanahan
* David Woodfall [EMAIL PROTECTED] [07-12-07 18:20]:
 macro generic Y change-folderlists/mutt-users@mutt.orgenter
 
 gives error:
 
 /home/dive/mail/lists/hange-folderlists/mutt-users@mutt.org: No such file
 or directory (errno = 2)

does /home/dive/mail/lists exist and, if so, what does
ls -la /home/dive/mail/lists
provide?

-- 
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


Re: Change into an mbox - like chdir

2007-07-12 Thread Peter Wiersig
On Thu, Jul 12, 2007 at 11:17:48PM +0100, David Woodfall wrote:
 
 macro generic Y change-folderlists/mutt-users@mutt.orgenter

 gives error:
 
 /home/dive/mail/lists/hange-folderlists/mutt-users@mutt.org: No such file
 or directory (errno = 2)

This looks like you left out the  before the c.

Peter


Re: Change into an mbox - like chdir

2007-07-11 Thread Derek Martin
On Tue, Jul 10, 2007 at 06:35:38PM +0100, David Woodfall wrote:
 Sorry it's hard to explain what I mean. Basically, I have some keybinds set
 up like this:
 
 macro   browser l   c^u/home/dive/mail/listsreturn
 
 Works fine, but, I want to be able to cd into an mbox. I can't with c
 because I get an error about it not being a folder. So is there a command I
 can use in a macro or bind that will cd to an mbox?

Your request doesn't make any sense.  cd means change directory, and
an mbox is not a directory... it's a flat file that contains mail.

[mbox is a specific style of mail folder, stored in a flat file.]

Maildir is a different mail folder format which uses directories, but
even here, your request doesn't really make sense.  You can cd into
the directory where a maildir folder lives...  Is that what you mean?
If it isn't, then your request still doesn't make any sense.  

A mail folder is a logical structure which is conceptually distinct
from a directory in the operating system, even if the mail folder
format uses directories to implement the format.  It doesn't really
make sense to cd into a mail folder.

Maybe it would be helpful if you could explain what you are trying to
accomplish, using different terms...

-- 
Derek D. Martinhttp://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail due to spam prevention.  Sorry for the inconvenience.



pgpMsIa1AUPMd.pgp
Description: PGP signature


Re: Change into an mbox - like chdir

2007-07-11 Thread Kai Grossjohann
On Tue, Jul 10, 2007 at 06:46:10PM +0100, David Woodfall wrote:
 
 Sorry it's hard to explain what I mean. Basically, I have some keybinds set
 up like this:
 
 macro   browser l   c^u/home/dive/mail/listsreturn
 
 Works fine, but, I want to be able to cd into an mbox. I can't with c
 because I get an error about it not being a folder. So is there a command I
 can use in a macro or bind that will cd to an mbox?

Do you want to open the given mailbox / mail folder?

Kai


Re: Change into an mbox - like chdir

2007-07-10 Thread Cameron Simpson
On 09Jul2007 12:55, Peter Wiersig [EMAIL PROTECTED] wrote:
| On Mon, Jul 09, 2007 at 12:49:57PM +0200, Peter Wiersig wrote:
|  On Mon, Jul 09, 2007 at 08:42:12AM +0100, David Woodfall wrote:
|   Is there a way of setting up a macro or bind similar to change
|   dir that will change to mbox?
|  
|  You probably don't know that ! is a shortcut to your configured
|  inbox, do you?
|  
|  See chapter 7. Mailbox Shortcuts in your manual.
| 
| I got another read on your message and have it interpreted another
| way now:
| 
| In case you want to switch mutt cwd to the directory that matches
| the current mailfolder:
| 
| I don't think there is a possibility for that. 

Inside mutt, no. But if you invoke mutt via a shell script you could cd into
a mail folder and then start mutt. If you run mutt once for a single folder
that would work ok (I do it this way). However, most people start mutt and
switch from folder to folder within it, and once inside mutt you can't change
directories.

But I think we both misunderstand his request.
-- 
Cameron Simpson [EMAIL PROTECTED] DoD#743
http://www.cskk.ezoshosting.com/cs/

The ultimate result of shielding men from the results of folly is to fill the
world with fools.   - Tom Biggs, DoD #1146, [EMAIL PROTECTED]


Re: Change into an mbox - like chdir

2007-07-10 Thread David Woodfall
On (22:07 10/07/07), Cameron Simpson [EMAIL PROTECTED] put forth the 
proposition:
 On 09Jul2007 12:55, Peter Wiersig [EMAIL PROTECTED] wrote:
 | On Mon, Jul 09, 2007 at 12:49:57PM +0200, Peter Wiersig wrote:
 |  On Mon, Jul 09, 2007 at 08:42:12AM +0100, David Woodfall wrote:
 |   Is there a way of setting up a macro or bind similar to change
 |   dir that will change to mbox?
 |  
 |  You probably don't know that ! is a shortcut to your configured
 |  inbox, do you?
 |  
 |  See chapter 7. Mailbox Shortcuts in your manual.
 | 
 | I got another read on your message and have it interpreted another
 | way now:
 | 
 | In case you want to switch mutt cwd to the directory that matches
 | the current mailfolder:
 | 
 | I don't think there is a possibility for that. 
 
 Inside mutt, no. But if you invoke mutt via a shell script you could cd into
 a mail folder and then start mutt. If you run mutt once for a single folder
 that would work ok (I do it this way). However, most people start mutt and
 switch from folder to folder within it, and once inside mutt you can't change
 directories.
 
 But I think we both misunderstand his request.

Sorry it's hard to explain what I mean. Basically, I have some keybinds set
up like this:

macro   browser l   c^u/home/dive/mail/listsreturn

Works fine, but, I want to be able to cd into an mbox. I can't with c
because I get an error about it not being a folder. So is there a command I
can use in a macro or bind that will cd to an mbox?

 -- 
 Cameron Simpson [EMAIL PROTECTED] DoD#743
 http://www.cskk.ezoshosting.com/cs/
 
 The ultimate result of shielding men from the results of folly is to fill the
 world with fools.   - Tom Biggs, DoD #1146, [EMAIL PROTECTED]

-- 
James Joyce -- an essentially private man who wished his total
indifference to public notice to be universally recognized.
-- Tom Stoppard


Re: Change into an mbox - like chdir

2007-07-10 Thread Breen Mullins

* David Woodfall [EMAIL PROTECTED] [2007-07-10 18:35 +0100]:



Sorry it's hard to explain what I mean. Basically, I have some keybinds set
up like this:

macro   browser l   c^u/home/dive/mail/listsreturn



I have some macros like this:

macro index ,m change-folder=magenter

which work for me.

Breen
--
Breen Mullins
Menlo Park, California


Re: Change into an mbox - like chdir

2007-07-10 Thread Rado S
=- David Woodfall wrote on Tue 10.Jul'07 at 18:35:38 +0100 -=

 Sorry it's hard to explain what I mean. Basically, I have some
 keybinds set up like this:
 
 macro   browser l   c^u/home/dive/mail/listsreturn
 
 Works fine, but, I want to be able to cd into an mbox. I can't
 with c because I get an error about it not being a folder. So is
 there a command I can use in a macro or bind that will cd to an
 mbox?

cd means opening a directory of the filesystem to show you files
acting as mailfolders (!= directories with mbox format).
Mailfolders are simply selected from the browser, or changed to
from the index.
You have to explain in detail step by step _without_ using macros
what you want to achieve and when (where you start), then describe
which part(s) you want to automate with macros.

-- 
© 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: Change into an mbox - like chdir

2007-07-10 Thread David Woodfall
On (22:07 10/07/07), Cameron Simpson [EMAIL PROTECTED] put forth the 
proposition:
 On 09Jul2007 12:55, Peter Wiersig [EMAIL PROTECTED] wrote:
 | On Mon, Jul 09, 2007 at 12:49:57PM +0200, Peter Wiersig wrote:
 |  On Mon, Jul 09, 2007 at 08:42:12AM +0100, David Woodfall wrote:
 |   Is there a way of setting up a macro or bind similar to change
 |   dir that will change to mbox?
 |  
 |  You probably don't know that ! is a shortcut to your configured
 |  inbox, do you?
 |  
 |  See chapter 7. Mailbox Shortcuts in your manual.
 | 
 | I got another read on your message and have it interpreted another
 | way now:
 | 
 | In case you want to switch mutt cwd to the directory that matches
 | the current mailfolder:
 | 
 | I don't think there is a possibility for that. 
 
 Inside mutt, no. But if you invoke mutt via a shell script you could cd into
 a mail folder and then start mutt. If you run mutt once for a single folder
 that would work ok (I do it this way). However, most people start mutt and
 switch from folder to folder within it, and once inside mutt you can't change
 directories.
 
 But I think we both misunderstand his request.

Sorry it's hard to explain what I mean. Basically, I have some keybinds set
up like this:

macro   browser l   c^u/home/dive/mail/listsreturn

Works fine, but, I want to be able to cd into an mbox. I can't with c
because I get an error about it not being a folder. So is there a command I
can use in a macro or bind that will cd to an mbox?

 -- 
 Cameron Simpson [EMAIL PROTECTED] DoD#743
 http://www.cskk.ezoshosting.com/cs/
 
 The ultimate result of shielding men from the results of folly is to fill the
 world with fools.   - Tom Biggs, DoD #1146, [EMAIL PROTECTED]

-- 
Have you ever wondered what makes Californians so calm?  Besides drugs,
I mean.  The answer is hot tubs.  A hot tub is a redwood container
filled with water that you sit in naked with members of the opposite
sex, none of whom is necessarily your spouse.  After a few hours in
their hot tubs, Californians don't give a damn about earthquakes or
mass murderers.  They don't give a damn about anything , which is why
they are able to produce Laverne and Shirley week after week.
-- Dave Barry, The Taming of the Screw


Change into an mbox - like chdir

2007-07-09 Thread David Woodfall
Is there a way of setting up a macro or bind similar to change dir that
will change to mbox?

I keep getting errors xxx is not a directory.

-- 
The net of law is spread so wide,
No sinner from its sweep may hide.
Its meshes are so fine and strong,
They take in every child of wrong.
O wondrous web of mystery!
Big fish alone escape from thee!
-- James Jeffrey Roche


Re: Change into an mbox - like chdir

2007-07-09 Thread Peter Wiersig
On Mon, Jul 09, 2007 at 08:42:12AM +0100, David Woodfall wrote:
 Is there a way of setting up a macro or bind similar to change
 dir that will change to mbox?

You probably don't know that ! is a shortcut to your configured
inbox, do you?

See chapter 7. Mailbox Shortcuts in your manual.

Peter


Re: Change into an mbox - like chdir

2007-07-09 Thread Peter Wiersig
On Mon, Jul 09, 2007 at 12:49:57PM +0200, Peter Wiersig wrote:
 On Mon, Jul 09, 2007 at 08:42:12AM +0100, David Woodfall wrote:
  Is there a way of setting up a macro or bind similar to change
  dir that will change to mbox?
 
 You probably don't know that ! is a shortcut to your configured
 inbox, do you?
 
 See chapter 7. Mailbox Shortcuts in your manual.

I got another read on your message and have it interpreted another
way now:

In case you want to switch mutt cwd to the directory that matches
the current mailfolder:

I don't think there is a possibility for that. 

Peter