Re: imap behavior

2002-04-09 Thread Dan Boger

On Tue, Apr 09, 2002 at 09:59:25AM -0500, David T-G wrote:
> Possibly so.  Meanwhile, if you *can* write a 'N'ew flag back to any
> mailbox, I'll start bugging root!

yup, works, no problems :)  bug away!

-- 
Dan Boger
[EMAIL PROTECTED]



msg26931/pgp0.pgp
Description: PGP signature


Re: IMAP browsing

2002-04-10 Thread Dan Boger

On Wed, Apr 10, 2002 at 04:21:45PM +0200, Michal 'hramrach' Suchanek wrote:
> I think it would be a good idea if c gave me folder tree of my current
> account and not local folders. ie if I am viewing somebody@somewhere/INBOX
> c should give me imap://somebody@somewhere/, not ~/Mail (or whatever).
> The annoying behavior is observed in mutt-1.3.27i-4mdk.
> Or is there a simple way of browsing my IMAP account I have overlooked?
> Or prehaps there is a -devel list where this should be posted?
> 
> PS: I have no idea if I am currently subscribed

there is an easy way to do it... go to the folder browser (c by
default), then hit "c" and enter the path to your imap server
"imaps://dan@localhost/"... I can now browse my IMAP folders.

I believe there's an setting you can tweak to get this by default, but
too lazy to look it up now... I'd guess it'd be "folders" or something
similar.

:)

-- 
Dan Boger
Linux MVP
brainbench.com




msg26981/pgp0.pgp
Description: PGP signature


Re: Organizing mailfolders (strategies and using with mutt)

2002-04-11 Thread Dan Boger

On Thu, Apr 11, 2002 at 02:32:11PM +0200, Kai Weber wrote:
> But Mutt seems to have problems recognizing new mails in these folders
> if I specify mailboxes like that:
> 
>   mailboxes `find Mail -type f`
> 
> What's wrong with that and how should i tune my settings?

could it be that you're specifying your mailboxes relative to your
homedirectory, but not starting mutt from there?  

try "mailboxes `find ~/Mail -type f`"

HTH!

-- 
Dan Boger
Linux MVP
brainbench.com




msg27025/pgp0.pgp
Description: PGP signature


Re: Feature request: uncolor not only in index

2002-04-11 Thread Dan Boger

On Thu, Apr 11, 2002 at 11:54:49AM -0400, darren chamberlain wrote:
> > That being said, I would really like such an uncolor feature myself.
> > I receive internal newsletters that I find easier to read if I
> > highlight the section headings like this:
> > 
> > display-hook '~s "blips"' 'push "/\^[A-Z0-9][A-Z0-9 [:punct:]]*$^M"'
> > 
> > These highlights disappear, however, whenever I search for something.
> > Being able to color and uncolor patterns in the pager would be a good
> > solution.
> 
> Where does display-hook come from?  I just built 1.3.28 and use
> 1.3.22.1 regularly and neither has it.  I'm assuming it comes from a
> patch, but which one?

I _think_ it's actually a message-hook?

-- 
Dan Boger
[EMAIL PROTECTED]



msg27054/pgp0.pgp
Description: PGP signature


Re: PGP signature verification

2002-04-22 Thread Dan Boger

On Mon, Apr 22, 2002 at 11:32:15PM +0200, Rocco Rutte wrote:
> I'm interested in what others get to find out wether it's a
> general problem or something is wrong with my modified version
> of mutt.

nope, happens to me too - only slightly modified version - vvv.nntp and
compressed patch, is all, I think...

-- 
Dan Boger
[EMAIL PROTECTED]



msg27543/pgp0.pgp
Description: PGP signature


ailasing mailboxes

2002-05-07 Thread Dan Boger

Is it possible to alias a mailbox?  I often need to save messages to a
remote IMAP box...

example...  my mail is all stored in imaps://dan@localhost/...

once in a while, I need to save a message to
imaps://user@localhost/path/to/box

typing it manually every time is no fun...  but what other options do I
have?  do I need to write macros for saving a message, saving all tagged
messages, changing to that folder, etc?  is there no way to magically
make "mbx" always expand to "imaps://..." in every prompt?

I'm not asking for much, am I? *grin*

-- 
Dan Boger
[EMAIL PROTECTED]



msg27922/pgp0.pgp
Description: PGP signature


Re: managing two accounts on same imap-server

