Re: Emacs question

2002-08-13 Thread Walt Mankowski

On Tue, Aug 13, 2002 at 02:31:47PM -0700, Andy Davidson wrote:
 Yes, this is an Emacs question, but it is mutt related, so I thought I
 would ask it here. I found this at varous mutt places on the web and
 recently added the following to my .emacs profile and it sort-of works:
 
 (setq auto-mode-alist (append (list (cons ^\/tmp\/mutt 'mail-mode))
   auto-mode-alist))
 (add-hook 'mail-mode-hook 'my-mail-mode-hook)
 (defun my-mail-mode-hook ()
   (auto-fill-mode)
 )
 
 The problem is that the mail-mode occurs, but the auto-fill-mode does
 not. I am firmly convinced that it did work once. And only once.
 
 Anybody got a spare clue for me?

That's pretty much what I have, and it works for me.  The only thing I
can think of is that (auto-fill-mode) doesn't *turn on* auto fill
mode, it *toggles* auto fill mode.  Maybe you have code elsewhere in
your .emacs file that's turning it on, so then this line is turning it
back off.

To always turn it on, try this instead:

  (auto-fill-mode 1)

Good luck!

Walt



msg30245/pgp0.pgp
Description: PGP signature


Re: [dan@hld.ca: Re: [oclug] GPG and mutt]

2002-06-11 Thread Walt Mankowski

On Mon, Jun 10, 2002 at 09:26:31PM -0400, Brenda J. Butler wrote:
 On Sun, Jun 09, 2002 at 08:30:40PM -0400, Brenda J. Butler wrote:
  
  I'm trying to use GPG via mutt, and I find there is an annoying
  two-second wait every time I hit a signed message in the index
  while GPG verifies if the signature is ok.  I'd like to turn off
  automatic verification, but I can't find the command to verify
  the signature on demand.  Is there one?
  
  I'm not keen on setting pgp_verify_sig to ask-yes or ask-no,
  that's not much more efficient than just waiting 2 seconds
  for the check to be done.
  
  There is a command to verify the old-style PGP signature, I want
  a user-initiated command to verify if the GPG signature is ok.
 
 I'm running mutt version 1.3.27i (2002-01-22) and gpg version 1.0.6,
 both part of Debian 3.0 unofficial (cd made in March).

Although I haven't tried it yet myself, I've heard reports that
signature verification is significantly faster in gpg 1.0.7

Walt




msg28905/pgp0.pgp
Description: PGP signature


Re: [OT] Emacs and line wrapping (was: Re: About wrapping lines.)

2002-05-09 Thread Walt Mankowski

On Thu, May 09, 2002 at 12:09:13PM +0300, Jussi Ekholm wrote:
 Yeah, I learnt that already. :-) Now I can use M-q nicely and it does
 *just* what I want it to do, so now faar too long lines aren't a
 problem for me. Of course, it would be nice if Emacs would wrap 'em
 automagicly, but I think I'm not asking for everything and be happy with
 the bread crums I already have. O:-)

Here's one way to go into auto-fill mode whenever you fire up emacs
from mutt.  It goes into mail-mode (a major mode like text mode, but
with a few more features designed for working with email).  It also
creates a hook for mail-mode that goes into auto-fill-mode and skips
past all the headers (useful if you set edit_headers in your .muttrc).

