How to erase already defined mailboxes ?

2008-03-28 Thread Vladimir Marek
Hi,

I'm having many mailboxes receiving mail. Many mailinglists, so I'm
getting mail all the time. It can get quite disturbing. I was thinking
that I would define list of core mailboxes and list of all
mailboxes. At the morning I would switch on all mailboxes and read
everything. Then I would switch to core and I wouldn't be disturbed by
not so important mails. During day I could switch back and forward
between those. Can I achieve this without restarting mutt, ie. can I
empty the currently defined mailboxes ?

http://www.mutt.org/doc/manual/manual-3.html#ss3.11

does not give much of a hint.

Thank you

-- 
Vlad


pgpiwnGwp1ATM.pgp
Description: PGP signature


Re: How to erase already defined mailboxes ?

2008-03-28 Thread Nicolas Rachinsky
* Vladimir Marek [EMAIL PROTECTED] [2008-03-28 10:21 +0100]:
 between those. Can I achieve this without restarting mutt, ie. can I
 empty the currently defined mailboxes ?

Search your local manual(.txt) for unmailboxes.

 http://www.mutt.org/doc/manual/manual-3.html#ss3.11

This seems to be for an old version of mutt without unmailboxes.

Nicolas

-- 
http://www.rachinsky.de/nicolas


Re: How to erase already defined mailboxes ?

2008-03-28 Thread Michael Tatge
* On Fri, Mar 28, 2008 Vladimir Marek ([EMAIL PROTECTED]) muttered:
 I'm having many mailboxes receiving mail. Many mailinglists, so I'm
 getting mail all the time. It can get quite disturbing. I was thinking
 that I would define list of core mailboxes and list of all
 mailboxes.

Use a macro around unmailboxes *

HTH,

Michael
-- 
It's God.  No, not Richard Stallman, or Linus Torvalds, but God.
(By Matt Welsh)

PGP-Key-ID: 0xDC1A44DD
Jabber: [EMAIL PROTECTED]


Re: How to erase already defined mailboxes ?

2008-03-28 Thread Christian Brabandt
Hi Vladimir!

On Fri, 28 Mar 2008, Vladimir Marek wrote:

 I'm having many mailboxes receiving mail. Many mailinglists, so I'm
 getting mail all the time. It can get quite disturbing. I was thinking
 that I would define list of core mailboxes and list of all
 mailboxes. At the morning I would switch on all mailboxes and read
 everything. Then I would switch to core and I wouldn't be disturbed by
 not so important mails. During day I could switch back and forward
 between those. Can I achieve this without restarting mutt, ie. can I
 empty the currently defined mailboxes ?

Yes. Create two textfiles that define your mailboxes, e.g.
file 1 contains all important mailboxes and file 2 contains all 
mailboxes. So your file1 looks like this:
,
| unmailboxes *
| mailboxes a b c d
`

and file2 like this:

,
| unmailboxes *
| mailboxes foo bar a b c d
`

Now you can create a macro that will toggle sourcing either of these 
two files whenever you hit Escf
,
| macro index,pager \em enter-commandsource ~/.mutt/file1enter\
| enter-commandmacro index,pager \\ef  \\eM \
| \toggle Mailboxview\enter Important mailboxes, use Escf to toggle
| macro index,pager \eM enter-commandsource ~/.mutt/file2enter\
| enter-commandmacro index,pager \\ef  \\em \
| \toggle Mailboxview\enter Important mailboes, use Escf to toggle
| macro index,pager ESCf ESCm toggle Mailboxes: important/all
`

Thinking further you could even dynamically generate the mailbox list  
in file1 and file2 like it is mentioned in the wiki: 
http://wiki.mutt.org/?ConfigTricks

regards,
Christian
-- 
:wq!


Re: extract_url.pl: A Better URL Viewer

2008-03-28 Thread Francis Moreau
Hi Kyle,

On Sat, Mar 22, 2008 at 6:15 AM, Kyle Wheeler [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1

  Hello all,

  After a bit of work, I've gotten a perl script that I think rivals
  URLView. I call it extract_url.pl, and it's here:
  http://www.memoryhole.net/~kyle/extract_url/

  This is a Perl script that extracts URLs from correctly-encoded MIME
  email messages. This can be used either as a pre-parser for urlview,
  or to replace urlview entirely (as long as you have the Curses::UI
  module installed).

  Urlview is a great program, but has some deficiencies. In particular,
  it isn't particularly configurable, and cannot handle URLs that have
  been broken over several lines in format=flowed delsp=yes email
  messages. Also, urlview  doesn't eliminate duplicate URLs. This perl
  script handles all of that. It also sanitizes URLs so that they can't
  break out of the command shell.

  Let me know what you think! If you have suggestions or have found a
  bug in it, let me know that too.

  I hope it helps someone.


yes it does ;)

-- 
Francis


Re: How to erase already defined mailboxes ?

2008-03-28 Thread Vladimir Marek
 Search your local manual(.txt) for unmailboxes.

Thank you

-- 
Vlad


pgpAg7kXXiuNb.pgp
Description: PGP signature


Re: How to erase already defined mailboxes ?

2008-03-28 Thread Vladimir Marek
 Use a macro around unmailboxes *
 

That does the trick, thank you

-- 
Vlad


pgpfYXcfCW0M3.pgp
Description: PGP signature


Re: How to erase already defined mailboxes ?

2008-03-28 Thread Vladimir Marek
[...]
 Yes. Create two textfiles that define your mailboxes, e.g.
 file 1 contains all important mailboxes and file 2 contains all 
 mailboxes. So your file1 looks like this:

[...]

That's one possibility. I tend to write such things as comment's in
muttrc and then parse the muttrc by perl script included at the end of
muttrc in `...`.

Just to have things in one file.

 ,
 | macro index,pager \em enter-commandsource ~/.mutt/file1enter\
 | enter-commandmacro index,pager \\ef  \\eM \
 | \toggle Mailboxview\enter Important mailboxes, use Escf to toggle
 | macro index,pager \eM enter-commandsource ~/.mutt/file2enter\
 | enter-commandmacro index,pager \\ef  \\em \
 | \toggle Mailboxview\enter Important mailboes, use Escf to toggle
 | macro index,pager ESCf ESCm toggle Mailboxes: important/all
 `