2002-05-10 Thread Dan Boger

On Fri, May 10, 2002 at 10:47:07PM +0200, Tobias Kirchhofer wrote:
> macro index  "=imap:[EMAIL PROTECTED]/Inbox\n"
> 'Copy message to =imap:[EMAIL PROTECTED]/Inbox'
> 
> Error-message:
> 
> imap_copy_messages [a0008 NO Error in IMAP command received by
> server.]?
> 
> "NO Error"?
> 
> It works if i copy a message manually:
> 
> C
> imap:[EMAIL PROTECTED]/Inbox
> Password for [EMAIL PROTECTED]:

I see a difference - '=imap://...' and 'imap://...' - try removing the
'=' from the macro.

-- 
Dan Boger
Linux MVP
brainbench.com




msg27967/pgp0.pgp
Description: PGP signature


Re: How to define mailboxes ?

2002-05-11 Thread Dan Boger

On Sat, May 11, 2002 at 03:56:22PM +0200, Michael Seiwert wrote:
> 
> Hi,
> 
> how to define imap mailboxes ???
> 
> mailboxes =inbox =inboxi.Archiv 
> 
> doesn't seem to work for me. The remote imap server is cyrus. The
> root mailbox is inbox.

does your 'folder' point to the imap server?

here's my relevant config:

set folder = imaps://user@box/Mail
mailboxes imaps://user@box/ `/home/dan/bin/getmailboxes`

and getmailboxes is this:

#!/bin/sh

for x in `ssh box ls Mail/In`; do
  echo -n =In/$x
  echo -n ' '
done


so my mailboxes is set to my inbox and everything in the ~/Mail/In/
folder...

HTH!

:)

-- 
Dan Boger
[EMAIL PROTECTED]



msg27991/pgp0.pgp
Description: PGP signature


folder-hook and push conflicts with imap?

2002-05-21 Thread Dan Boger

here's a weird error I ran into...  I have the following settings:

set spoolfile=imaps://user@box/
folder-hook . 'push ~=\n'

now, when I start up mutt, instead of being prompted for the password
for my account, I just get an error (login failed, I think).  So I tried
"mutt -f imaps://box/" and got the following:

"Password for user~=@box:"

which of course, fails to log me in.  

This is a bug with the folder hook, right?  it probably shouldn't be run
until _after_ the login completes...   or am I missing something
obvious?

Mutt 1.3.28i (2002-03-13)
Copyright (C) 1996-2001 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: Linux 2.4.18 (i586) [using ncurses 4.0]
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE
+USE_FCNTL  -USE_FLOCK
-USE_POP  +USE_NNTP  +USE_IMAP  -USE_GSS  +USE_SSL  -USE_SASL
+HAVE_REGCOMP  -USE_GNU_REGEX
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM
+HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT
+ENABLE_NLS  -LOCALES_HACK  +COMPRESSED  +HAVE_WC_FUNCS
+HAVE_LANGINFO_CODESET  +HAVE_LANGINFO_YESEXPR
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  +HAVE_GETADDRINFO
ISPELL="/usr/bin/ispell"
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/spool/mail"
PKGDATADIR="/usr/local/share/mutt"
SYSCONFDIR="/usr/local/etc"
EXECSHELL="/bin/sh"
-MIXMASTER
To contact the developers, please mail to <[EMAIL PROTECTED]>.
To report a bug, please use the flea(1) utility.

vvv.nntp
patch-1.3.28.rr.compressed.1
patch-1.2.xtitles.1


-- 
Dan Boger
[EMAIL PROTECTED]



msg28250/pgp0.pgp
Description: PGP signature


Re: folder-hook and push conflicts with imap?

2002-05-22 Thread Dan Boger

On Wed, May 22, 2002 at 05:07:01PM +0200, Sven Guckes wrote:
> * Dan Boger <[EMAIL PROTECTED]> [2002-05-21 12:10]:
> > set spoolfile=imaps://user@box/
> > folder-hook . 'push ~=\n'
> > --> "Password for user~=@box:"
> > which of course, fails to log me in.
> > This is a bug with the folder hook, right?
> > it probably shouldn't be run until
> > _after_ the login completes...
> 
> exactly.  it's a feature.
> 
> you get the password prompt - and you automatically
> answer it by typing in some text.  so it's you who
> did not get the context right.  "pilot error".
> 
> dependencies like these *could* be
> timed with an internal language.
> but there is none.
> 
> anyway, i don't use "push" at all
> because you can always run into
> dependency problem like these.

