Re: Alternative Identities

2008-07-25 Thread Dale Harris
On Fri, Jul 25, 2008 at 06:32:51PM -0400, =?ISO-8859-1?Q?Crist=F3bal_Palmer_ wrote: > > My very-lazy-sysadmin solution, in honor of Sysadmin Appreciation Day[0]. > > 1) fire up gnu screen(1) > 2) mutt -F /path/to/some/muttrc > 3) ^ac to open a new screen window > 4) mutt -F /other/account/muttrc

Re: Alternative Identities

2008-07-25 Thread Cristóbal Palmer
On Fri, Jul 25, 2008 at 05:59:25PM -0400, Dale Harris wrote: > > Frankly (being an armchair coder here), mutt I think needs to be > re-engineered how it handles multiple accounts, it becoming a real PITA. > There should be separate menu for this and a clean way to have it > configured. This is t

Re: Alternative Identities

2008-07-25 Thread Dale Harris
On Sat, Jul 26, 2008 at 07:44:18AM +1000, Cameron Simpson wrote: > > You can't just make the macros longer? Eg (untested): > > macro index ":source ~/.mutt/profile.default\nc" # "Load > default profile" > > (Note the "c" inserted at the end of the macro.) > -- > Cameron Simpson <[EMA

Re: Alternative Identities

2008-07-25 Thread Cameron Simpson
On 17Jul2008 20:38, Jorge Luis <[EMAIL PROTECTED]> wrote: | On Thu, Jul 17, 2008 at 09:32:46PM +0100, Ken Moffat wrote: | > # macros to invoke a profile | > macro index ":source ~/.mutt/profile.default\n" # "Load default profile" | > macro pager ":source ~/.mutt/profile.default\n"

Re: use script output as regex pattern in folder-fook

2008-07-25 Thread Steve S
On Jul 25 11:46, David Champion wrote: > > A more elegant solution could be a config var $configdir or $scriptdir for > > people who > > > > - have more then one script laying around in ~/.mutt (or wherever) > > - don't want to put Mutt-specific scripts in a location on $PATH > > You al

Re: auto-move mails

2008-07-25 Thread Nicolas Rachinsky
* Marianne Promberger <[EMAIL PROTECTED]> [2008-07-25 12:17 +0200]: > However, it turns out that even with such as ... > > folder-hook . 'push "~s > test234s\Ca\Ck=isomerica/archive\n"' > > if no message matches "~s test234" it does always save the last > message to the archive, so this would h

Re: use script output as regex pattern in folder-fook

