Re: Any way to add a header with send-hook?

2002-10-10 Thread darren chamberlain

* Chris Green [EMAIL PROTECTED] [2002-10-10 09:27]:
 I'd like to add an extra (custom, for my use) message header to
 messages sent to a specific address.  Send-hook explicitly doesn't do
 this so is there any easy way of doing this or will I have to write a
 little script to actually edit the file and execute that via a
 send-hook?

  send-hook . unmy_hdr X-Foo
  send-hook '~t [EMAIL PROTECTED]' my_hdr X-Foo: blah blah blah

I'm using similar constructs all over the place.

(darren)

-- 
It has long been an axiom of mine that the little things are
infinitely the most important.
-- Arthur Conan Coyle



Re: short time in index view?

2002-10-09 Thread darren chamberlain

* Eric [EMAIL PROTECTED] [2002-10-09 13:19]:
 However, it's giving me very long date and time fields.  How can I
 just get something like:
 
 10/09/02 10:15 
 
 or 10/09 1:15.   Something short and concise.

  From the manual, section 6.3.84:

 %d date and time of the message in the format specified by
``date_format'' converted to sender's time zone

 %D date and time of the message in the format specified by
``date_format'' converted to the local time zone

Set date_format to something short.

Another option are the %{}, %(), %, and %[] formats:

 %{fmt}
the date and time of the message is converted to sender's time
zone, and ``fmt'' is expanded by the library function
``strftime''; a leading bang disables locales

 %[fmt]
the date and time of the message is converted to the local time
zone, and ``fmt'' is expanded by the library function
``strftime''; a leading bang disables locales

 %(fmt)
the local date and time when the message was received.  ``fmt''
is expanded by the library function ``strftime''; a leading bang
disables locales

 %fmt
the current local time. ``fmt'' is expanded by the library
function ``strftime''; a leading bang disables locales.

(darren)

-- 
One cannot make an omelette without breaking eggs -- but it is amazing
how many eggs one can break without making a decent omelette.
-- Professor Charles P. Issawi



Re: short time in index view?

2002-10-09 Thread darren chamberlain

* Eric [EMAIL PROTECTED] [2002-10-09 14:35]:
 How can I get:
 
 118 Oct 09 11:35 To mutt-users, etc, etc, 
^
 In the above example?
 
 (Or even 118 10/09 11:35 To mutt-users, etc, etc)

Change the part in %[ ] to be something like %[%b %d %H:%M] or %[%m/%d %H:%M].

(darren)

-- 
How can I believe in God when just last week I got my tongue caught in
the roller of an electric typewriter?
-- Woody Allen



Re: Creating Aliases from sent messages?

2002-10-07 Thread darren chamberlain

* John P Verel [EMAIL PROTECTED] [2002-10-06 19:31]:
 This worked just as promised!  Cleaning out the Message-IDs was no big
 deal.  Thanks a million Darren!  Forgive my delay in responding, but I
 just found time to do this today.

Nice.  I banged it out pretty quickly.

 I piped the output to a file.  The only thing I had to then do was to
 prepend the word 'alias' and a dummy alias (I used numbers) before each
 address, so as to make the list work with mutt.  (I did this via a
 spreadsheet)  I am a COMPLETE Perl novice, so please forgive this
 question, but how could the script be modified to automate this
 prepending?

Change the last line (the print line) to read:

  print map alias $_\n, sort keys %addrs;

Which will give you a list like:

  alias [EMAIL PROTECTED]
  alias [EMAIL PROTECTED]

(darren)

-- 
Pohl's law: Nothing is so good that somebody, somewhere, will not hate
it.



Re: feature request - save_domain

2002-10-01 Thread darren chamberlain

* Eric Smith [EMAIL PROTECTED] [2002-10-01 10:18]:
 Some suggested hacks for this but IMHO, this is sufficicently
 useful (especially for those who deal with many companies /
 organisations) to be native functionality.

This seems like a good learning excersize, so I was looking into this,
trying to implement save_domain and force_domain that behave identically
to save_name and force_name. However, I cannot figure out how to access
the RHS of the address from within mutt_save_fcc (in hook.c):

/* Within mutt_save_fcc, lines 401 - 427 */

void mutt_select_fcc (char *path, size_t pathlen, HEADER *hdr)
{
  ADDRESS *adr;
  char buf[_POSIX_PATH_MAX];
  ENVELOPE *env = hdr-env;

  if (mutt_addr_hook (path, pathlen, M_FCCHOOK, NULL, hdr) != 0)
  {
if ((option (OPTSAVENAME) || option (OPTFORCENAME)) 
(env-to || env-cc || env-bcc))
{
  adr = env-to ? env-to : (env-cc ? env-cc : env-bcc);
  mutt_safe_path (buf, sizeof (buf), adr);
  snprintf (path, pathlen, %s/%s, NONULL (Maildir), buf);
  if (!option (OPTFORCENAME)  mx_access (path, W_OK) != 0)
strfcpy (path, NONULL (Outbox), pathlen);
}
else if ((option (OPTSAVEDOMAIN) || option (OPTFORCEDOMAIN)) 
(env-to || env-cc || env-bcc))
{
  /* XXX how to access domain portion of address? */
}
else
  strfcpy (path, NONULL (Outbox), pathlen);
  }
  mutt_pretty_mailbox (path);
}


I've already defined OPTSAVEDOMAIN and OPTFORCEDOMAIN in init.h and
mutt.h; if I duplicate the code for OPTSAVENAME and OPTFORCENAME in the
XXX'ed area, I get the correct results.  I'm a little stumped, and I'm
sure I'm missing something simple.  Any pointers?

(darren)

-- 
Morality works best when chosen, not when mandated.
-- Larry Wall



Re: Creating Aliases from sent messages?

2002-10-01 Thread darren chamberlain

* Michael Tatge [EMAIL PROTECTED] [2002-10-01 14:17]:
 Why don't you run a little shell or perl script against that folder?

Hmm...

  #!/usr/bin/perl

  use strict;

  use File::Slurp;
  use Email::Find;

  my (%addrs, $data, $mbox, $finder);

  $data = read_file(mutt-users);  # read_file comes from File::Slurp
  $mbox = $ENV{HOME}/Mail/lists/mutt-users;

  $finder = Email::Find-new(sub { $addrs{ $_[0]-format }++ });
  $finder-find(\$data);

  print join \n, sort keys %addrs;

This works, assuming you have File::Slurp and Email::Find installed.
The problem with this, though, is that it picks up Message-ID's.

A more robust solution (involving Perl) would be to create a Mail::Box
instance, that knows about the messages it contains, and then grab email
addresses from the appropriate header fields.  This would also work for
things other than mbox format:

  use Email::Find;
  use Mail::Box::Manager;
  my %addrs;
  my $mgr = Mail::Box::Manager-new;
  my $mbox = $mgr-open(folder = Mail/INBOX/);
  my $finder = Email::Find-new(sub { $addrs{ $_[0]-format }++ });

  for my $message ($mbox-messages) {
  my $cc = $message-cc;
  my $from = $message-from;
  $finder-find(\$cc);
  $finder-find(\$from);
  }

  print join \n, sort keys %addrs;