hmmm...  is there a way to do what I want to happen (automagically
delete dups in each folder) without using push?

-- 
Dan Boger
[EMAIL PROTECTED]



msg28286/pgp0.pgp
Description: PGP signature


Re: folder-hook and push conflicts with imap?

2002-05-24 Thread Dan Boger

On Sat, May 25, 2002 at 01:41:03AM +0200, Sven Guckes wrote:
> * Dan Boger <[EMAIL PROTECTED]> [2002-05-22 15:58]:
> > is there a way to do what I want to happen (automagically
> > delete dups in each folder) without using push?
> 
> procmail - message id cache - nuff said.
> 
> Sven
> 
> -- 
> # Block duplicate messages that you receive when someone CCs you
> # on a reply to a mailing list that you are subscribed to.
> :0: Wh: msgid.lock
> | formail -D 8192 msgid.cache

actually, I already have that.  however, that won't solve my problem,
since what I have is an IMAP mailbox that many users can save messages
too...  often, the same message.  while I think some magic with formail
can remove dups, I like the idea of it happening when I look at the
mailbox...

-- 
Dan Boger
[EMAIL PROTECTED]



msg28331/pgp0.pgp
Description: PGP signature


Re: folder-hooks

2002-05-31 Thread Dan Boger

On Fri, May 31, 2002 at 02:27:09PM +0200, Rocco Rutte wrote:
> I have a problem with a folder-hook. Say, I've got three
> folders IN.back1, IN.back2 and IN.test. If I want to take
> some action for all folders except IN.back1 I use:
> 
>   folder-hook =IN\.[^b][^a][^c][^k][^1] ...
> 
> The problem is that mutt doesn't apply it to IN.test. I
> guess that for IN.test it checks if the first 5 characters
> after IN. are not one of b,a,c,k,1 - but 'test' is only 4
> long. I guess that's the reason why it fails in this special
> case while it works for all other folder names longer or
> equal to 5 characters after IN..

sounds to me that it's doing exactly what you told it to...  match any
folder that begins with an "IN.", followed by 5 chars that are not (in
order) "b" "a" "c" "k" "1" - and you're right - since "test" is only 4
characters, it doesn't match the "not 1" section.

I think you might be better off making a general folder hook (that will
match back1 as well), then adding another folder hook (after?  before?)
that will deal with the special case.

HTH!

-- 
Dan Boger
Linux MVP
brainbench.com




msg28424/pgp0.pgp
Description: PGP signature


Re: folder-hooks

2002-05-31 Thread Dan Boger

On Fri, May 31, 2002 at 08:23:14AM -0500, David T-G wrote:
> Have you tried
> 
>   [^b][^a][^c][^k][^1]*
> 
> to match "zero or more not-one"s?


can't use that to negate a "1" in the 5th position...  "test1" would
match because it would match "0 '1's in the 5th position, followed by a
'1'"...  if you get my meaning...

just occured to me that this won't match "back2" either, since it starts
with a "b"...

-- 
Dan Boger
Linux MVP
brainbench.com




msg28428/pgp0.pgp
Description: PGP signature


Re: folder-hooks

2002-05-31 Thread Dan Boger

On Fri, May 31, 2002 at 08:39:20AM -0500, David T-G wrote:
> % just occured to me that this won't match "back2" either, since it starts
> % with a "b"...
> 
> Yeah, that's another problem that occurred to me after posting.  I had
> the same sort of problem with $alternates; I'd really like to be able to
> say something like
> 
>   set alternates = "[^(laura*|madi|^quin*)]@justpickone.*"

what we need is like the perl lookbehind:

   (?


msg28430/pgp0.pgp
Description: PGP signature


Re: to save tagged messages

2002-06-03 Thread Dan Boger

On Mon, Jun 03, 2002 at 05:17:10PM +0300, Jussi Ekholm wrote:
> It doesn't do the job either. I did tag a certain thread with
> tag-thread, and then pressed ;N. Still, only the first article of that
> thread got marked read...

try ;wN (Tagged-SetFlag-New)

:)

-- 
Dan Boger
Linux MVP
brainbench.com




msg28535/pgp0.pgp
Description: PGP signature


Re: IMAP uses SSL even when not requested

2002-06-04 Thread Dan Boger