I didn't realize that you can use enter-command like that. Thanks :)

-- 
Vlad


pgptHTer7IM5Y.pgp
Description: PGP signature


Re: extract_url.pl: A Better URL Viewer

2008-03-28 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Friday, March 28 at 02:23 AM, quoth Stefan Wimmer:
 Unfortunately this script does not work for me at all :-/

 If I invoke it inside mutt with the ^b macro from your website (the 
 latest version) it throws out the list of URLs and freezes ... I have to 
 kill extract_url.pl to be able to continue with mutt. The same happens 
 if I cat a message to extract_url in the commandline ... 

 Not sure how I can find out what's going wrong exactly ... can you give 
 me a little hint?

Hmmm... throws out the list of URLs and freezes... Do you have the 
Curses::UI perl module installed? When it throws out the list of 
URLs, does the list look like the screenshots on the webpage, or does 
it just look like a long list of URLs (which would indicate that you 
don't have Curses::UI installed)? If the latter... it *should* simply 
exit after spitting out all the URLs.

~Kyle
- -- 
Patriotism means to stand by the country. It does not mean to stand by 
the President.
  -- Theodore Roosevelt
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iEYEARECAAYFAkfs+2kACgkQBkIOoMqOI171mQCfdG+Mv7JKOUYo/myh9aiqw8gR
DncAniLVZ7nfzHp92StTBu5FM7ziRnxI
=Yt4n
-END PGP SIGNATURE-


Re: extract_url.pl: A Better URL Viewer

2008-03-28 Thread Stefan Wimmer
* Kyle Wheeler [EMAIL PROTECTED] [2008-03-28 15:15]:
 Hmmm... throws out the list of URLs and freezes... Do you have the 
 Curses::UI perl module installed? When it throws out the list of 
 URLs, does the list look like the screenshots on the webpage, or does 
 it just look like a long list of URLs (which would indicate that you 
 don't have Curses::UI installed)? If the latter... it *should* simply 
 exit after spitting out all the URLs.

I *do* have Curses::UI installed - it was packaged as Curses::UI-0.95 and I 
even upgraded to 0.96 via cpan ...

In the meantime I tested the pipe to extract_url.pl in different terminals 
(Terminal, rxvt-unicode, aterm) inside  outside GNU screen and it ends up 
always in the same result: list of URLs like in your screenshots and FREEZE :-/

Any hint?

Greetz
Stefan 


pgp1AUn2FgmeH.pgp
Description: PGP signature


Re: How to erase already defined mailboxes ?

2008-03-28 Thread Russell L. Harris
* Vladimir Marek [EMAIL PROTECTED] [080328 04:28]:
 Hi,
 
 I'm having many mailboxes receiving mail. Many mailinglists, so I'm
 getting mail all the time. It can get quite disturbing. I was thinking
 that I would define list of core mailboxes and list of all
 mailboxes. At the morning I would switch on all mailboxes and read
 everything. Then I would switch to core and I wouldn't be disturbed by
 not so important mails. During day I could switch back and forward
 between those. Can I achieve this without restarting mutt, ie. can I
 empty the currently defined mailboxes ?

A simple approach would be to use mail notification (aka
mailnotify) to alert you (via tone or icon) to the fact that mail
has come in to the core boxes.  When you move the mouse pointer to
the mailnotify icon, a temporary window opens, displaying the From
header and the Subject line of each unread message.

RLH