2008-07-25 Thread David Champion
> > You can work around this by putting MUTTDIR in your shell environment > > before running mutt. > > Hmm, how do you read my mind? :) :) Well, I actually do this for a few variables -- predating the $my_xyz feature. I should switch where I can though, so I can drop the setenv patch. (Lets me

Re: use script output as regex pattern in folder-fook

2008-07-25 Thread Steve S
On Jul 25 10:36, David Champion wrote: > >>set my_muttdir=$HOME/.mutt > >>folder-hook `$my_muttdir/script.sh` ... > > > >> Here, Mutt doesn't seem to expand $my_muttdir before handing the command > >> over > >> to the shell. Is there a trick to do that? > > > > It doesn't seem so. At least

Re: use script output as regex pattern in folder-fook

2008-07-25 Thread Steve S
On Jul 25 17:32, Rocco Rutte wrote: > Hi, > > * Steve S wrote: > >> I have tried > >>set my_muttdir=$HOME/.mutt >>folder-hook `$my_muttdir/script.sh` ... > >> Here, Mutt doesn't seem to expand $my_muttdir before handing the command over >> to the shell. Is there a trick to do that? > > It d

Re: .muttrc

2008-07-25 Thread Sertaç Ö . Yıldız
* Ravi Uday [22.Tem.08 11:31 -0700]: > If there is a way to retrieve your ~/.muttrc from a existing mutt > session, please let me know. That would help too as my > .muttrc is deleted :( Attach gdb to your mutt process with: gdb /proc/$PPID/exe $PPID And inside gdb dump the variables like so:

Re: robots [ was Re: Alternative Identities ]:wq

2008-07-25 Thread David Champion
> Question for people who post here more frequently than I do - is it > normal to get a challenge/response mail from [EMAIL PROTECTED] when > posting here ? It's typical (I get one every time I post), but it's not normal (in the sense that it shouldn't happen). Challenge/response should never be

Re: use script output as regex pattern in folder-fook

2008-07-25 Thread David Champion
>>set my_muttdir=$HOME/.mutt >>folder-hook `$my_muttdir/script.sh` ... > >> Here, Mutt doesn't seem to expand $my_muttdir before handing the command over >> to the shell. Is there a trick to do that? > > It doesn't seem so. At least for interactive shell-escape function it's > documented

Re: .muttrc

2008-07-25 Thread Rocco Rutte
Hi, * Michelle Konzack wrote: I wish, there was a function which dump the actuell running config... Please add this wish to http://dev.mutt.org/trac/ticket/3064. Maybe it'll be easy to implement another command such as "save" that will print the contents to a file rather then a paged menu.

Re: use script output as regex pattern in folder-fook

2008-07-25 Thread Rocco Rutte
Hi, * Steve S wrote: I have tried set my_muttdir=$HOME/.mutt folder-hook `$my_muttdir/script.sh` ... Here, Mutt doesn't seem to expand $my_muttdir before handing the command over to the shell. Is there a trick to do that? It doesn't seem so. At least for interactive shell-escape f

Re: use script output as regex pattern in folder-fook

2008-07-25 Thread Steve S
On Jul 25 08:15, David Champion wrote: > > folder-hook folder1|folder2|folder3 ... > > > > I replaced this with > > > > folder-hook script.sh| ... > > This approach won't work. Here's why, and a possible alternative. > > The "script.sh|" notation for incorporating a script's output int

Re: .muttrc

2008-07-25 Thread Michelle Konzack
Am 2008-07-22 11:31:28, schrieb Ravi Uday: > Just to add to this, > > If there is a way to retrieve your ~/.muttrc from a existing mutt > session, please let me know. That would help too as my > .muttrc is deleted :( I wish, there was a function which dump the actuell running config... Thanks, G

Re: auto-move mails

2008-07-25 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday, July 24 at 02:16 PM, quoth Ravi Uday: > In mutt 1.5.17 is there a way we can setup a rule where if the > number of emails touches 150 move the first 50 to a specified folder > ? We can then map this rule witha key too ? Well, it's no so

Re: use script output as regex pattern in folder-fook

2008-07-25 Thread David Champion
> folder-hook folder1|folder2|folder3 ... > > I replaced this with > > folder-hook script.sh| ... This approach won't work. Here's why, and a possible alternative. The "script.sh|" notation for incorporating a script's output into your muttrc only works where mutt knows that it's looki

Re: use script output as regex pattern in folder-fook

2008-07-25 Thread Steve S
On Jul 25 12:44, Michael Kjorling wrote: > On 25 Jul 2008 14:06 +0200, by [EMAIL PROTECTED] (Steve S): > > I replaced this with > > > > folder-hook script.sh| ... > > > > and script.sh : > > > > echo 'folder1|folder2|folder3' > > Maybe what you want is more along the lines of > > folde

Re: use script output as regex pattern in folder-fook

2008-07-25 Thread Michael Kjorling
On 25 Jul 2008 14:06 +0200, by [EMAIL PROTECTED] (Steve S): > I replaced this with > > folder-hook script.sh| ... > > and script.sh : > > echo 'folder1|folder2|folder3' Maybe what you want is more along the lines of folder-hook `script.sh` ... -- Michael Kjörling .. [EMAIL PROTECTED]

use script output as regex pattern in folder-fook

2008-07-25 Thread Steve S
Hi I have a folder-hook acting on different folders: folder-hook folder1|folder2|folder3 ... I replaced this with folder-hook script.sh| ... and script.sh : echo 'folder1|folder2|folder3' Now, the pattern matches every folder, i.e. the hook acts on all folders, not just folder1,2

Re: auto-move mails

2008-07-25 Thread Michael Kjorling
On 24 Jul 2008 14:16 -0700, by [EMAIL PROTECTED] (Ravi Uday): > In mutt 1.5.17 is there a way we can setup a rule where if the number > of emails touches 150 move the first 50 to a specified folder ? > We can then map this rule witha key too ? If you are using maildir (I guess MH could work too, b

Re: auto-move mails

2008-07-25 Thread Marianne Promberger
On Friday, 25 July 2008, 11:46 (UTC+0200), Mads Laursen wrote: > On Fri, Jul 25, 2008 at 11:07, Marianne Promberger > <[EMAIL PROTECTED]> wrote: > [snip] > > Something like (not tested, and I'm sure others have better direct > > function names where I use keyboard presses) > > > > folder-hook . 'pu

Re: auto-move mails

2008-07-25 Thread Mads Laursen
On Fri, Jul 25, 2008 at 11:07, Marianne Promberger <[EMAIL PROTECTED]> wrote: [snip] > Something like (not tested, and I'm sure others have better direct > function names where I use keyboard presses) > > folder-hook . 'push "~d > 1ms\Ca\Ck=archive\n$"' > > Actually, trying the line above just now

Re: auto-move mails

2008-07-25 Thread Marianne Promberger
On Friday, 25 July 2008, 10:25 (UTC+0200), Steve S wrote: > On Jul 24 14:16, Ravi Uday wrote: > > Hi, > > > > In mutt 1.5.17 is there a way we can setup a rule where if the number > > of emails touches 150 move the first 50 to a specified folder ? > > We can then map this rule witha key too ? > >

Re: auto-move mails

2008-07-25 Thread Steve S
On Jul 24 14:16, Ravi Uday wrote: > Hi, > > In mutt 1.5.17 is there a way we can setup a rule where if the number > of emails touches 150 move the first 50 to a specified folder ? > We can then map this rule witha key too ? > If you are also satisfied with using the message age as criterion, you