On Tue, Jun 04, 2002 at 11:55:28AM -0500, David Champion wrote:
> > needed for connecting securely to servers that don't accept connections
> > on the imaps port, but instead support the STARTTLS extension on the
> > normal imap port.  You can likely disable this feature with "set
> > ssl_starttls=no".
> 
> Yes, exactly -- it should never use SSL when told not to, but setting
> ssl_starttls is equivalent to telling mutt to use TLS when available.

you mean it should always use SSL unless not told to, right?

I still can't think of a single reason (aside from testing) that you
will prefer the plaintext over SSL, by default.

-- 
Dan Boger
[EMAIL PROTECTED]



msg28588/pgp0.pgp
Description: PGP signature


Re: 3 quick questions

2002-06-06 Thread Dan Boger

On Thu, Jun 06, 2002 at 04:14:30PM -0400, Kevin Coyner wrote:
> 1.  Where do D (deleted) msgs go?  Is there an equivalent of
> trash, or am I truly out of the disneyland GUI world now and
> just like using rm on files, there's no going back.

of course they're truly deleted... I mean, if I wanted mutt to move them
to, say, a "Trash" folder, I'd save them there myself! But mutt being so
nice, you can make a macro, so that D will do "s=Trash\n" instead of
actually deleting the message.

> 2.  When I'm in the index mode with all mail listed and I've 
> marked a bunch with D, is there a keystroke command that will
> flush out all of the D items so there's only N or O mail in there?

yup - '$' by default, I believe.  Look for 'sync-mailbox' in the manual.

> 3.  This is the question that bothers me most: Let's say I have
> three email POP3 email accounts on three different ISP/domains.  
> I've got fetchmail set up to fetch from all three.   But what I
> can't figure out is how I can, on the fly, select any one of 
> these accounts to be my From: and Reply-to: address. Presently
> I have my .muttrc setup with set from = [EMAIL PROTECTED] and
> this has each and every msg going out with that From address.
> But there are times when I need to use one of those other two
> addresses in the From header.  I tried setting 'set alternates =
> the other accts', but that didn't seem to do it.  So some 
> general guidance would be appreciated here.  I'm getting the 
> feeling I'll need to use hooks, but I haven't quite figured all
> that out yet.

this is really a FAQ, and if we have a canned answer for this question,
I'd love the pointer...  You can use *-hooks, if you always want to send
from a certain folder as a certain address, or when replying to certain
emails.  What I use though is a bunch of macros, that will change my
current setup, so that every message from now on will be sent as a new
profile...

so something like (from memory, untested):

macro index  ':set [EMAIL PROTECTED]\n:set signature="~/.sig-addr"'
macro index  ':set [EMAIL PROTECTED]\n:set signature="~/.sig-addr2"'

etc...

HTH!

-- 
Dan Boger
[EMAIL PROTECTED]



msg28694/pgp0.pgp
Description: PGP signature


Re: random header script?

2002-06-20 Thread Dan Boger

On Thu, Jun 20, 2002 at 02:49:37PM -0600, Rob 'Feztaa' Park wrote:
> This is trivial to do in perl:
> 
> open "FILE", " 
> while ()
> {
>   push @lines, $_;
> }
> 
> print $lines[int(rand(@lines))];

or, the more efficient way:

open "FILE", ";
    close FILE;
print $line;

from "perldoc -q random"

:)

-- 
Dan Boger
Linux MVP
brainbench.com




msg29098/pgp0.pgp
Description: PGP signature


Re: displaying folder name in xterm title

2002-07-04 Thread Dan Boger

On Thu, Jul 04, 2002 at 03:36:20PM +0200, Martin Man wrote:
> is there a way to change xterm's title according to the folder currently
> opened in a mutt so that it updates correctly whenever the folder inside 
> of mutt is changed?

yup - look at the xtitle patch, linked from the mutt.org patches page:

http://www.robots.ox.ac.uk/~neil/mutt/



-- 
Dan Boger
[EMAIL PROTECTED]



msg29378/pgp0.pgp
Description: PGP signature


Re: quoting doesn't work in send-hook command

2002-07-11 Thread Dan Boger

On Thu, Jul 11, 2002 at 09:15:43AM -0700, David Benfell wrote:
> send-hook [EMAIL PROTECTED] set from="David Benfell <[EMAIL PROTECTED]>"
> 
> Mutt 1.3.28i (2002-03-13) complains that Benfell is an unknown
> variable.  I'm subscribed to a lot of mailing lists with a variety of
> e-mail addresses; getting this working is important.
> 
> What am I doing wrong?