(Note that I've tested the first, but not the second.)

(darren)

-- 
It is impossible to travel faster than the speed of light, and
certainly not desirable, as one's hat keeps blowing off.
-- Woody Allen



Re: Two minor configuration questions

2002-09-30 Thread darren chamberlain

* Kurt Lieber [EMAIL PROTECTED] [2002-09-30 09:22]:
 1.  By default, when you delete a message in a mailbox index, mutt
 moves one message *down* by default.  Can I change this to move one
 message *up*?

You can setup a macro:

  macro pager d delete-messageprevious-entryprevious-entry

Basically, delete - up - up.

 2.  Once a message is deleted, but not actually purged, using the
 arrow keys to navigate messages will skip over deleted messages.  I
 can jump to a specific deleted message by number, but is there a way
 to not have the deleted messages ignored when navigating by arrow
 keys?

By default down is bound to next-undeleted; rebind it to next-entry:

  bind index Down next-entry

I personally use 'j' for next-undeleted and 'J' for next-entry, and 'k'
for previous-undeleted and 'K' for previous-entry.

(darren)

-- 
It is impossible to travel faster than the speed of light, and
certainly not desirable, as one's hat keeps blowing off.
-- Woody Allen



Re: .procmailrc

2002-09-30 Thread darren chamberlain

* savanna [EMAIL PROTECTED] [2002-09-30 15:51]:
 A slightly offtopic question - I'm using procmail for my mail
 filtering, just wondering what people are using to catch all of the
 mutt-users email. I'm currently using:

[-- snip --]

 An better recipe out there? 

I've been using:

  # Mutt users
  :0:
  * ^TO_mutt-users
  lists/mutt-users

And haven't seen any messages pass through.

 (procmail recipes aren't my strength).

They aren't anyone's strength.

(darren)

-- 
Although I can accept talking scarecrows, lions, and great
wizards of emerald cities, I find it hard to believe there
is no paperwork involved when your house lands on a witch.



Re: download pgpwrap from where?

2002-09-30 Thread darren chamberlain

* savanna [EMAIL PROTECTED] [2002-09-26 15:07]:
 Where do I download pgpewrap from?

  http://www.google.com/search?q=pgpewrap

Get the source from
http://cvs.gnupg.org/cgi-bin/viewcvs.cgi/mutt/pgpewrap.c?cvsroot=Mutt,
or just grab a binary from
http://mutt.justpickone.org/mutt-build-cocktail/mutt-1.4/pgpewrap

(darren)

-- 
The road to Hell is paved with Bibles.



Re: Tagging mail by date

2002-09-26 Thread darren chamberlain

* Chris Green [EMAIL PROTECTED] [2002-09-26 09:25]:
 I.e. how do I tag all messages more than (say) 365 days old in the
 current mailbox?

tag-pattern~d 365d

(darren)

-- 
Competence, like truth, beauty, and contact lenses, is in the eye of
the beholder.
-- Dr. Laurence J. Peter



Re: Multiple coloring

2002-09-23 Thread darren chamberlain

* Johan Svedberg [EMAIL PROTECTED] [2002-09-19 16:39]:
 I would like all the mail I mark for deletion to be colored the same
 way, so my question is this:
 
 Is it possible to set some kind of priority for which color mutt
 should use in case a mail has both of these conditions?

Scoring?

  score ~D +100
  score ~f winkle ~p +10

  color index fg bg ~n 110

(This is an untested guess, BTW.)

(darren)

-- 
Your only obligation in any lifetime is to be true to yourself.
Being true to anyone else or anything else is ... impossible.
-- Richard Bach



Re: listing what's in a directory

2002-09-23 Thread darren chamberlain

* Deb [EMAIL PROTECTED] [2002-09-23 13:39]:
 In Elm, at the save prompt I could type a directory name or = (for the
 default Mail directory), hit return instead of a filename, and I would
 be graced with a file listing inside that dir.
 
 For some reason, I haven't been able to configure mutt to do this.

Doesn't Tab do that for you?

(darren)

-- 
If history teaches us anything, it's that everyone will be part of
the problem, but not everyone will be part of the solution.
-- Larry Wall



Re: New mail to list.

2002-09-18 Thread darren chamberlain

* Rob Park [EMAIL PROTECTED] [2002-09-17 22:49]:
 Alas! darren chamberlain spake thus:
  * Alex Polite [EMAIL PROTECTED] [2002-09-17 08:22]:
   How do I start composing a new message to a mailing list? What I
   usually do  now is push L for list-reply the remove the body and
   appropriate headers. 
  
  I have this in my config:
  
subscribe   mutt-users@
mailboxes   =lists/mutt-users 
folder-hook =lists/mutt-users macro index m \mail[EMAIL PROTECTED]\
  
subscribe   mutt-dev@
subscribe   @bugs.guug.de
mailboxes   =lists/mutt-dev 
folder-hook =lists/mutt-dev macro index m \mail[EMAIL PROTECTED]\
  
  When I hit m in my mutt folders, it executes the macro, with the
  appropriate stuff filled in.
 
 That's awfully restrictive. What if you were in another mbox and you
 wanted to mail mutt-users?

In that case, an alias (or good old-fashioned typing) Does The Right
Thing.  Because there is no \n at the end of the macros, the To: line
is seeded, not set (I can always ^U the line to start over, for
example).

In practice, I only send mail to lists from within the mailbox for that
list, even when creating a new message and not responding.  The macros
above reflect my usage patterns, not the other way around.

 I just use an alias, and send mail normally.

Yep.  This just makes that a little simpler.  My macros work with
aliases, of course, so I could have an alias for mutt-users that the
macro invokes, which is useful for when a list changes its address
(from, hypothetically speaking, guug.de to mutt.org): then only the
alias needs updating.

(darren)

-- 
Elegance and truth are inversely related.
-- Becker's Razor



Re: New mail to list.

2002-09-18 Thread darren chamberlain

* Will Yardley [EMAIL PROTECTED] [2002-09-17 22:25]:
 Presumably if you use the patch which has RFC 2369 support, there might
 be a 'list-post' option, which would be nice In fact, mutt could
 probably add a 'list-post' option (which would post a new message to
 list(s) existing in the current message.

Will, 

Are you referring to the patch specified in
[EMAIL PROTECTED], posted to mutt-dev
on 9/15?  I'm interested in that functionality, but haven't tried it
out yet.

(darren)

-- 
The first human who hurled an insult instead of a stone was the
founder of civilization.
-- Sigmund Freud



Re: vi startup (not vim?)

2002-09-18 Thread darren chamberlain

* Dave Price [EMAIL PROTECTED] [2002-09-18 08:23]:
 Is there a way to tweak the way mutt lauches vi to get these features
 to run  in a 'vimmish' way?

To what is $editor set?  If it is set to 'vi', then you might be getting
either vim in compatible mode, or not vim (i.e., the default vi on your
box).

 I am running debian woody - vim version 5.6.70.  If I just type vi
 from a command prompt on the same box, I get full vim;  .vimrc
 mappings and tab-expansion works fine.

Debian's default vi is elvis (or at least it was as of 2.2); type vi or
which vi will tell you what is executed when you type vi.  Chances are
that it is not what mutt is executing, due to search path differences,
or shell functions/aliases, or something similar.  Under bash, type vi
will tell you if you are executing an alias or function, while which
vi does not; type might be supported by other shells as well, but I'm
unsure.

 It is only when mutt starts the editor that I seem to be in a 'vi
 compatability' mode.

vim has a :version command, which other vi clones don't seem to; vim
with cp set will still respond to :version, while elvis will not (well,
it will, but with an error ;).

(darren)

-- 
I'd crawl over an acre of 'Visual This++' and 'Integrated Development
That' to get to gcc, Emacs, and gdb.
-- Vance Petree



Re: vi startup (not vim?)

2002-09-18 Thread darren chamberlain

* Thomas E. Dickey [EMAIL PROTECTED] [2002-09-18 09:04]:
 On Wed, 18 Sep 2002, darren chamberlain wrote:
 
  vim has a :version command, which other vi clones don't seem to; vim
 
 :ve is standard.
 (:version is also recognized by all of the vi's that I recall -
 including elvis).

OK, I stand corrected.  However, :ve will still tell him whether he's
using vim or not, eh?

  with cp set will still respond to :version, while elvis will not
  (well, it will, but with an error ;).
 
 one of the annoying things about vim-users is that most of them don't
 know much about vi, and tend to ascribe lots of things to vim that are
 standard in vi.

Hey, Sven, calm down, will ya?  ;)

Actually, though, my experience has been the opposite:  people who are
vim users tend to think that vim features are standard vi features, and
get upset when, say, ga doesn't do what they expect.  A lot of the vi
evangelists I know are actually vim evalgelists, and it annoys me, much
as it (apparently) annoys you.

 (don't be like most vim-users)

Actually, I'm not.  In fact, on many of the boxen I use regularly, I'm
not a vim user at all.  I was unaware that other vi's supported :ve; I
thought I remembered elvis, at least, not supporting it.

(darren)

-- 
Doubt isn't the opposite of faith; it is an element of faith.
-- Paul Tillich



Re: New mail to list.

2002-09-17 Thread darren chamberlain

* Alex Polite [EMAIL PROTECTED] [2002-09-17 08:22]:
 How do I start composing a new message to a mailing list? What I
 usually do  now is push L for list-reply the remove the body and
 appropriate headers. 

I have this in my config:

  subscribe   mutt-users@
  mailboxes   =lists/mutt-users 
  folder-hook =lists/mutt-users macro index m \mail[EMAIL PROTECTED]\

  subscribe   mutt-dev@
  subscribe   @bugs.guug.de
  mailboxes   =lists/mutt-dev 
  folder-hook =lists/mutt-dev macro index m \mail[EMAIL PROTECTED]\

When I hit m in my mutt folders, it executes the macro, with the
appropriate stuff filled in.

(darren)

-- 
The ultimate metric that I would like to propose for user
friendliness is quite simple: if this system was a person, how
long would it take before you punched it in the nose?
-- Tom Carey



Re: mutt hangs on any editor

2002-09-17 Thread darren chamberlain

* Lance Hoffmeyer [EMAIL PROTECTED] [2002-09-17 13:48]:
 Any ideas?  Mutt hangs when I try to compose an email using any editor.
 ps -u `whoami` shows that no editor process is being started.  I can
 compose messages as SU.

What is $EDITOR set to?  Is something waiting on stdin?

(darren)

-- 
Fanaticism consists in redoubling your efforts when you have
forgotten your aim.
-- George Santayana



Re: imap and new mail

2002-09-12 Thread darren chamberlain

* Vincent Lefevre [EMAIL PROTECTED] [2002-09-12 10:12]:
 Here, with IMAP, I get new messages as expected. But when I reconnect
 to the server, all the new messages become old messages! This is very
 annoying, in particular when I have to quit and restart Mutt without
 having read all the new messages.

:unset mark_old

(darren)

-- 
Quiet and courteous is often mistaken for kind and polite.
-- Andrew Langmead



Re: Sourcing scripts, screen flashes.

2002-09-11 Thread darren chamberlain

* David Champion [EMAIL PROTECTED] [2002-09-11 15:22]:
 (This was when I changed my muttrc to call m4 as a preprocessor on my
 real muttrc, as some might recall.)

I recall this, and also recall a promise to post said m4 config to the
list, so we could see what it looked like...

(darren)

-- 
The language Unix is vastly more inconsistent than the language Perl.
And guaranteed to remain that way, forever and ever, amen.
-- Larry Wall



Re: new mail in sent-mail

2002-09-10 Thread darren chamberlain

* Keith Robinson [EMAIL PROTECTED] [2002-09-10 08:40]:
 Every time I send an email, my sent-mail box gets tagged with a
 new-mail N.  This is good for *all* of my other mail directorys, but
 not not for sent-mail.

Do you have send-mail in $mailboxes?

(darren)

-- 
Maybe that's the only truth in the world.
Not the Bibles or poetry or philosophy but just the old jokes.
-- Robert Shea and Robert Anton Wilson



Re: Mutt+Vim: ugly block cursor when editing

2002-09-09 Thread darren chamberlain

* Erik Simon [EMAIL PROTECTED] [2002-09-09 06:36]:
 I started playing with colors in Vim when editing mutt messages.
 However, I get an ugly block cursor (orange or yellow depending on the
 terminal) on each empty line.

I was getting something the same thing for a long time.  $editor was set
to vim -c '/^$', so it would start on the first blank line, and I had
hlsearch set.  You didn't specify the contents of $editor (the mutt-side
variable, not the env var), and I didn't see hlsearch mentioned in your
vimrc, but setting hlsearch right now gives me identical symptoms to
what you're describing.

So, try :set nohlsearch, and see if that works.

(darren)

-- 
You are what you see.



Re: display_filter + sed - tabs to quotes (was: A couple of questions)

2002-09-06 Thread darren chamberlain

* Sven Guckes [EMAIL PROTECTED] [2002-09-05 20:47]:
 * darren chamberlain [EMAIL PROTECTED] [2002-09-05 15:37]:
  Look at display_filter, section 6.3.36 in the manual
  (http://www.mutt.org/doc/manual/manual-6.html#display_filter).
  Set it to a script that does something like:
cat | sed -e s/^\t/ /g
 
 uh.  UUCA.

D'oh!

 if using sed then stuff all the changes into
 a file and let sed use for the filtering:

Yes, that's what I said (sed?): Set it [display_filter] to a script...

   $ grep display_filter ~/.muttrc
   set display_filter=/path/sed -f mutt.sed
 
   $ cat mutt.sed
   s/^\t/ /

Yep:

  $ grep display_filter ~/.mutt/muttrc 
  set display_filter=~/.mutt/bin/display-filter

  $ cat ~/.mutt/bin/display-filter
  #!/usr/bin/sed -f

  s/[!]\{2,\}/!/g
  s/[?]\{2,\}/?/g
  s/^--$/--\ /g
  s/^\ --$/--\ /g
  s/^[_]\{30,\}$/--\ /g

I'll take the UUCA for my example, though.  :)

(darren)

-- 
Always keep a song in your heart -- it's like karaoke for the
voices in your head.
-- Robert Fulton Abernethy



Re: A couple of questions

2002-09-05 Thread darren chamberlain

* Michael Herman [EMAIL PROTECTED] [2002-09-04 23:02]:
 2.  When I receive an e-mail from someone at work that is a reply to
 an earlier e-mail and I view it in the pager, where the other
 senders MUA inserted \t (tab) as the quote/attribution character,
 Mutt replaces the \t with a .  I would like to keep the \t
 instead.  I have played with indent_string and quote_regexp.

Look at display_filter, section 6.3.36 in the manual
(http://www.mutt.org/doc/manual/manual-6.html#display_filter).  Set it
to a script that does something like:

  cat | sed -e s/^\t/ /g

(darren)

-- 
Do what thou wilt shall be the whole of the Law.
Love is the law, love under will.



Re: fcc and reply as in pine

2002-08-29 Thread darren chamberlain

* Richard P. Groenewegen [EMAIL PROTECTED] [2002-08-29 09:07]:
 I have just converted a friend from using pine to mutt.

Nice.

 But there is still one features he misses and I would feel stupid
 saying: `well, this is nog the way we do things in mutt.'

I love that game. :)

 When he replies to
 
 someguy@somewhere
 
 he wants the outgoing email to be saved in =someguy.  I thought about
 doing the following:
 
 . use edit-headers
 . let the editor-variable be a script that does the following:
 . if the in-reply-to is present, lookup the recipient and write
   a corresponding fcc-header
 . invoke the editor of choice (vim) to the result

Ouch, that's a lot of work.  I think this will do it:

  fcc-save-hook . +%O

The . applies the hook to all messages, and the %O turns into the
before-the-@ part of the recipient address.

(darren)

-- 
What you do instead of your real work *is* your real work.
-- Roger Ebert



Re: a number of newbie questions

2002-08-29 Thread darren chamberlain

* krjw [EMAIL PROTECTED] [2002-08-29 11:57]:
 Greetings, mutts.

Yo.

 1) Firstly, does mutt support or will mutt ever support extended
 maildirs?  I've never seen extended maildirs 'till I started using
 maildrop, but they're kinky.  They allow for folders-within-folders
 which is very handy.

I don't know, but have you tried it?  It seems like it would work.

 3) [this is a vim question; don't shoot me :)]  I've seen mutts start up
 vim as their editor like vim -c ':0;/^$' which I understand puts the
 cursor on the first empty line.  Any way to place it at the end of the
 file (eg, last line)?

set editor=vim +$ works for me, although that feels not right.

(darren)

-- 
I'm astounded by people who want to 'know' the universe when it's
hard enough to find your way around Chinatown.
-- Woody Allen



Re: TDMA (was Re: Spam filtering software)

2002-08-28 Thread darren chamberlain

* Chris Green [EMAIL PROTECTED] [2002-08-28 08:38]:
 On Wed, Aug 28, 2002 at 01:58:32PM +0200, Roman Neuhauser wrote:
  2) the smtp server of your provider accepts addresses with
 extensions
  
 I can't see this bit about accepting addresses with extensions.
 
 My adddress here is [EMAIL PROTECTED] and that's it, I don't *think*
 any alternatives are possible which will reach me here.

I think + addresses are the extension referred to above; have you tried
them?  I.e., [EMAIL PROTECTED] -- most modern SMTP servers will Do
The Right Thing, and deliver it to the mailbox for user chris.  Sendmail
does it, so does postfix, qmail does it but uses a - instead of a + by
default.  I'm sure others do as well.

Oh yeah, almost forgot -- only the MTA that invokes the MDA needs to
support it.

(darren)

-- 
Whatever is done for love is beyond good and evil.
-- Friedrich Neitzsche



Re: mutt and mail archives

2002-08-28 Thread darren chamberlain

* Volker Kuhlmann [EMAIL PROTECTED] [2002-08-28 04:36]:
   you're not updateting it in maildir form, what's the advantage of
   using maildir here over mbox?
 
  lazyness ;-) I simply do a tar czf archiv.year  folderlist ...
  converting to mbox would include some more steps.
 
 Sorry you can not simply cat maildir/* mbox.

What about maildir2mbox?  I think it's part of qmail, yes?  

(darren)

-- 
...if we judge something by how badly it is misused, well, hell
would be perl, right?
-- dancer (http://www.advogato.org/person/dancer/)



Re: mutt + procmail + nfs...

2002-07-31 Thread darren chamberlain

* kevin lyda [EMAIL PROTECTED] [2002-07-31 12:44]:
 however, this is the dreaded mailbox on nfs issue.  do procmail and
 mutt play nice on nfs?

Mutt and procmail both support Maildir natively. See
http://cr.yp.to/proto/maildir.html.

(darren)

-- 
Patriotism is the last resource of scoundrels.
-- Samuel Johnson



Re: aliases

2002-07-09 Thread darren chamberlain

* Rikard Florin [EMAIL PROTECTED] [2002-07-08 20:29]:
 I'm wondering if it's possible to have mutt aliases _without_ a proper
 alias. sounds weird maybe, but i have a big contact list with email
 adresses which I want to use in Mutt as an addressbook to walk through
 when I press tab to bring up the aliases.
 
 the problem is that if I don't supply an alias for the alias (which
 sort of is the idea I guess) Mutt will make it like...
 
 FirstnameLastname [EMAIL PROTECTED]

Simple solution:

  $ awk '{printf %s.%s %s\n, $1, $2, $0}' old-alias-file  new-alias-file

The alias would be Firstname.Lastname, and the rest is the same.

(darren)

-- 
As soon as man does not take his existence for granted, but beholds it
as something unfathomably mysterious, thought begins.
-- Albert Schweitzer



Re: [semi-OT] bash complete a la tcsh

2002-07-05 Thread darren chamberlain

* David T-G [EMAIL PROTECTED] [2002-07-05 00:08]:
 In tcsh, as discussed on the list quite a while back, one can
 construct a command to complete mutt folders as shown in the attached
 snippet (I watched the ideas come across and saved all of the various
 flavors, so I have more than just one line).
 
 Can the same thing be done in bash?  I see that bash also has a
 complete command but the man pages are a little obtuse and I can't
 tell if such delightful magic is possible.  I know that I sure miss it
 already, though!

Here's a simple bash function/complete pair that is a (good?) place to
begin.  I've only been using bash's programmable completion for a few
weeks, and I'm still pretty new at it.  The gist of it is, fill the
COMPREPLY array with the output of compgen; the trick is getting the
correct thing into COMPREPLY, of course.

There is a bug in here, somewhere; if you do mutt -f =mbtab, and have
a mailbox beginning with  mb, or course, it ends up with two ='s at the
beginning.  This doesn't happen if you define your lists with + and not
=, so there's probably something special about using = as a beginning
character.

Another fun thing this does is give a command-line arg summary unless
you are typing -f, in which case it gives you mailboxes.  A good
improvement would be that -atab, -itab, -Ftab, and -Htab give
you file completions, and -ctab and -btab give you email address
completions from your ~/.mail_aliases file.

Be sure to set MBOXLIST and MUTT appropriately, BTW.

  _mutt() {
local MBOXLIST=$HOME/.mutt/lists
local MUTT=/usr/bin/mutt
local mboxes cur prev
mboxes=$(grep '^ *mailboxes' $MBOXLIST | sed -e s/mailboxes// | tr -d \012)

COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}

if [[ $prev == -f ]]
then
  COMPREPLY=( $(compgen -W $mboxes $cur) );
else
  COMPREPLY=( $(compgen -W $($MUTT -h | awk '/^ *\-/{printf %s , $1}')) )
fi

return 0;
  }

  complete -F _mutt -o default mutt

Good luck.

(darren)

-- 
It ain't those parts of the Bible that I can't understand that bother
me, it's the parts that I do understand.
-- Mark Twain



Re: [semi-OT] bash complete a la tcsh

2002-07-05 Thread darren chamberlain

I've banged together a (reasonably) complete version of the completion
stuff for bash that David T-G asked about earlier.  It's attached.  The
only thing that doesn't seem to work for me is getting aliases from
~/.mutt/aliases (the commented out awk piece); the awk script works from
the command line but goes into an infinite loop within the _mutt
function.

If anyone decides to try to use this, be sure to set $MBOXLISTS and
$MUTT to correct values for your setup, of course.

I'll look into donating it to tbe Bash Programmable Completion project
next week.

(darren)

-- 
We protest things because we are too impotent to effect change. We
effect change through positive action, not simply through
demonstrations of intent.


# vim: set ft=sh:
_mutt() {
local MBOXLIST=$HOME/.mutt/lists
local MUTT=/usr/bin/mutt
local ALIASES=$HOME/.mutt/aliases
local mboxes cur prev
mboxes=$(grep '^ *mailboxes' $MBOXLIST | sed -e s/mailboxes// | tr -d \012)

COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}

if [[ $prev == -f ]]
then
# Mailbox name
COMPREPLY=( $(compgen -W $mboxes $cur) );
elif [[ $prev == -a ]] || [[ $prev == -F ]] || \
 [[ $prev == -H ]] || [[ $prev == -i ]]
then
# Files: attach (-a), alternate muttrc (-F), headers (-H), include
# (-i)
COMPREPLY=( $(compgen -W $(echo *) $cur) )
elif [[ $prev == -m ]]
then
# Mailbox type: mbox, MMDF, MH, Maildir
COMPREPLY=( $(compgen -W mbox MMDF MH Maildir $cur ) )
#elif [[ $prev == -b ]] || [[ $prev == -c ]]
#then
## Addresses: Cc (-c) and Bcc (-b)
#addresses=$(awk '$NF~/$/{gsub([],,$NF); print $NF}' $ALIASES)
#COMPREPLY=( $(compgen -W $addresses $cur) )
else
# Default: Mutt help (mutt -h)
COMPREPLY=( $(compgen -W $($MUTT -h | awk '/^ *\-/{printf %s , $1}') $cur) 
)
fi

return 0;
}

complete -F _mutt -o default mutt



Re: random header script?

2002-06-24 Thread darren chamberlain

* Thomas Hurst [EMAIL PROTECTED] [2002-06-23 08:00]:
 If you still want to use a script but don't want to eat
 filesize * structure overhead and IO every invocation, you'll want
 to seek to somewhere random in the file and read until you get a
 complete line, ala (in Ruby):
 
 begin
 File.open(file) do |f|
 f.seek(rand(File.size(file)))
 f.gets
 puts f.gets
 end
 rescue EOFError
 retry
 end
 
 This will, however, guarantee the first line will never be read, and
 choose longer lines over shorter ones.

I have a fortune file (standard strfile format) that I use, and
occasionally my vi modeline (line 1) comes up as a fortune.  This is an
ideal solution... ;)

(darren)

-- 
Most rock journalism is people who can't write interviewing people
who can't talk for people who can't read.
-- Frank Zappa



Re: Autoconfiguration of subject

2002-06-24 Thread darren chamberlain

* [EMAIL PROTECTED] [EMAIL PROTECTED] [2002-06-23 16:04]:
 One thing I do by mail is play some games at www.gamerz.net/pbmserv
 and their you set your game commando in the subject. Is there someway
 I could adjust the subject before I get the question by mutt what the
 subject should be so I don't have to repeat the same procedur every
 time.

Has anyone set up a procmail recipe to play the game?  Sounds like it
might be a fun time...

(darren)

-- 
To you I'm an atheist; to God, I'm the Loyal Opposition.
-- Woody Allen



Re: Set from shows no affect

2002-06-11 Thread darren chamberlain

* AxUm [EMAIL PROTECTED] [2002-06-11 03:00]:
 Michael Tatge [EMAIL PROTECTED]:
 
  set realname=Oliver Fuchs
  set [EMAIL PROTECTED]
  set use_from  # should be default
  set envelope_from # see manual section 6.3.43.
 
 Humm, even with that the from in a send hooks only takes effect if
 I start a message twice, realname takes the first time.
 
 set use_from
 set envelope_from
 
 send-hook x \
 'set realname=tc; set from=[EMAIL PROTECTED]'
 
 any ideas?

send-hook gets executed when you send the message, not when you start a
message.  Thus, you see the results for the next message.

(darren)

-- 
I don't mow lawns for the reason that I don't shave.



Re: 3 quick questions

2002-06-10 Thread darren chamberlain

* Peter Gelbman [EMAIL PROTECTED] [2002-06-08 01:54]:
## Delete messages to the trash can rather than bit-bucket, unless
## we're in the trash folder.
folder-hook .   macro index d save-message=trashenter
folder-hook .   macro pager d save-message=trashenter
folder-hook .   macro pager D delete-message
  
folder-hook trash   macro index d delete-message
folder-hook trash   macro pager d delete-message
  
# When we go into to the trash folder, tag stuff greater than 14
# days old.  Don't mark anything that's already flagged, though.
folder-hook trash  push 'D~r14d!~F\n'

 Thanks for the tip. I've used almost the same setup for a while, but
 yours is cleaner. I'd like to use the push thing but when I go into
 my trash folder it get a:
 
 Key is not bound.  Press '?' for help.
 
 Running
 Running  1.3.28i under Solaris 8
 
 Where can I find out more about the push command to tweak it to my own
 tastes? Thanx

The push command assumes that your bindings are the same as mine.  I've
been meaning to modify it for a while to:

  folder-hook trash push 'delete-pattern~r14d!~Fcr'

Which doesn't assume anything about bindings.

(darren)

-- 
Don't sweat the petty things, and don't pet the sweaty things.



Re: How can I save the help screens?

2002-06-10 Thread darren chamberlain

* Russell Hoover [EMAIL PROTECTED] [2002-06-10 08:38]:
 Is there an easy way to save mutt's help
 screens to a file, without doing a cut  paste?

I find:

   cat /usr/local/doc/mutt/manual.txt | col -bx

to be the easiest way.  This will dump it to stdout; redirect it to a
file, or lpr, or wherever.

(darren)

-- 
The history of Liberty is a history of the limitation of government
power.
-- Woodrow Wilson



Re: How can I save the help screens?

2002-06-10 Thread darren chamberlain

* Rocco Rutte [EMAIL PROTECTED] [2002-06-10 10:20]:
 * darren chamberlain [02-06-10 16:15:05 +0200] wrote:
  * Russell Hoover [EMAIL PROTECTED] [2002-06-10 08:38]:
   Is there an easy way to save mutt's help
   screens to a file, without doing a cut  paste?
 
 cat /usr/local/doc/mutt/manual.txt | col -bx
 
 ...but it won't show the current key bindings and your
 adjustments are skipped, too.

Ah, I misunderstood the question.  Sorry for the useless info...

(darren)

-- 
The Net inteprets censorship as damage and routes around it.
-- John Gilmore



Re: 3 quick questions

2002-06-07 Thread darren chamberlain

* Ken Weingold [EMAIL PROTECTED] [2002-06-06 16:40]:
 Well here's a feature request.  I wish there were an option to have
 mutt prompt you for which return address to use, being able to pick
 from a menu of addresses set somewhere in the muttrc.  Any
 possibility?

A few months ago, some (sorry, I don't remember who) posted a patch that
adds an ask-from quadoption, which does what you're asking for in not
too many lines.  It's written against 1.3.27, and I've applied it to
1.3.28 (haven't tried 1.4 yet). It's attached.

(darren)

-- 
Students achieving Oneness will move on to Twoness.
-- Woody Allen


diff -rup mutt-1.3.27.orig/init.h mutt-1.3.27/init.h
--- mutt-1.3.27.orig/init.h Mon Dec 10 02:09:03 2001
+++ mutt-1.3.27/init.h  Tue Feb 12 12:28:01 2002
@@ -181,6 +181,12 @@ struct option_t MuttVars[] = {
   ** If set, Mutt will use plain ASCII characters when displaying thread
   ** and attachment trees, instead of the default \fIACS\fP characters.
   */
+  { askfrom, DT_BOOL, R_NONE, OPTASKFROM, 0 },
+  /*
+  ** .pp
+  ** If set, Mutt will prompt you for a From: address
+  ** before editing an outgoing message.
+  */
   { askbcc,  DT_BOOL, R_NONE, OPTASKBCC, 0 },
   /*
   ** .pp
diff -rup mutt-1.3.27.orig/mutt.h mutt-1.3.27/mutt.h
--- mutt-1.3.27.orig/mutt.h Tue Jan 15 13:00:32 2002
+++ mutt-1.3.27/mutt.h  Tue Feb 12 12:30:20 2002
@@ -307,6 +307,7 @@ enum
   OPTALLOWANSI,
   OPTARROWCURSOR,
   OPTASCIICHARS,
+  OPTASKFROM,
   OPTASKBCC,
   OPTASKCC,
   OPTATTACHSPLIT,
diff -rup mutt-1.3.27.orig/send.c mutt-1.3.27/send.c
--- mutt-1.3.27.orig/send.c Fri Dec 28 09:14:36 2001
+++ mutt-1.3.27/send.c  Tue Feb 12 12:23:27 2002
@@ -201,6 +201,8 @@ static int edit_envelope (ENVELOPE *en)
   char buf[HUGE_STRING];
   LIST *uh = UserHeader;
 
+  if (option (OPTASKFROM)  edit_address (en-from, From: ) == -1 || en-from == 
+NULL)
+return (-1);
   if (edit_address (en-to, To: ) == -1 || en-to == NULL)
 return (-1);
   if (option (OPTASKCC)  edit_address (en-cc, Cc: ) == -1)



Re: 3 quick questions

2002-06-07 Thread darren chamberlain

* David T-G [EMAIL PROTECTED] [2002-06-06 16:31]:
 % 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.
 
 With the stock version, that's the way it is.

[-- snip --]

 Other folks have in the past whipped up some macros that bind 'd' to
 actually save to some other folder where you *then* really delete the
 messages later.

I have been using this setup for over a year, and it works great:

  ## Delete messages to the trash can rather than bit-bucket, unless
  ## we're in the trash folder.
  folder-hook .   macro index d save-message=trashenter
  folder-hook .   macro pager d save-message=trashenter
  folder-hook .   macro pager D delete-message

  folder-hook trash   macro index d delete-message
  folder-hook trash   macro pager d delete-message

  # When we go into to the trash folder, tag stuff greater than 14
  # days old.  Don't mark anything that's already flagged, though.
  folder-hook trash  push 'D~r14d!~F\n'

Thus, in all folders except trash, 'd' moves the message to the trash
folder, and 'D' deletes it for real, when I'm viewing the message (in
the index, 'D' still maps to delete-pattern).  Every few days or so, I
go into the trash folder to clean it out (I save 2 weeks worth of
trash).  Hope that's helpful.

(darren)

-- 
We can't all, and some of us don't. That's all there is to it.
-- Eeyore



Re: ask-from quadoption was 3 quick questions

2002-06-07 Thread darren chamberlain

* Kevin Coyner [EMAIL PROTECTED] [2002-06-07 09:28]:
 Many thanks for the patch.  I'll give it a try, but have to learn how
 to apply them first.  I've graduated from windoze to linux rpms to now
 being comfortable with compiling source, but haven't tried the patch
 route yet.  Got to read up on it first.

In this case, the patch can be applied, from within the mutt source
directory, like so:

  $ patch -p1  patch-1.3.27.ds.askfrom.txt

For patch, the -p# tells patch how many directory levels to remove from
the filenames.  If you read through the patch file, you can see that it
references files as mutt-1.3.27/init.h and mutt-1.3.27/send.c, which
is to say 1 directory and then a filename, so patch has to strip off 1
level of directories to file the name of the file to patch.

(darren)

-- 
All men are mortal.
Socrates was mortal.
Therefore, all men are Socrates.
-- Woody Allen



Re: Color with folder-hooks and status changes

2002-06-07 Thread darren chamberlain

* Joseph Ishac [EMAIL PROTECTED] [2002-06-07 15:11]:
 Actually, I wasn't aware you could do that with the folder-hook
 command.  :)  However, I did a quick copy/paste on the lines below and
 it didn't remedy the problem.  I think I'll stick with the four term
 expression with the use of ~P (which I didn't know about either).

Make sure that the lines you pasted in had nothing after the \ 's; they
need to escape the newline.

(darren)

-- 
The rebootings will continue until the configuration works.



Re: Lotus Notes server?

2002-06-06 Thread darren chamberlain

* Sven Guckes [EMAIL PROTECTED] [2002-06-05 22:07]:
 * darren chamberlain [EMAIL PROTECTED] [2002-06-05 19:44]:
  Notes has an IMAP interface, which is, AFAIK, compatible with other
  IMAP implementations.  I have co-worker who have used mutt with our
  internal Notes server without too many problems.
 
 without too many problems?  how many exactly?

This was about two years ago; I think the problems were with mutt's IMAP
support (I remember him trying to diagnose segfaults), but I'm not sure,
because it wasn't me, and I know better than to acknowledge the Notes
server. ;)

(darren)

-- 
Alden's Laws:
(1) Giving away baby clothes and furniture is the major cause of
pregnancy.
(2) Always be backlit.
(3) Sit down whenever possible.



Re: key macros

2002-06-05 Thread darren chamberlain

* David T-G [EMAIL PROTECTED] [2002-06-04 13:17]:
 It looks like that's the case for Ctl, anyway, and maybe for Shf.
 Given, thanks to my new friend Bob, the handy
 
   perl -lpe '$_ = join  , unpack(c*, $_)'
 
 to take input per line and spit out key codes and then running
 
   echo ctl-v f1 | ...
   echo ctl-v shf-f1 | ...
   echo ctl-v ctl-ft | ...
 
 we get
 
   27 79 80
   27 91 50 51 126
   27 79 80
 
 (where F1 and Ctl-F1 appear as '^[OP' and Shf-F1 is '^[[23~'), so
 there is no difference whatsoever between F1 and C-F1, while S-F1
 might be tricky to recognize because it's longer (and, in fact, the
 same as F11, as Kurt showed).

I get: 

  $ echo ctrl-v f1 | perl -lpe '$_ = join  , unpack(c*, $_)'
  27 79 80
  $ echo ctrl-v ctrl-F1 | perl -lpe '$_ = join  , unpack(c*, $_)'
  27 79 53 80

I'm using a happy hacking keyboard, which might make a difference, but I
doubt it.

(darren)

-- 
People who are willing to give up freedom for the sake of short term
security, deserve neither freedom nor security.
-- Ben Franklin



Re: colorize a word

2002-05-10 Thread darren chamberlain

* andrej hocevar [EMAIL PROTECTED] [2002-05-10 04:49]:
 how do I instruct mutt to colourize only a certain word in the header
 of a message? I'd like to make for instance the word From: appear in
 red, while the text following it in default, i.e. no colour.

I just posted a patch that allows for this yesterday (or was it the day
before?).  Search the archives for Message ID
[EMAIL PROTECTED], which is my message with the patch
attached (and the followup, which has David T-G taking credit for it ;).

(darren)

-- 
Competition is a by-product of productive work, not its goal.  A
creative man is motivated by the desire to achieve, not by the
desire to beat others.
-- Ayn Rand



Re: colorize a word

2002-05-10 Thread darren chamberlain

* andrej hocevar [EMAIL PROTECTED] [2002-05-10 08:58]:
 On Fri, May 10, 2002 at 08:09:59AM -0400, darren chamberlain wrote:
  I just posted a patch that allows for this yesterday (or was it the day
 
 Great; I've found it. Would you please tell me how to apply it?
 I've installed mutt from a .deb, so I'll have to go get the source,
 right?

Yes.

Here's a (simplistic) step-by-step:

  ncftpget ftp://ftp.mutt.org/mutt/mutt-1.3.99i.tar.gz
  gunzip -c mutt-1.3.99i.tar.gz | tar xf -
  cd mutt-1.3.99
  patch -p0  /path/to/patch-1.3.2609.whatever.its.called
  ./configure --with-the-right=options
  make
  make install

The key is the patch line (4th line).  Good luck.

(darren)

-- 
Don't sweat the petty things, and don't pet the sweaty things.



Re: deleting messages and default folders

2002-05-10 Thread darren chamberlain

* Mike Arrison [EMAIL PROTECTED] [2002-05-10 09:36]:
 Hello Mutters,
   My switch from Pine to Mutt is going pretty well so far.  I have a
   few questions that I could use some help with though.

Good news.

 - Let's say I delete all messages in a folder by pressing 'd'.  Then I
 go to Undelete them.  I can't seem to figure out how to go up to
 select those deleted messages.  The cursor only highlights undeleted
 messages.  I can use 'U' to undelete via a pattern, but I'd rather not
 have to do that.  Am I missing something?

You need to bind something to next-entry and previous-entry.  By
default, up and down are bound to next-undeleted and
previous-undeleted.  This is what I have:

  # vi-like keys
  bind index j next-undeleted
  bind index J next-entry

  bind index k previous-undeleted
  bind index K previous-entry

(These may actually be the defaults, so try them out before you rebind
your keys.)

 - Also, is there a way to have mutt open in a file folder other than
 your spoolfile?  My spoolfile isn't my primary mailbox, and I'd rather
 have Mutt open my primary by default. 

mutt -f +mailboxname

(darren)

-- 
Intolerance is the last defense of the insecure.



Re: Different colour after signature

2002-05-09 Thread darren chamberlain

* David T-G [EMAIL PROTECTED] [2002-05-09 12:47]:
 Darren, et al --
 
 ...and then darren chamberlain said...
 % 
 ...
  There's the hdrpart patch, which allows for exactly that.  I use it to
 ...
  I don't remember where I got it, so I'll attach it.  I've applied it to
  1.3.22 and 1.3.28 without incident.
 ...
  [-- Attachment #2: patch-1.3.2609.mg.hdrcolor.1.dtg.txt --]
 
 Since there's a dtg on it, it looks like you grabbed my tweaked version
 from my cocktail site.  Anyone else can get it at 
 
   http://mutt.justpickone.org/
 
 under /cocktail as they may need it.

Show off.  ;)

(darren)

-- 
Never attribute to malice that which is adequately explained by
incompetence.
-- Napolean Bonaparte



Re: JAVA applet to run mutt via http

2002-04-29 Thread darren chamberlain

* Marco Fioretti [EMAIL PROTECTED] [2002-04-29 13:52]:
 Last but not least: what was that JAVA applet called anyway?

I think you're looking for MindTerm, which google tells me is at
http://www.appgate.com/ag.asp?template=productslevel1=product_mindterm.

(darren)

-- 
Words are also deeds.
-- Wittgenstein



Re: JAVA applet to run mutt via http

2002-04-29 Thread darren chamberlain

* Shawn McMahon [EMAIL PROTECTED] [2002-04-29 15:43]:
 begin  darren chamberlain quotation:
  * Marco Fioretti [EMAIL PROTECTED] [2002-04-29 13:52]:
   Last but not least: what was that JAVA applet called anyway?
  
  I think you're looking for MindTerm, which google tells me is at
  http://www.appgate.com/ag.asp?template=productslevel1=product_mindterm.
 
 However, FYI, a Java telnet isn't going to do what Marco wants.

yeah, but that's what he asked for. ;)

 If his company only lets http through the firewall, then running a Java
 telnet on his home system will give him a nice Java applet running on
 his side of the firewall, no more able to connect to his home system
 than a telnet written in any other language.

True.  I think what he meant was some sort of java app that can run on
the server side (i.e., behind the firewall) and connect out to his
machine on the other side, since outgoing traffic is usually less
restricted than incoming traffic.  What he *really* wants here is
something to kick off a port-forwarding ssh on the internal side that
will allow him to log into a box behind the firewall.

 Sounds like he needs some kind of http-based proxy, unless the firewall
 is dumb enough to let non-http things through port 80, in which case I'd
 recommend ssh.

If the company lets through port 80, they probably also let through port
443; run an sshd on port 443 (all encrypted traffic looks the same, but
encrypted traffic going through port 80 will look suspicious -- assuming
someone is looking at the streams going through the firewall), and
you've got yourself an instant hole in the firewall.

This is one of the principle reasons why firewalls are ineffective, BTW.

(darren)

-- 
Freedom is an all-or-nothing proposition:  either we are completely
free, or we are subjects of a tyrannical system.  If we lose one
freedom in a thousand, we become completely subjugated.



Re: [OT] procmail rule

2002-04-18 Thread darren chamberlain

* Benjamin Michotte [EMAIL PROTECTED] [2002-04-18 15:55]:
 sorry for the off-topic but I would like to add a rules to my procmailrc
 to create archive by month; ie mutt-users.april.2002

:0
* ^[EMAIL PROTECTED]
mutt-users.`date +%B.%Y | tr 'A-Z' 'a-z'`

The tr will do lower casing, as well.  Tested on Linux and Solaris.

(darren)

-- 
Any sufficiently advanced bug is indistinguishable from a feature.
-- Rich Kulawiec



Re: mail-followup-to header

2002-04-17 Thread darren chamberlain

* Eduardo Gargiulo [EMAIL PROTECTED] [2002-04-17 14:06]:
 I use diferent email addresses to subscribe to diferent lists,
 ejg-mutt for mutt-users and ejg-qmail for qmail lists. I use ejg too.
 Is the following alternetes set appropriately for my scenario?
 
 set alternates=^ejg.*(-mutt|-qmail)@ar.homelinux.org$

I'd do it like:

  set alternates = ejg(-mutt|-qmail)?@ar\.homelinux\.org

I have something like:

  set alternates = dlc(-.*)?@(host1|host2)

So that I don't have to keep updating $alternates when I add new
-pieces.

(darren)

-- 
All is fear in love and war.



Re: I've broken something

2002-04-11 Thread darren chamberlain

* John Buttery [EMAIL PROTECTED] [2002-04-11 09:27]:
 * darren chamberlain [EMAIL PROTECTED] [2002-04-10 15:19:58 -0400]:
  If you like pain, try stracing a mutt session:
strace -o /tmp/mutt.out mutt
 
   Actually, vim has very passable syntax highlighting for strace output
 files...saved me a lot of headaches.  Just name the file *.strace and
 open it in vim (I'm not sure if the .strace extension is necessary, I
 just always use it and I know it worked with that).

You're right, it is pretty good.  Just running :set ft=strace will be
enough, if the extension is not .strace.

(darren)

-- 
Don't create a problem for which you do not have the answer.



Re: Organizing mailfolders (strategies and using with mutt)

2002-04-11 Thread darren chamberlain

* Johan Almqvist [EMAIL PROTECTED] [2002-04-11 09:44]:
 * Kai Weber [EMAIL PROTECTED] [020411 14:32]:
  I am just reorganzing my mail sorting and filtering. I now use a
  structure like that:
  Mail/list/mutt-users
  Mail/list/debian-users
  Mail/mail/inbox
  Mail/mail/private
  ...
 
 Have you tried
 
 mailboxes `echo ~/Mail/*/*`

That assumes he only has one level of subdirectories, but he mentioned
~/Mail/lists/mutt-users/2002-04 (or similar), so that's not necessarily
true.

If the problem is the newlines, as someone suggested, give this a try:

  mailboxes `echo \`find ~/Mail -type f -print\``

which gives me a full list with no newlines.

The nested backticks are ugly; if you are on a machine where your shell
is bash (or bash disguising itself as /bin/sh) try:

  mailboxes `echo $(find ~/Mail -type f -print)`

Although that's completely untested, it seems that it would work if the
shell understands the $() syntax, since everything in `` is passed to
the shell.

(darren)

-- 
How you look depends on where you go.



Re: Feature request: uncolor not only in index

2002-04-11 Thread darren chamberlain

* Gary Johnson [EMAIL PROTECTED] [2002-04-10 10:22]:

[-- snip --]

 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?

(darren)

-- 
I accept chaos. I'm not sure whether it accepts me. I know some
people are terrified of the bomb. But then some people are
terrified to be seen carrying a modern screen magazine. Experience
teaches us that silence terrified people the most.
-- Bob Dylan



Re: Re: Outlook pst import: What file format should I use?

2002-04-11 Thread darren chamberlain

* [EMAIL PROTECTED] [EMAIL PROTECTED] [2002-04-11 12:24]:
 Well, in my best low tech manner, I think I've come up with something
 of promise.  What I did was:
 
 1)  Select all the messages in the inbox or outbox.  2)  Perform
 File|Save As and save the entire contents as a text file.
 
 These big text files open fine with vim.  When I get home, I may have
 to fiddle with the From header to get things right.  But, this may
 work.
 
 I'll report back.

Try formail; I think it can add missing From lines.

(darren)

-- 
The biggest difference between time and space is that you can't
reuse time.
-- Merrick Furst



Re: Feature request: uncolor not only in index

2002-04-11 Thread darren chamberlain

* Dan Boger [EMAIL PROTECTED] [2002-04-11 12:02]:
 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?

Yup, got it.  Thanks.

I was interested in the hook displayed above, which is why I was looking
for display-hook in the first place.  I noticed, though, that the above
command jumps to the first occurance of the match, so my version adds a
top after the search.  Here is an example, similar to the above:

  message-hook ~s 'pgp|gpg' 'push searchpgp|gpgReturntop'

This highlights pgp and gpg in messages with pgp or gpg in the
subject.

Thanks to all who helped.

(darren)

-- 
A theory is not accepted when it's critics are converted,
but when they eventually die.
-- Maxwell Plank



Re: I've broken something

2002-04-10 Thread darren chamberlain

* Rafael C. Gawenda [EMAIL PROTECTED] [2002-04-10 14:50]:
 Don't know if it's my config, or some broken patch, I suppose it's the
 first option, but when I enter my spool (by just nachine$ muttCR),
 read a message, and quit, the mailbox doesn't get updated, ie, If I
 reenter, the msg is still there (instead of being moved to +mbox), and
 marked as New...  Has somebody seen a similar behaviour?

Is the spool directory mounted via NFS?  Are permissions correct on
$MAIL?  Is /var some kind of strange partition type? Are you
(accidentally) opening the mailbox readonly (try bouncing on '%' a few
times)? 

(darren)

-- 
All things are possible, except for skiing through a revolving
door.



Re: syntax highlighting in mutt

2002-04-08 Thread darren chamberlain

* Jim MacBaine [EMAIL PROTECTED] [2002-04-05 16:52]:
 Hello everybody, 
 
 I'm regularly recieving perl and java programs 
 and I have to sort out the good from the bad.

Perl - good.
Java - bad.

Done. :)

 Right now I'm using mutt and use a mailcap entry
 to open the attachments in NEdit to have the
 syntax highlighted and help my brain sorting 
 the code. 

Why are you attempting to do this in your MUA?

 But it would be great to have a auto_view filter
 that shows the mail coloured. Something like lynx 
 -dump with the right escape sequences. 

Have you considered using vim as your pager?

 I've not digged deeper into vi/vim than the basic
 editing functions, but perhaps it can be misused
 for this...

vim already does syntax highlighting, if you have it configured for it,
so that should be a good way to go.

(darren)

-- 
A computer lets you make more mistakes faster than any other
invention, with the possible exceptions of handguns and Tequila.
-- Mitch Ratcliffe



Re: syntax highlighting in mutt

2002-04-08 Thread darren chamberlain

* Thomas Dickey [EMAIL PROTECTED] [2002-04-05 17:57]:
 On Fri, Apr 05, 2002 at 06:01:44PM -0500, David T-G wrote:
  ...and then Jim MacBaine said...
   I'm regularly recieving perl and java programs 
   and I have to sort out the good from the bad.
  
  The perl sounds fun, but I feel for you for the java junk ;-)
 
 At least java has a well-defined grammar which makes it easy to parse.
 (perl, otoh...)

Perl parser?  Sure, look at perly.c and toke.c in the perl source...

 I haven't seen a syntax highlighter for perl that handles all of perl
 (counting vim, vile, emacs).  

As a professional perl programmer, I have to say that I've found vim to
be the least deficient in parsing perl syntax.  Better than Emacs'
cperl-mode (not a flame, and observation!) and light year's better than
anything else (have you how atrocious enscript's syntax highlighting for
perl is?).  The things most highlighter seem to have a problem with
(inculding emacs) is POD, regexes, and the alternative quoting mechanisms.

 Perhaps that should be a feature of perl 6.

Actually, it is.

(darren)

-- 
We must respect the other fellow's religion, but only in the sense and
to the extent that we respect his theory that his wife is beautiful
and his children smart.
-- H.L.Mencken



Re: [feature requests] view attached file.

2002-04-08 Thread darren chamberlain

 I use 2 or 3 softwares that do the same things (example image viewer),
 but I would like to choose the correct viewer (xv doesn't support
 animated gif but it is lighter that any other image viewer I have).
 It would be great if mutt propose all the viewer for that content-type
 according to the mailcap file.

Use a shell script to view */*, and have the shell script Do The
Right Thing.

(darren)

-- 
Believe those who are seeking the truth; doubt those who find it.
-- Andre Gide



Re: help with folder hook?

2002-04-08 Thread darren chamberlain

* Nick Wilson [EMAIL PROTECTED] [2002-04-08 15:20]:
 Hi everyone...
 Could someone help me sort this folder-hook out please?
 
 folder-hook =Tioka/nick set my_hdr Reply-To: Nick Wilson [EMAIL PROTECTED]

  folder-hook =Tioka/nick set my_hdr Reply-To: Nick Wilson [EMAIL PROTECTED]

I think you need to put set inside the quotes.

(darren)

-- 
Maybe this world is another planet's hell.
-- Aldous Huxley



Re: send-hook and set

2002-04-04 Thread darren chamberlain

* Peter T. Abplanalp [EMAIL PROTECTED] [2002-04-04 10:51]:
 i think i know the answer to this but i wanted to make sure...
 
 if i have a send-hook:
 
 send-hook somelist set pgp_autosign=no
 
 it changes the value of pgp_autosign from there on out, yes?  it is
 not a temporary item just for this send afterwhich the global value of
 pgp_autosign returns.  that is why when i asked about send hooks
 everyone gave me two send-hooks instead of one.

Correct.  That's why almost all examples like this also include
something along the lines of:

  send-hook . set pgp_autosign=yes

And then have send-hooks for specific exceptions to the general rule.

(darren)

-- 
Humor distorts nothing, and only false gods are laughed off their
earthly pedestals.
-- Agnes Repplier



Re: display proces id (Re: to GNU ps or not to GNU ps)

2002-04-03 Thread darren chamberlain

* Sven Guckes [EMAIL PROTECTED] [2002-04-03 09:40]:
 ObMutt:
 can mutt display its own process id?
 
 the display of the porcess id would be
 helpful when there's a problem with mutt.
 the admin could add this number to the
 status_format in /etc/Muttrc so that
 users will see it and will catch it
 with a screen hardcopy.  bug reports
 might then be handled much quicker..

This made me interested.  This works for me, against mutt-1.3.27.
Ite defines %$ as the status char for the pid.  My rudimentary tests
show that it Does The Right Thing.

(I diff'ed with -caw; is there a preferred option set for mutt patches?)

(darren)

*** status.c.orig   Wed Apr  3 11:11:19 2002
--- status.cWed Apr  3 11:17:51 2002
***
*** 52,58 
   * %S = current aux sorting method ($sort_aux)
   * %t = # of tagged messages [option]
   * %v = Mutt version 
!  * %V = currently active limit pattern [option] */
  static const char *
  status_format_str (char *buf, size_t buflen, char op, const char *src,
   const char *prefix, const char *ifstring,
--- 52,59 
   * %S = current aux sorting method ($sort_aux)
   * %t = # of tagged messages [option]
   * %v = Mutt version 
!  * %V = currently active limit pattern [option]
!  * %$ = current pid */
  static const char *
  status_format_str (char *buf, size_t buflen, char op, const char *src,
   const char *prefix, const char *ifstring,
***
*** 272,277 
--- 273,283 
optional = 0;
break;
  
+ case '$':
+   snprintf (fmt, sizeof(fmt), %%%sd, prefix);
+   snprintf (buf, buflen, fmt, getpid());
+   break;
+ 
  case 0:
*buf = 0;
return (src);

-- 
Responsible behavior is the result of a socialization process.



Re: outgoingmail

2002-04-03 Thread darren chamberlain

* Johannes Breu [EMAIL PROTECTED] [2002-04-03 13:16]:
 I can get mails from my POP-server using mutt but I am not able to send
 mails. I think is due to unsuccessfull configuration of sendmail. So
 this is my question: How do I configure sendmail? I just want sendmail
 to know my SMTP-server. Nothing more. If it is important: my computer is
 stably integrated in an network.

If you have a mailhost (I'll assume by stably integrated that you do),
you can build your sendmail.cf with define(`SMART_HOST', `esmtp:mailhost')
in the m4 config; the resulting line in the sendmail.cf looks like:

  DSesmtp:mailhost

(I think that's all you need.)  However, I recommend ssmtp.  Keep
reading if you care.

 If you can help me please say I exactly wih which commands I need to
 configure sendmail. I really got angry with that.

We've all been there.

I just installed ssmtp the other day, and it was trivial.  The entirety
of my config looks like:

#
# /etc/ssmtp/ssmtp.conf -- a config file for sSMTP sendmail.
#

# The person who gets all mail for userids  1000
[EMAIL PROTECTED]

# The place where the mail goes. The actual machine name is required
# no MX records are consulted. Commonly mailhosts are named mail.domain.com
# The example will fit if you are in domain.com and your mailhub is so named.
mailhub=mailhost

# Where will the mail seem to come from?
rewriteDomain=real.domain

# The full hostname
hostname=me.real.domain


 Furhter information: I am using Debian 2.2. In some way sendmail seems
 to be connected with zmailer. I am not familiar with this either. All
 I want to know is what do I have to do that my outgoing mail goes to
 the SMTP-server.

You should be able to apt-get install ssmtp:

$ apt-cache search ssmtp
ssmtp - Extremely simple MTA to get mail off the system to a mail hub

(darren)

-- 
There is not enough love in the world to squander it on anything
by human beings.



Re: Sending Mail

2002-04-03 Thread darren chamberlain

* Michael Montagne [EMAIL PROTECTED] [2002-04-03 14:41]:
 I apologize for asking a question that I know I've seen before, but I
 just can't seem to find it in the archives.
 When sending a message, after editing the text and exiting out of vim,
 I'm taken to a screen and required to press Y to send.  How can I make
 Y the default so I can press ENTER?  I believe ENTER is bound to edit,
 and I don't want to lose that ability either.

bind compose Return send-message
bind compose v view-attach

(darren)

-- 
There is nothing like returning to a place that remains unchanged
to find the ways in which you yourself have altered.
-- Nelson Mandela



Re: change $record based on mailboxes

2002-04-03 Thread darren chamberlain

* Jun Sun [EMAIL PROTECTED] [2002-04-03 14:55]:
 I have multiple mailbox folders.  I want to save a copy of outgoing 
 message in the current mbox folder.  Pretty reasonable enough.
 
 The following solution seems to work:

[-- snip --]

  6.3.51.  force_name

  Type: boolean
  Default: no

  This variable is similar to $save_name, except that Mutt will
  store a copy of your outgoing message by the username of the address
  you are sending to even if that mailbox does not exist.

  Also see the $record variable.

...

  6.3.189.  save_name

  Type: boolean
  Default: no

  This variable controls how copies of outgoing messages are saved.
  When set, a check is made to see if a mailbox specified by the
  recipient address exists (this is done by searching for a mailbox in
  the $folder directory with the username part of the recipient
  address).  If the mailbox exists, the outgoing message will be saved
  to that mailbox, otherwise the message is saved to the $record
  mailbox.

  Also see the $force_name variable.

(darren)

-- 
Those who learn from history are doomed to have it repeated to
them anyway.
-- Larry Wall



Re: display proces id (Re: to GNU ps or not to GNU ps)

2002-04-03 Thread darren chamberlain

* Jeremy Blosser [EMAIL PROTECTED] [2002-04-03 16:19]:
 On Apr 03, darren chamberlain [[EMAIL PROTECTED]] wrote:
  (I diff'ed with -caw; is there a preferred option set for mutt patches?)
 
 -dup

Noted.

(darren)

-- 
The moment one gives close attention to anything, even a blade of
grass, it becomes a mysterious, awesome, indescribably magnificent
world in itself.
-- Henry Miller



Re: OT: OS / distro / kernel

2002-03-28 Thread darren chamberlain

* Mike Schiraldi [EMAIL PROTECTED] [2002-03-28 10:42]:
   Except that Linux is only the kernel.  Linux + GNU + some other
   files and configuration is the OS.  That, plus some applications
   is the distribution.
  
  You're wrong.
 
 How is he wrong?

I was wondering that too; he seems pretty right on, to me.

(darren)

-- 
To believe is very dull. To doubt is intensely engrossing. To be on
alert is to live, to be lulled into security is to die.
-- Oscar Wilde



Re: M$ Outhouse E. for UNIX

2002-03-27 Thread darren chamberlain

Quoting David T-G [EMAIL PROTECTED] [Mar 27, 2002 08:19]:
  I think he actually means 'hostname', not 'uname'; hostname,
  on any sane system, displays the hostname when called with no
  args, and tries to set
 
 I agree so far, but ...

Here is I think what happened:

$ uname -a; hostname -i
SunOS mail 5.8 Generic_108528-03 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
uname: not super user
$

Yes?

GNU's hostname has a -i option which returns an IP address;
Solaris' hostname does not.  I've had freshly installed Solaris
boxen with a hostname of -i before... ;)

(darren)

-- 
Democracy is a form of government where you can say what you
think, even if you don't think.



Re: mutt+Outlook - calendar utility?

2002-03-27 Thread darren chamberlain

Quoting Sven Guckes [EMAIL PROTECTED] [Mar 26, 2002 17:25]:
 * David Rock [EMAIL PROTECTED] [2002-03-26 19:34]:
  On Tue, Mar 26, 2002 at 10:30:19AM -0500, Adam Shostack wrote:
   On Tue, Mar 26, 2002 at 10:15:47AM -0500, Mike Schiraldi wrote:
   ..it would be way cool to have an interface that downloaded
   your mail into mutt, and left your calendar in Evolution.
  
  It would be even nicer if there was a connector product that
  worked with mutt instead of Evolution so that you could reply
  to appointments from Outlook clients without using the web
  client or vmware.
 
 ok, now the problem has been identified and a possible solution
 has been suggested.  good.
 
 now - can somebody please do some research on the net and set
 up a web page for this?

There is Reefknot (URL:http://www.reefknot.org/), which is
building RFC 2445 (the iCal RFC)-compliant calendaring libraries
and software.  It is written in Perl and is in an early phase,
although they have done extensive work on documenting the RFC and
it's various details (and other implementations).  They have also
done a huge amount of work towards attempting to standardize date
and time handling in Perl, with internationalization specifically
in mind.

For people interested in calendaring but interested in Reefknot
(or Perl ;), they have produced several documents describing the
RFC, such as the Bootstrap guide http://www.reefknot.org/bootstrap-guide/.

(darren)

-- 
Man will never be free until the last king is strangled with the
entrails of the last priest.
-- Diderot



Re: How to - keystrokes?

2002-03-27 Thread darren chamberlain

* Dave Price [EMAIL PROTECTED] [2002-03-27 10:31]:
 I really did take a look at the online help and docs first ...
 
 Are there quick ways to:
 
 * change to main inbox?

If you mean your spool ($MAIL in the shell), there is the !
shortcut.

 * save a message to a specific folder without confirmation -
 can i turn the append to folder confirmation off globally?

  6.3.26.  confirmappend

  Type: boolean
  Default: yes

  When set, Mutt will prompt for confirmation when appending
  messages to an existing mailbox.

  6.3.27.  confirmcreate

  Type: boolean
  Default: yes

  When set, Mutt will prompt for confirmation when saving
  messages to a mailbox which does not yet exist before creating
  it.

Set these to no.

 * select and save a group of messages matching a pattern to a
 particular folder?

Use tagging, in this case tag-pattern, which I think is bound
to T by default, and tag-prefix, bound to ; to save the messages:

  T~A;s=somewhere/else

will tag all messages (~A), apply the save function (;s) to them,
and set the box to be somewhere/else.

(darren)

-- 
Do what thou wilt shall be the whole of the Law.
Love is the law, love under will.



Re: thread view

2002-03-26 Thread darren chamberlain

Quoting Eduardo Gargiulo [EMAIL PROTECTED] [Mar 26, 2002 10:02]:
 How can i configure muttrc to collapse thread messages ?

collapse-thread, bound to \ev by default (I think).  There's also
collapse-all, bound to \eV.

(darren)

-- 
Fanaticism consists in redoubling your efforts when you have
forgotten your aim.
-- George Santayana



Re: reverse_name question

2002-03-26 Thread darren chamberlain

Quoting Tim Kennedy [EMAIL PROTECTED] [Mar 26, 2002 12:33]:
 Sorry if this has been asked a lot.  I've been looking through
 the 'net, and various archives of various messages, for an
 answer to how I can get mutt to reply to emails using the To
 address, as the From address.

 my local account name is sugarat.  but I also get mail to
 [EMAIL PROTECTED].  When people send email to
 [EMAIL PROTECTED], I want to automatically use
 [EMAIL PROTECTED] as my From address in any replies.

I tried to figure out something similar a while ago, but as far
as I can tell, there is no way to set headers based on a message
you are relpying to.  A possible solution is a send-hook/macro
combination that sets the From: header:

  send-hook   .   'my_hdr From: me [EMAIL PROTECTED]'
  macro index \er 'my_hdr From: [EMAIL PROTECTED];reply'
  macro pager \er 'my_hdr From: [EMAIL PROTECTED];reply'

This sets the default From to me [EMAIL PROTECTED] (set this
to your real values, of course), and then, when you want to reply
to something sent to [EMAIL PROTECTED], do escr instead of
just r.

This is untested, BTW, but I think it's basically sound.

(darren)

-- 
If it turns out that there is a God, I don't think that he's evil.
But the worst that you can say about him is that basically he's an
underachiever.
-- Woody Allen



Re: Command expansion

2002-03-26 Thread darren chamberlain

Quoting Rocco Rutte [EMAIL PROTECTED] [Mar 26, 2002 14:55]:
 The problem is the following: if I would type fast enough to
 send a few dozen mails a minute, I wanted to be abled to
 include the date and time in the file I specify by the 'record'
 variable. Using `date`. But `date` is only expanded on startup.
 Pipes may not be used. So that all mails would end up in the
 same file the with time mutt read the config file.  And
 permanently re-reading the config file is ugly.

I think if you \ the backticks, they will be evaluated when the
variable is read, and not when the config is read.  So, instead
of:

  set record=`date +'%Y-%m-%d-%H:%M'`

use something like:

  set record=\`date +'%Y-%m-%d-%H:%M'\`

Untested.  :)

(darren)

-- 
All is fear in love and war.



Re: Mail is not reaching destination

2002-03-25 Thread darren chamberlain

Quoting Jerry Van Brimmer [EMAIL PROTECTED] [Mar 23, 2002 16:39]:
 When I do:
 # date | sendmail -v [EMAIL PROTECTED] 
 
 #(ispwest.com is another isp of mine)
 
 Here's what I get:

(lines removed)

Possibly two things wrong: 

  1. Is sendmail set up to allow messages to go to/from root?

  2. I can't find an address for jerryvb.vei.net, although that
 might just be my setup.

(darren)

-- 
There is not enough love in the world to squander it on anything
by human beings.



Re: defining a command - internal langauge

2002-03-22 Thread darren chamberlain

Quoting Nicolas Rachinsky [EMAIL PROTECTED] [Mar 22, 2002 06:20]:
 * Cameron Simpson [EMAIL PROTECTED] [2002-03-22 12:24:10 +1100]:
  Someone has already mentioned his startup file being:
  
  source shell-cmd |
  
  Wouldn't:
  
  macro foo :source shell-cmd|
  
  be general enough  to go most algorithmic things without
  bloating mutt? The shell hcan hand of to whatever interpreter
  tickles your fancy.
 
 How can I get the current settings/status information into
 the script? For example, the value of editor, or the number of
 unread messages.

Simple -- make shell-cmd write out a config file as a side
effect, and, when it starts, it can read the current config file
and use it as a base.

(darren)

-- 
There are two ways of constructing a software design. One way is
to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no
obvious deficiencies.
-- C.A.R. Hoare



Re: Replacing a message with its filtered output

2002-03-22 Thread darren chamberlain

Quoting Mike Schiraldi [EMAIL PROTECTED] [Mar 21, 2002 17:17]:
 #! /usr/bin/perl -W
 while() { print; s/\r//g; chomp; last unless $_; }
 while() { y/A-Za-z/N-ZA-Mn-za-m/; print; }

  while () {
  (1 .. /^$/) ? s/\r\n//g : y/A-Za-z/N-ZA-Mn-za-m/;
  print;
  }

:)

(darren)

-- 
All pleasures cost at least the time they take.



Re: Filtering a message from the index - procmail

2002-03-21 Thread darren chamberlain

Quoting David Champion [EMAIL PROTECTED] [Mar 21, 2002 13:15]:
 * On 2002.03.20, in [EMAIL PROTECTED],
 * Rocco Rutte [EMAIL PROTECTED] wrote:
  
  There's only one thing I really miss: I'd like to be abled to
  define my own commands. Something like:
  
   define my-command-1 'mutt-command-1mutt-command-2enter'
   define my-command-2 'mutt-command-1my-command-1mutt-command-3enter'
 
 This is why my muttrc looks like this:
   source ~/.mutt/muttrc.sh|
 
 muttrc.sh is a small script to set up an m4 pipeline. I define
 a lot of things -- not just commands, but particular pattern
 sequences, conditional variables, and so on.

Very cool; can you post this, or is it already available for
perusal somewhere?  I'd really like to see what you're doing...

(darren)

-- 
...if we judge something by how badly it is misused, well, hell
would be perl, right?
-- dancer (http://www.advogato.org/person/dancer/)



Re: Can I save all thread collapsed?

2002-03-13 Thread darren chamberlain

Quoting Michel [EMAIL PROTECTED] [Mar 12, 2002 20:10]:
 How to save all messages of a thread?

I do this quite often, to make special purpose, short-lived
mailboxes apropos to a particular discussion.

An easy (manual) way is to tag-thread and then do tag-prefix
save to save all the tagged messages.  In my setup that esc-t
to for tag-thread, ; for tag-prefix, and s to save:

\et;s=new-folder

is the full command.

(darren)

-- 
Any sufficiently advanced bug is indistinguishable from a feature.
-- Rich Kulawiec



Re: describing command sequences in email

2002-03-13 Thread darren chamberlain

Quoting Sven Guckes [EMAIL PROTECTED] [Mar 13, 2002 08:14]:
 * darren chamberlain [EMAIL PROTECTED] [020313 13:07]:
   How to save all messages of a thread?
  An easy (manual) way is to tag-thread and then do
  tag-prefix save to save all the tagged messages.
  In my setup that esc-t to for tag-thread,
  ; for tag-prefix, and s to save:
  \et;s=new-folder
  is the full command.
 
 I suggest describing command sequences like this
 
  tag-threadtag-prefixsave-message =new-folder
   ESC t  ;   s  =new-folder
 
 or like this:
 
  commandtype
  tag-thread   ESC t
  tag-prefix   ;
  save-message s
 =new-folder
 
 comments?

Blah, blah, blah, whine, whine, whine. :)

Just kidding.  Point taken, personal reality duly adjusted.

(darren)

-- 
If your software doesn't recognize the limitations of your hardware,
your software is useless.



Re: Can I save all thread collapsed?

2002-03-13 Thread darren chamberlain

Quoting David T-G [EMAIL PROTECTED] [Mar 13, 2002 08:37]:
 Darren, et al --
 
 ...and then darren chamberlain said...
 % 
 % Quoting Michel [EMAIL PROTECTED] [Mar 12, 2002 20:10]:
 %  How to save all messages of a thread?
 % 
 % I do this quite often, to make special purpose, short-lived
 % mailboxes apropos to a particular discussion.
 
 Makes sense.

Well, thanks. ;)

 % An easy (manual) way is to tag-thread and then do tag-prefix
 
 Will that work for a collapsed thread?  I thought it
 wouldn't...  Just because it's now unclear to me whether we're
 discussing collapsed threads or threads in general :-)

Yes[*].

(darren)

* Yes means it works on my system in my one unscientific and
  unreapeated test using my particular setup, which has nothing
  non-standard about how I'm handling threading or callapsing.

-- 
Whether you can hear it or not the Universe is laughing behind
your back.



Re: OT: Re: attribution and quotes

2002-03-13 Thread darren chamberlain

Quoting Rob Reid [EMAIL PROTECTED] [Mar 12, 2002 18:43]:
 Modified Julian Dates are completely numeric and therefore
 suitable for all Earthlings (not just astronomers) but
 unfortunately my /bin/date, from Red Hat's sh-utils-2.0-11 RPM,
 doesn't support them.  It really should.

Completely unrelated to the rest of this thread, but:

$ rpm -qi sh-utils | head -2 | cut -c-30
Name: sh-utils
Version : 2.0.11

$ /bin/date +%j
072

The sh-utils on my RH 7.2 box seems to support julian dates just
fine.

(darren)

-- 
We are not who we think we are. We are not who others think we are.
We are who we think others think we are.
-- Anonymous



Re: building question

2002-03-11 Thread darren chamberlain

Quoting Ken Weingold [EMAIL PROTECTED] [Mar 10, 2002 18:05]:
 I am getting a new shell account where I am limited 50 megs of
 space.  Even though I use my own patched version of mutt, they
 do have it installed.  What I want to do is use the mutt binary
 from ~/bin, but use the rest of the stuff from the system
 directories.  What is the best way to do this?  I am thinking I
 guess about compile parameters, etc.

Assuming that the system on which you are building has a decent
libc and a libncurses, there should be many exteranl
dependencies.  On my boxen, I get:

$ ldd /usr/local/bin/mutt
libncurses.so.5 = /usr/local/lib/libncurses.so.5 (0x4001c000)
libc.so.6 = /lib/libc.so.6 (0x4005e000)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x4000)

and:

$ ldd /usr/local/bin/mutt-1.3.22.1 
libsocket.so.1 =/usr/lib/libsocket.so.1
libnsl.so.1 =   /usr/lib/libnsl.so.1
libc.so.1 = /usr/lib/libc.so.1
libdl.so.1 =/usr/lib/libdl.so.1
libmp.so.2 =/usr/lib/libmp.so.2
/usr/platform/SUNW,UltraSPARC-IIi-cEngine/lib/libc_psr.so.1

(Linux and Solaris, repsecitvely).  It looks like all of the
required files are from the system itself (other than mutt
itself).

So, build mutt with --prefix=/where/yor/isp/has/their/mutt/installed
and just copy your resulting binary to ~/bin (don't run make
install) so you can piggyback off their installed files.

(darren)

-- 
An error on your own is safer than ten truths accepted on faith,
because the first leaves you the means to correct it, but the second
destroys your capacity to distinguish truth from error.
-- Ayn Rand



Re: Semi-OT: Mailman and MUAs

2002-03-11 Thread darren chamberlain

Quoting Lorin Winchester [EMAIL PROTECTED] [Mar 11, 2002 11:39]:

[-- snip --]

 So is this a case of users not knowing how to properly
 configure/use their MTAs, or is it a case of the list
 administrator not knowing how to properly setup the list?  I
 posted this here since this list runs Mailman and I've heard no
 comments here about this.  There also seems to be a good number
 of knowledgeable people here.

I'd say that it's bad MUAs being mis-configured; you can only do
so much about that. I've never seen/heard of this problem, and my
first instinct is to chalk it up to user mis-education.

Oh, BTW, if this list ran mailman, you'd see a bunch of mailman
urls in the header, which I, at least, don't.

(darren)

-- 
Freedom is an all-or-nothing proposition:  either we are completely
free, or we are subjects of a tyrannical system.  If we lose one
freedom in a thousand, we become completely subjugated.



Re: Another Color to new Mail.

2002-03-11 Thread darren chamberlain

Quoting Michel [EMAIL PROTECTED] [Mar 11, 2002 12:58]:
 I'm with a little matter: I work with several folder to store
 mails in filtering of procmail... When I type c and ? I
 receive:
 
 1 drwxr-sr-x 31 michel   michel   2048 Mar 09 07:33 ../
 2 drwxr-sr-x  2 michel   michel   1024 Mar 09 08:45 Linux/
 3 drwxr-sr-x  2 michel   michel   1024 Feb 19 02:02 Musica/
 4 drwxrwsr-x  2 michel   michel   1024 Mar 09 08:45 Noticias/
 5 drwxr-sr-x  2 michel   michel   1024 Mar 09 08:42 Pessoal/
 6 drwxrwsr-x  2 michel   michel   1024 Mar 09 08:45 Programacao/
 7 -rw-r--r--  1 michel   michel   2240 Mar 09 07:46 adiadas
 8 -rw---  1 michel   michel  59865 Mar 09 06:05 enviadas
 9 lrwxrwxrwx  1 michel   michel 22 Feb 19 04:51 inbox@
 10-rw---  1 michel   michel  46191 Mar 09 08:42 lidas
 
 Well, I want 2 thing to be changed:
 1) Programacao, Linux, Musica, Noticias and Pessoal are
 folders... Can I change the color of names (to detach when
 there are boxes with new mail)?

Don't about colors here, sorry.  But...

 2) Can I filter de screen every time I enter in this screen (to
 remove name, group, permissions or add new labels)?

Take a look at folder_format:

  6.3.49.  folder_format

  Type: string
  Default: %2C %t %N %F %2l %-8.8u %-8.8g %8s %d %f

  This variable allows you to customize the file browser display to your
  personal taste.  This string is similar to $index_format, but
  has its own set of printf()-like sequences:

 %C current file number

 %d date/time folder was last modified

 %f filename

 %F file permissions

 %g group name (or numeric gid, if missing)

 %l number of hard links

 %N N if folder has new mail, blank otherwise

 %s size in bytes

 %t * if the file is tagged, blank otherwise

 %u owner name (or numeric uid, if missing)

 %X
right justify the rest of the string and pad with character X

 %|X
pad to the end of the line with character X

It looks likes your is %C %F %l %u %g %s $d $f, give or take a
few format sizes (do :set ?folder_format to see for sure).  It
sounds like you want to remove the %u, %g, and %F formats.

(darren)

-- 
Men never do evil so completely and cheerfully as when they do it
from religious conviction.
-- Blaise Pascal



Re: About the language for the mutt config tool

2002-03-08 Thread darren chamberlain

I'm going to reply to a bunch of messages all at once.  I'm
attaching my first quick attempt at a configuration script; I've
called mutt-makeconfig, for lack of a better name.   It's very
brute force, but it works.  The config is very basic, enough to
get the bare minimum of personalized part of the process done
(ie, it sets realname, from, alternates, editor, folder,
mbox_type, print_command, and sendmail).  It's written in perl,
uses only standard (5.00505+) modules, and runs reasonably fast.
The options it takes are --muttrc (where it should write the
file, default /tmp/muttrc-$USER) and --color (a useless option to
make it purty).

And, just so everyone knows, I'm not really attached to the
script, they way it does things, the language it's written in, or
the choice of colors on the screen, so spare no flames. :)

Quoting Will Yardley [EMAIL PROTECTED] in 
[EMAIL PROTECTED]:
 regarding cvs space, i've never setup a cvs pserver before; i'm
 assuming this will be the easiest way to offer anonymous CVS
 access.  i doubt it's that hard to setup though.

Anonymous CVS access is not enough, because the folks working on
it will need write access; that means user accounts.  If we make
it a sourceforge project, then all the hard work is handled for
us, at least in that department.

Quoting Michael Maibaum [EMAIL PROTECTED] in 
[EMAIL PROTECTED]:
 That is OK for read access, dubious for write access(which
 should be by ssh probably), add a cvs module to the mutt.newbie
 project at sourceforge?

This was my thought, either attach ourselves to the mutt-newbie
project or start a new project on sourceforge.

Quoting Erika Pacholleck [EMAIL PROTECTED] in [EMAIL PROTECTED]:
 Take a language which you can expect to be present on minimal
 systems.  Otherwise you might end up in dependencies which are
 no advantage for mutt. One of the advantages of console progs
 is that they do not need hundreds of extra languages installed
 to get them going.

Yes.  Similarly:

Quoting John Buttery [EMAIL PROTECTED] in [EMAIL PROTECTED]:
 I agree with this logic; there's nothing that this shell script
 needs to do that can't be done with a Bourne shell script.
 That's the one interpreter you're always guaranteed to have.

I agree entirely.  sh is the most likely candidate, if we are
going for it to run absolutely everywhere (I'd say awk would be
the second, followed by perl).  The script I've written doesn't
too (too many) Perl-ish things and should be strightforward to
port to whatever languagewe decide to use, if that's what is
wanted.

(darren)

--
The Feynman Problem   1) Write down the problem.
Solving Algorithm 2) Think real hard.
  3) Write down the answer.


#!/usr/bin/perl

# --
# $Id$
# --
# Inital version by darren chamberlain [EMAIL PROTECTED]
# --

use strict;
use vars qw| $VERSION |;

use Sys::Hostname;  # To determine the hostname
use Text::Wrap;

# --
# Set defaults and local (script-level) variables.
# --
$VERSION = sprintf %d.%02d, q$Revision: 1.1 $ =~ /(\d+)\.(\d+)/;
my $Muttrc = /tmp/muttrc-$ENV{USER};
my $help_only = undef;

# Normally, doing colors this way is kinda dumb; ANSI::Term and friends
# were designed to do this, but I wanted to ensure that no external
# modules were needed here.  Besides, you have to explicitly ask for
# color, so by default nothing bad will happen.
my $color = undef;
my $red   = ;
my $blue  = ;
my $green = ;
my $norm  = ;

# $ENV{COLUMNS} is some sh magic.  COLUMNS is usually only defined when
# running under X, but we rely on it a little later, so we define
# it if it isn't already defined.  Note that this does not propogate
# outwards to the parent process, so we're OK here.
$Text::Wrap::columns = $ENV{COLUMNS} ||= 80;

# --
# Get command line options, using the standard Getopt::Long module.
# --
use Getopt::Long;
GetOptions(
muttrc=s = \$Muttrc,
color!   = \$color,
help!= \$help_only,
);

# Perhaps nocolor should be the default?
if (defined $color) {
$red   = ;
$blue  = ;
$green = ;
$norm  = ;
}

my @config = ();# Lines that will become the config file
my %env = ();   # Elements that will become the values

# ==
# main
# ==
populate_from_environment(\%env);

# --
# This is the banner, our short introduction to mutt

Re: About the language for the mutt config tool

2002-03-08 Thread darren chamberlain

Quoting Mike Erickson [EMAIL PROTECTED] [Mar 08, 2002 11:51]:
 I think a major improvement would be to store the configuration
 file (sorry for the buzzword) metainfo seperately.

*nod*

 Have a parsable file containg the options, possible values, and
 description. This will make adding new configuration directives
 much easier than writing (and reusing) code for each one.
 Opinions?

I tried that, but there seemed to be too many variations for it
to be done in a way that (a) didn't take more than a hour or two
(I was doing this on the train home last night ;), (b) could be
easily ported to another language if we decide to not use Perl,
and (c) took all the possibilities into consideration (other than
string-based, boolean, and quad-options, there's the issue of
alternates, which takes 0 or more addresses and makes a regex --
too hard to do in a generic way, without making each directive be
code that gets evaluated at run time, which is cake for Perl but
starts to become Perl only very quickly... ;).

I like the mon does things:  a master script that calls other
scripts, and expects the script to send its results to STDOUT.
We could do this, make what I wrote a shell script that basically
does:

  for file in config/*; do
results=`$i`
echo $results  $new_muttrc
  done

And the individual config modules can just pull everything from
%ENV (or os.environ or getenv() or whatever is appropriate).

 ps: Coincidentily, I'm in the process of developing an
 ancillary tool for people trying to get GPG+mutt working fast
 and easy.

Cool!  Can it be integrated, and, if not, can you send me a URL?
I keep procrastinating...

(darren)

-- 
The rebootings will continue until the configuration works.



Mutt configuration tool -- count me in!

2002-03-07 Thread darren chamberlain

Quoting Will Yardley [EMAIL PROTECTED] [Mar 07, 2002 01:16]:
 i was thinking about this in the car tonight, and i realized
 that (AFAIK) there isn't a simple interactive command line
 program to help new users adjust to / configure mutt.

Like many others have mentioned, I am also interested in this,
not so much because I would use it myself, but because I've
introduced many people to mutt, and without fail, I end up
spending a several hours explaining hooks, and colors, and all
the various configuration options.  Plus, I would have liked
something like this when I started using mutt; I had to piece my
config together by reading hundreds of other configs from all
over the Net (and a huge thanks to everyone who makes their
configs publicly available, by the way!).

I know a lot of perl (I'm a perl programmer by trade, in fact),
and a good amount of bash, and would be willing to help where I
could, but, like everyone else so far, I have limited time
(perhaps 2-4 hours per week).  I would be interested in helping
out with the implementation, if there were others willing to help
handle the design and scope out the goals we were trying to
reach.  Someone mentioned making the script able to read and use
custom configuration modules, so that different people could
maintain the parts for Pine compatibility and the like; I think
this is a wonderful idea.

The easiest thing that I can think of would be to make this a
part of the mutt-newbie project on sourceforge; I am a registered
Sf user (see my email address), and would be willing to attach
myself to this project.  Also, someone mentioned earlier in the
thread that they could provide CVS space and mailing list support.

In other words, count me in.

(darren)

-- 
The rebootings will continue until the configuration works.



Re: Mutt configuration tool -- count me in!

2002-03-07 Thread darren chamberlain

Quoting Steve Kennedy [EMAIL PROTECTED] [Mar 07, 2002 10:16]:
 On Thu, Mar 07, 2002 at 10:05:08AM -0500, darren chamberlain wrote:
 
  myself to this project.  Also, someone mentioned earlier in the
  thread that they could provide CVS space and mailing list support.
  In other words, count me in.
 
 Hosting another mutt list wouldn't be a problem here either.

I'm just as interested in CVS space as a list, especially if we
are going to be breaking development out into separate pieces.


Speaking of another list, though, I think this thread is starting
to warrant one...

(darren)

-- 
Men are from earth. Women are from earth. Deal with it.



Re: Mutt configuration tool - does it have to be perl?

2002-03-07 Thread darren chamberlain

Quoting cruciatuz [EMAIL PROTECTED] [Mar 07, 2002 10:51]:
 i like python(.org) and i think it would be a good choice for
 this tool, because team-development would be easier (just my
 opinion, i don't want to start a silly language war).

I like python too, it's a good language.  I brought up perl
because (a) someone else did first, (b) on all non-Linux
Unix-types, there is a higher probability that perl is installed
than python, and (c) it's what I know best, and I was offering to
help implement it.  None of those are language-war starters, I
think. ;)

 does it have to be written in the perl language?

Of course not, but that's an implementation detail, to be decided
once we've actually spec'ed out what we want to accomplish. ;)

(darren)

-- 
All men are mortal.
Socrates was mortal.
Therefore, all men are Socrates.
-- Woody Allen



Re: Mutt configuration tool

2002-03-07 Thread darren chamberlain

Quoting Steve Kennedy [EMAIL PROTECTED] [Mar 07, 2002 12:49]:
 On Thu, Mar 07, 2002 at 08:55:08AM -0800, Carl B. Constantine wrote:
 Well, if we're not reinventing the wheel, why not just ask the guy if
   we can have a copy of his whole HTML and just include it with the mutt
   distribution?  I'm sure it's not very big on disk.  Then just include
   instructions on how to navigate to the first page of it with a browser.
  Actually, the mutt configuration web site is written in PHP3 with a
  PostgreSQL backend.
  You might ask him for the code. I did and he was willing to give it to
  me (I'm evaluating it as an idea for a completely unrelated project).
 
 Maybe host it on www.mutt.org ?

You got me curious, so:

$ HEAD www.mutt.org
  200 OK
  Connection: close
  Date: Thu, 07 Mar 2002 18:06:57 GMT
  Accept-Ranges: bytes
  Server: Apache/1.2.1
  Content-Length: 9975
  Content-Type: text/html
  ETag: 9fb5b-26f7-3c4e728a
  Last-Modified: Wed, 23 Jan 2002 08:21:30 GMT
  Client-Date: Thu, 07 Mar 2002 18:07:46 GMT
  Client-Peer: 194.70.126.33:80

Tell me this isn't accurate!  Is www.mutt.org really running
Apache 1.2.1?  (BTW, no PHP there...)

(darren)

-- 
Maybe that's the only truth in the world.
Not the Bibles or poetry or philosophy but just the old jokes.
-- Robert Shea and Robert Anton Wilson



Re: Is mutt really handicapped?

2002-03-07 Thread darren chamberlain

Quoting Michael P. Soulier [EMAIL PROTECTED] [Mar 07, 2002 16:30]:
 On 07/03/02 MuttER did speaketh:
  Goodness...  Open several xterm windows with mutt and look at all
  the different msgs you wish.
 
 I just tried xterm -e mutt, and I get a no such file or
 directory error. Any idea what that is? I'd like to put
 opening mutt in an xterm on an IceWM keybinding. 

Try xterm -e /path/to/mutt

(darren)

-- 
My one regret in life is that I am not someone else.
-- Woody Allen



Re: Viewing only mailboxes with 'N'

2002-03-06 Thread darren chamberlain

Quoting David Collantes [EMAIL PROTECTED] [Mar 06, 2002 09:52]:
 I have a very long list of mailboxes. When I get into the
 mailbox list, I can see at the top I have 3 mailboxes with new
 messages, but I have to scroll down looking for those 3 one's.
 If there a way to mask and show only the mailboxes with new
 messages in it?

My (imperfect) solution is to reverse sort by modification time
(Oz in the file browser).  Since I keep mutt open all day, and
change mailboxes pretty often, it offers a simple way to sort
folders.  All the ones with new mail (usually) end up on or near
the top.

(darren)

-- 
It is impossible to sharpen a pencil with a blunt axe. It is
equally vain to try to do it with ten blunt axes instead.
-- E. W. Dijkstra



Re: Pity that mutt doesn't read news - what's the best match?

2002-02-28 Thread darren chamberlain

Quoting Will Yardley [EMAIL PROTECTED] [Feb 28, 2002 10:48]:
 Andre Berger wrote:
  Are there key bindings for slrn around that make it use the
  same keys as mutt?
 
 i asked this very question on the mutt newsgroup, and didn't
 get any responses. however i think it would be great if someone
 came up with this and posted their .slrnrc for us.
 
 anyone anyone??

It would be great to have this in contrib/ as well.  I'd do it,
but I don't use slrn.

(darren)

-- 
Beware all enterprises that require new clothes.
-- Henry David Thoreau



Re: mutt paints over background image

2002-02-27 Thread darren chamberlain

Quoting Dominik Vogt [EMAIL PROTECTED] [27 Feb-02 08:22]:
 I have been using mutt in an rxvt window with a background xpm
 for a long time, using the version from the SuSE distribution
 withouth compilling myself.  Since SuSE 7.2 however, rxvt
 covers the background image with a black character background
 itself.  I guess this has something to do with slang vs.
 ncurses.  The older versions were using ncurses and the new
 ones are compiles with slang.

Are you defining colors?  If so, are you using a background color
of black, rather than default? 

(darren)

-- 
It's not that things are getting worse, it's just that news
reporting is getting better.



Re: Pretty print filters

2002-02-26 Thread darren chamberlain

Quoting Thomas Baker [EMAIL PROTECTED] [26 Feb-02 02:10]:
 I had never noticed that before.  The command
 
   enscript --help-pretty-print  
   
 lists about twenty other file types that can be prettified.
 Great stuff.

Tom:

Try printing to a color printer too; it works very well.

(darren)

-- 
So far as a man thinks, he is free.



Re: Pretty print filters

2002-02-25 Thread darren chamberlain

Quoting Thomas Baker [EMAIL PROTECTED] [25 Feb-02 14:50]:
 On Mon, 25 Feb 2002, Marco Fioretti wrote:
  3) Don;t you have enscript on your solaris box? It might work.
 
 Yes, but I don't believe it has any special functions for
 filtering and formatting email headers.

Enscript does; pass the -Email (that's a -E followed by 'mail').

(darren)

-- 
We are not who we think we are. We are not who others think we are.
We are who we think others think we are.
-- Anonymous



Re: Change the date format on index

2002-02-25 Thread darren chamberlain

Quoting David Collantes [EMAIL PROTECTED] [25 Feb-02 15:20]:
 I would like to change my index to look instead of:
 
 L  66 Feb 22 To mutt-users@mutt. ( 0.2K) The Subject goes here...
 
 to:
 
 L  66 Feb 22 2002 To mutt-users@mutt. ( 0.2K) The Subject goes here...
 
 I read the %d uses the $date_format, but the actual date_format
 does not matches the existing index_format (it should be
 showing the year and it does not). Help, anyone?

What does your index_format look like?  Have you seen this part
of the index_format description:

 %{fmt}
the date and time of the message is converted to sender's time
zone, and ``fmt'' is expanded by the library function
``strftime''; a leading bang disables locales

 %[fmt]
the date and time of the message is converted to the local time
zone, and ``fmt'' is expanded by the library function
``strftime''; a leading bang disables locales

 %(fmt)
the local date and time when the message was received.  ``fmt''
is expanded by the library function ``strftime''; a leading bang
disables locales

 %fmt
the current local time. ``fmt'' is expanded by the library
function ``strftime''; a leading bang disables locales.

So, use something like:

  %{%b %e %Y}

in that spot, and that should do it.

(darren)

-- 
Language is not neutral. It is not merely a vehicle which carries ideas.
It is itself a shaper of ideas.
-- Dale Spender



Re: strange behaviour mutt 1.3.27

2002-02-22 Thread darren chamberlain

Quoting Stephan van Beerschoten [EMAIL PROTECTED] [22 Feb-02 05:59]:
 I recently installed a completely new machine (FreeBSD
 4.5-RELEASE) that replaced an older one. I also installed Mutt.
 But now, mutt keeps telling me that there is new mail in
 =System, which is one of my procmail-sorted mailboxes, when
 there is no new mail. And after I opened =System, mutt tells me
 there is new mail in /var/mail/stephanb, which was the
 mailbox I just left.  Not surprisingly, as I switch back to my
 /var/mail/stephanb folder, there is no new mail.
 
 This is rather irritating. Has anyone else experienced this
 kind of behaviour ? What can I do to get ridd of it ?

Is your time correctly synchronized?  Are you using NFS, and if
so, is the time on that box synchronized correctly?  Leaving a
folder writes the contents, naturally, so if the time on the
machine doing the writing is different from the time on the
machine doing the stat (where mutt is running), you'll get false
positives for new mail.

(darren)

-- 
This is the crucial difference between fiction and real life:
fiction must be plausible; real life has no such constraint.
-- Kevin Kelly



  1   2   >