;; Automatically go into mail-mode and auto-fill-mode if filename starts with
;; /tmp/mutt
(setq auto-mode-alist (append (list (cons ^\/tmp\/mutt 'mail-mode))
  auto-mode-alist))
(add-hook 'mail-mode-hook 'my-mail-mode-hook)

(defun my-mail-mode-hook ()
  (auto-fill-mode)
  (mail-text)
)




msg27938/pgp0.pgp
Description: PGP signature


Re: [moving OT] screen splitting (was Re: view other msgs while composing)

2002-05-03 Thread Walt Mankowski

On Fri, May 03, 2002 at 11:05:30AM -0500, David T-G wrote:
 Oh, I get it...  Most new panes are whole windows, but you can first
 split a window into two panes and *then* create a window in it.
 
 
 % 
 % Or you can use C-a  for a list of existing windows and choose one for
 % the new pane.
 % 
 % BTW, C-a ? gives you the key bindings.
 
 I saw that, but I didn't get that creating a window would put it in the
 pane instead of in a new window as usual.

I still don't think you quite get it.  There are windows (which you
create with C-a c), and there are regions (which is how the screen
is split up).  Normally you only have one region, so it appears that
creating a new window fills up the whole pane.  But really each region
can contain any of the windows you've created.  Once you've split your
screen into different regions, anything you do happens just inside
that one region until you either kill it or switch to a different
one.  So any new windows you create will be created in whatever region
you happen to be in when you enter C-a c.

Walt





msg27856/pgp0.pgp
Description: PGP signature


Re: available MDA's: are you satisfied?

2002-01-25 Thread Walt Mankowski

On Thu, Jan 24, 2002 at 09:04:22PM -0600, Jeremy Blosser wrote:
 On Jan 24, Jeremy Blosser [[EMAIL PROTECTED]] wrote:
  On Jan 25, Roman Neuhauser [[EMAIL PROTECTED]] wrote:
   Now, what bugs me about both of these programs: to the best of my
   knowledge, neither offers you a real programming language. This can be a
   plus, or a minus (YMMV), but imagine being able to write filters using a
   full-featured scripting language!
  
  Qmail's .qmail files allow this to be done pretty easily, since you can
  pipe messages to whatever you want.  All you'd need to do is stick
  something on the end that can read a message as stdin and deliver it, like
  the maildir/safecat command.
  
  I have no idea if Postfix/Exim/etc. offer something similar.
 
 I've been told their .forward will do the same; I wasn't sure before how
 much they allowed.  It's been a while.

Yep, you can use .forward to forward mail to arbitrary programs as
well as other addresses.  Here's how I forward all my incoming mail
through my Mail::Audit script:

$ cat ~/.forward
|/home/walt/bin/audit_mail.pl
$

Walt




msg23780/pgp0.pgp
Description: PGP signature


Re: How to insert utf8 characters in mutt?

2002-01-10 Thread Walt Mankowski

On Thu, Jan 10, 2002 at 04:09:19PM +0100, Stephan Seitz wrote:
 I'm using mutt 1.3.25i in an utf8-xterm. Within my editor (vim) I can
 insert any utf8 characters with ctrl-v u utf8-hexcode.
 But how do I such thing within mutt (e.g. the subject)?

You could try adding

set edit_headers

to your .muttrc and edit the subject inside vim.

Walt




msg22839/pgp0.pgp
Description: PGP signature


Re: How to display accented characters in mutt 1.3.25?

2002-01-08 Thread Walt Mankowski

On Tue, Jan 08, 2002 at 11:56:41AM +0100, Tobias Brueckner wrote:
 (Beeing in Germany) I only defined
 
   export LC_CTYPE=de_DE.ISO_8859-1
 
 That does the trick. At least for accents and umlauts.

Adding

export LC_ALL=en_US.ISO_8859-1

worked for me.  Thanks.

 PS: Isn't this some kind of FAQ?

Probably, but I couldn't find it.  :-)

Walt





msg22670/pgp0.pgp
Description: PGP signature


How to display accented characters in mutt 1.3.25?

2002-01-07 Thread Walt Mankowski

I recently tried out mutt 1.3.25.  This is my first look at the 1.3.*
series of mutt.  One thing I noticed right away is that mutt is no
longer display accented characters correctly.  On the index screen
they appear as question marks.  When viewing the text of an email,
they appear as octal with a / in front of them.

There doesn't appear to be anything wrong with the font I'm using,
because if I fall back to 1.2.5.1 everything looks fine.

Any idea what I need to tweak?

Walt




msg22553/pgp0.pgp
Description: PGP signature


Re: my-text-mode

2002-01-04 Thread Walt Mankowski

On Sat, Jan 05, 2002 at 12:34:15AM +0300, Im Eunjea wrote:
 * Franco Vite [EMAIL PROTECTED] [2002-01-04 16:01]:
   There is a way to have differents quote colors, in emacs?
 
 maybe this will help?
 It's from Walt Mankowski's .emacs and I just put (turn-on-font-lock).

I have

  (turn-on-font-lock)
  (global-font-lock-mode t)
  (setq font-lock-maximum-decoration t)

(just to be safe) elsewhere in my .emacs. :-)