try:

send-hook [EMAIL PROTECTED] 'set from="David Benfell <[EMAIL PROTECTED]>"'

?

does that help?

-- 
Dan Boger
[EMAIL PROTECTED]



msg29538/pgp0.pgp
Description: PGP signature


Re: quoting doesn't work in send-hook command

2002-07-11 Thread Dan Boger

On Thu, Jul 11, 2002 at 11:01:40AM -0700, David Benfell wrote:
> Actually, it did, but only on the second attempt.  I'm guessing that
> mutt is applying the send-hooks before asking who I'm addressing the
> e-mail to.
> 
> Which at least is a different problem.  How do I fix this one?

from the manual:

  Note: the send-hook's are only executed ONCE after getting the initial
  list of recipients.  Adding a recipient after replying or editing the
  message will NOT cause any send-hook to be executed.  Also note that
  my_hdr commands which modify recipient headers, or the message's
  subject, don't have any effect on the current message when executed
  from a send-hook.

so it's supposed to run AFTER getting the addressees.  I think what you
see if the "my_hdr" clause, saying a send-hook cannot apply a my_hdr
command to the current message.  The only way I know to get around this
is to either set up folder-hooks, or macros to apply the changes before
the msg is composed.

-- 
Dan Boger
[EMAIL PROTECTED]



msg29546/pgp0.pgp
Description: PGP signature


Re: filtering mailbox

2002-07-22 Thread Dan Boger

On Mon, Jul 22, 2002 at 05:37:58PM +0200, Hans Ginzel wrote:
>   Hello,
> 
>   I have a mailbox with ~1 mails, most of them are duplicated. How
> can I delete the duplicities? 
> 
>   Manualy it can be done by sorting mails by date, go from top and most
> every second mail delete. Can it be done in batch?

even better - D~= and you're done :)

-- 
Dan Boger
[EMAIL PROTECTED]



msg29809/pgp0.pgp
Description: PGP signature


Re: muttprofile (new)

2002-07-31 Thread Dan Boger

On Wed, Jul 31, 2002 at 12:30:52PM +0200, Rocco Rutte wrote:
> Hi,
> 
> * Rikard Florin [02-07-31 12:17:50 +0200] wrote:
> > http://ratblast.net/muttprofile
> 
> Perl, how cool is that! I'm planning to start a project (on
> sourceforge or whereever) which just bundles a few but very
> useful (preferebly perl) scripts dealing with .muttrc. Some
> alias conversion scripts, muttrc2html, maybe muttrcbuilder
> and the like. A script dealing with profiles would perfectly
> fit in my ideas. Interested? Anyone else interested in
> hacking some perl?

I'm always interested in hacking perl :)

-- 
Dan Boger
[EMAIL PROTECTED]



msg29977/pgp0.pgp
Description: PGP signature


Re: mailbox limitation

2002-08-21 Thread Dan Boger

On Wed, Aug 21, 2002 at 04:06:13PM +0400, Oleg Lukashin wrote:
> How many messages can normally display/work with mutt ?

I've used mailboxes with over 50,000 messages with no problem at all.  A
bit slot to open (depending on the machine of course), but quite usable.

-- 
Dan Boger
[EMAIL PROTECTED]



msg30402/pgp0.pgp
Description: PGP signature


Re: mutt and mail archives

2002-08-21 Thread Dan Boger

On Wed, Aug 21, 2002 at 11:06:42AM -0300, Fernan Aguero wrote:
> Now my question is, in the event I need to access/search this archives
> is mutt able to read compressed files? If so, what would be the 
> recommended storage (so that mutt will read them later)?

there is a compressed-folder patch, linked from mutt.org - I've used it
successfully for a few years now :)

HTH!

-- 
Dan Boger
[EMAIL PROTECTED]



msg30408/pgp0.pgp
Description: PGP signature


Delete mailbox over imaps

2002-08-26 Thread Dan Boger

When in the folder browser, connected via imaps, I find that I cannot
delete folders.  Mutt gives the error: "Delete is only supported for
IMAP".  Is this the expected behaviour?  I'd think that imaps should
work just as imap, only over ssl :)

-- 
Dan Boger
[EMAIL PROTECTED]



msg30427/pgp0.pgp
Description: PGP signature


<    1   2