Walt




msg22298/pgp0.pgp
Description: PGP signature


Re: my-text-mode

2002-01-04 Thread Walt Mankowski

On Fri, Jan 04, 2002 at 10:02:50PM -0500, Samuel Padgett wrote:
 If you're using GNU Emacs, you only need
 
 (global-font-lock-mode 1)
 
 The other lines are superfluous.

I was wondering about that when I posted it...  :-)




msg22303/pgp0.pgp
Description: PGP signature


Re: my-text-mode

2002-01-03 Thread Walt Mankowski

On Thu, Jan 03, 2002 at 03:40:19PM +0100, giorgian wrote:
 hi all,
 
 i defined the function my-text-mode in my .emacs file, to set all my
 mail editing preferences; 
 
 i put in my .muttrc the row:
 set editor=emacs -f my-text-mode
 
 but it doesn't work: mutt still opens my emacs in the default mode
 (lisp interaction); i don't want to change the default mode, just to
 use my-text-mode with mutt.
 
 any idea?

Here's the code from my .emacs file that does something similar.  It
automatically goes into mail-mode (which is a superset of text-mode
with a few mail enhancements), auto-fill-mode, and moves point past
all the mail headers (since I set edit_headers in .muttrc).

;; Automatically go into mail-mode and auto-fill-mode if filename
;; starts with /tmp/mutt, and move past the mail headers.
(setq auto-mode-alist (append (list (cons ^\/tmp\/mutt 'mail-mode))
  auto-mode-alist))
(add-hook 'mail-mode-hook 'my-mail-mode-hook)

(defun my-mail-mode-hook ()
  (auto-fill-mode)
  (mail-text)
)

Walt




msg22205/pgp0.pgp
Description: PGP signature


Incorrect release date for 1.2.5.1?

2002-01-02 Thread Walt Mankowski

I just built and installed mutt 1.2.5.1.  When I run mutt -v, it
reports that it's Mutt 1.2.5.1i (2000-07-28).  Did someone forget to
update reldate.h?

Walt




msg22139/pgp0.pgp
Description: PGP signature


Re: About quoting text, about emacs.

2001-07-26 Thread Walt Mankowski

On Fri, Jul 27, 2001 at 12:20:53AM +0200, Jens Paulus wrote:
 What you suggest is quite okay. Thank you.

I'm glad I could be of help.

Walt

 PGP signature


Re: vfolders

2001-07-13 Thread Walt Mankowski

On Thu, Jul 12, 2001 at 03:33:04PM -0400, darren chamberlain wrote:
 Have you considered Maildir format?  It was designed specifically
 to compensate for the limitations of mbox format, specifically
 locking and speed.

I've done some experimenting with Maildirs.  I've found it to be quite
a bit *slower* than mbox, particularly on big folders.  This is on a
Linux ext2 partition.  I had one Maildir that was an archive of a
high-traffic mailing list.  It had around 15,000 messages and was over
50 megs in size.  Mutt was taking over a minute to open the folder.
The equivalent mbox folder took just a few seconds.

Walt


 PGP signature


Re: vfolders

2001-07-13 Thread Walt Mankowski

On Fri, Jul 13, 2001 at 02:59:00PM +0200, Ralf Hildebrandt wrote:
 Yeah, but try deleting a mail from that 50MB mailbox. Boy, this will
 suck.

Depends where the messages are that you're deleting.  I find I'm
generally deleting the newest messages, which are at the end of the
file and don't take long at all to delete.  I open the folder to check
for new messages a lot more often than I delete old messages.
(Remember, I'm using this mostly as an archive.)

Walt

 PGP signature


Re: vfolders

2001-07-13 Thread Walt Mankowski

On Fri, Jul 13, 2001 at 10:58:43AM -0400, darren chamberlain wrote:
 Justin R. Miller [EMAIL PROTECTED] said something to this effect on 07/13/2001:
  What about searching? 
 
 What I like most about mbox, and the main reason I haven't moved
 to Maildir, is the searchability of a single file.  Yes, I know
 you can use grep -r, and most indexers will index multiple files,
 but you get filenames like ~/Mail/mutt-users/new/57834896890 or
 whatever Maildir uses to name its files.

Of course you can do some level of searching directly through mutt.  I
don't remember searches taking that much longer under Maildirs, but I
honestly didn't do much in the way of comparison.  It was the long
delay in first opening the folder that drove me to convert the big
folders back to mbox.

Maildirs have some neat advantages of their own.  For example it's
very easy to merge two folders together.  I send mail from my laptop,
my desktop, and a shell account at my ISP.  I end up with sent folders
on all three places, but all my received mail is on my desktop.  Since
Maildir stores each message in its own file, and since the filename
contains the hostname, I'm guaranteed to not have any name collisions.
All I have to do is periodically scp or rsync everything in
~/Mail/sent/cur on my laptop and ISP to ~/Mail/sent/cur on my desktop,
and suddenly everything is in one place.

 Though, to bring it back to vfolders (remember vfolders?), it
 would be nice to able to say something like SELECT Subject FROM
 MAIL WHERE From LIKE %mom% ORDER BY Date DESC LIMIT 1 and get
 the latest message from my mom...

You'd find that easier that /~f Mom?

Walt


 PGP signature


No Lines: tag in sent mail folder

2000-06-14 Thread Walt Mankowski

I keep a copy of all my sent mail with the command 

set record=~/Mail/sent

in my .muttrc file.  I recently converted this folder to a Maildir.
Since then none of the new messages have a Lines: tag, so to mutt they
all appear to have 0 lines.

I've actually written a little perl script to add the Lines tag where
it's missing, but it seems kind of kludgy to do it that way.  Does
anyone know a way to have mutt insert the tag in the header of these
messages?  The trick shown in the FAQ doesn't work because these
messages don't do through procmail.

If mutt can't do it itself, could I pipe the messages through an
external program that could add the Lines tag and write it to the
Maildir?  I actually have said program, which I wrote for a box which
has mutt, qmail, and perl installed, but which for some reason doesn't
have procmail.  I'd be happy to post the program to the list if
anyone's interested.

Thanks.

Walt




Re: No Lines: tag in sent mail folder

2000-06-14 Thread Walt Mankowski

On Thu, Jun 15, 2000 at 12:22:34AM +0200, clemensF wrote:
 the lines disappear in a maildir, but the size in bytes holds.

I've tried %c instead of %L in my index_format and I don't like it.  A
1 byte message will have its size listed as 0.1K (4 chars) while a
99,999 byte message appears as 99K (3 bytes).  So visually I find it
jarring that small emails look bigger than big emails.

Is there anyway to change this behavior?  I tried a few things like
%5.1c but they didn't have any effect.

Walt



Re: QmailAnalog

2000-03-30 Thread Walt Mankowski

On Thu, Mar 30, 2000 at 07:47:15PM +0200, S.P. Hoeke wrote:
 Hello,
 
 I'm wondering if there's a FAQ or HOW-TO with regards to qmailanalog...
 The man pages are, for me, not sufficient to get it running :-(
 
 THNX,
  Steffan
 

Maybe you'd have more luck asking your question on the qmail mailing
list.  :-)