Re: addressbook and aliasfile

2007-01-16 Thread Maarten den Braber
* Michelle Konzack [EMAIL PROTECTED] [070116 18:48]:
 What I need is a function to WRITE to the database instead
 to the ALIAS file.

Use pipe-message. You need something like this:

macro index,pager A pipe-messageabook --add-emailreturn add the
sender address to abook

So you'll probably also want to write some script that filters your
e-mail and executes the right commands and information to add your alias
to the database. See e.g.
http://hermitte.free.fr/mutt/files/bin/abookadd.pl.html

mdb
-- 
Als er niet is gelachen,
was het niet serieus genoeg


Re: ~/Mailbox oddness?

2002-03-13 Thread Maarten den Braber

* J. Scott Dorr [EMAIL PROTECTED] [020313 22:36]:
 Everything works just fine, -except- when it comes to the main/default mailbox
 (~/Mailbox).  If I'm sitting in one of the other mailboxes, I will get a
 notification when mail comes into ~/Mailbox, but (I believe) if mail comes
 into one of the other mailboxes before I get to ~/Mailbox, then the 'c'
 command won't offer up ~/Mailbox as a default option (ie.  when hitting 'c',
 you will be offered the 'next' mailbox that has new mail waiting in it as a
 default to change to -- ~/Mailbox is not offered, even if I've already
 'c'hanged to all the other mailboxes, read/marked/etc the new mail and -know-
 there's new mail in the ~/Mailbox).  That bugs me.

Do you have some 'buffy' kind of program that checks ~/Mailbox?

mdb
-- 
Wie niet gelooft in wonderen die is geen realist
   -- Herman Finkers



Re: gpg signature (was: Folder view - use file mask!)

2002-03-05 Thread Maarten den Braber

* MuttER [EMAIL PROTECTED] [020305 16:28]:
 I also cannot retrieve your key:
 
 pat@wahoo:~ gpg --verbose --keyserver certserver.pgp.com --recv-keys \
 587F0CD702368857
 gpg: requesting key 02368857 from certserver.pgp.com ...
 gpg: can't get key from keyserver: eof

Odd:

mdb@cyclone:~/$ gpg --verbose --keyserver certserver.pgp.com --recv-keys 
587F0CD702368857
gpg: requesting key 02368857 from certserver.pgp.com ...
gpg: armor header: Version: PGPsdk 2.0.1 Copyright (C) 2000 Networks Associates 
Technology, Inc. All rights reserved.
gpg: pub  1024D/02368857 2002-02-06   John Buttery [EMAIL PROTECTED]
gpg: key 02368857: public key imported
gpg: key C6EE66AE.825: Good subkey binding
gpg: uid 02368857.825: Good self-signature
gpg: Total number processed: 1
gpg:   imported: 1

But also:

mdb@cyclone:~/$ gpg --verbose --keyserver wwwkeys.uk.pgp.net --recv-keys 
587F0CD702368857
gpg: requesting key 02368857 from wwwkeys.uk.pgp.net ...
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0

mdb
-- 
Wie niet gelooft in wonderen die is geen realist
   -- Herman Finkers



Re: Garbled charsets

2002-03-05 Thread Maarten den Braber

* Johan Almqvist [EMAIL PROTECTED] [020305 16:49]:
 Until yesterday, I used mutt installed from RedHat's RPM (1.2.5). I have
 now switched to mutt-1.3.27i-1.1.rhl6 (linked from www.mutt.org) and
 have discovered that my outgoing messages have garbled charsets (and
 umlaut letters are displayed as question marks in incoming messages).

I use the nl_NL@euro locale, but you can use whichever one you want.
Don't forget to generate them. On Debian that is adding your locale to
/etc/locale.gen e.g.

| # This file lists locales that you wish to have built. You can find a list
| # of valid supported locales at /usr/share/doc/locales/SUPPORTED.gz. Other
| # combinations are possible, but may not be well tested. If you change
| # this file, you need to rerun locale-gen.
| 
| en_US ISO-8859-1
| nl_NL ISO-8859-1
| nl_NL@euro ISO-8859-15

and then running locale-gen. When you did that you can set the charset
in your muttrc to the proper locale in my case:

| set charset=iso-8859-15

I've also set the following to environment variables, from my
.bash_profile:

| export LC_CTYPE=nl_NL@euro
| export LANG=C

When all this shouldn't work, I remember that it sometimes helps (?) to
compile mutt with --without-wc-funcs, but I don't know why this should
work and it maybe a Bad thing to do.

HTH,
mdb
-- 
Wie niet gelooft in wonderen die is geen realist
   -- Herman Finkers



Re: errors while compiling mutt-1.3.27

2002-02-10 Thread Maarten den Braber

* Dr. Sharukh K. R. Pavri. [EMAIL PROTECTED] [020210 15:33]:
 Ok, did that, here's what I get:
 ---
 [root@farzaan mutt-1.3.27]# make install
 ./patchlist.sh  ./PATCHES  patchlist.c
 /bin/sh: ./patchlist.sh: Permission denied
 make: *** [patchlist.c] Error 126
 -
 
 patchlist.c is an empty file in the mutt source directory.

What are the permissions of patchlist.sh? It normally gives this error
(Permission denied) when the file is not executable. Try doing chmod u+x
patchlist.sh.

mdb
-- 
You have the capacity to learn from mistakes.  You'll learn a lot today.



Re: macros or hook?

2002-01-24 Thread Maarten den Braber

* Nick Wilson [EMAIL PROTECTED] [020124 19:15]:
 I want to use a different $editor var whenever I either *reply* to or
 *compose* a message. Reason being a different cursor starting point for
 each one (on the attribution for replying and on the top line for
 composing). 
 I'm not sure how to do it, I looked at hooks but didn't see one that
 seemed to fit?

Can't you bind a macro to the key that you press when replying and when
composing a message?

mdb
-- 
You have the capacity to learn from mistakes.  You'll learn a lot today.



Re: macros or hook?

2002-01-24 Thread Maarten den Braber

* Maarten den Braber [EMAIL PROTECTED] [020124 20:03]:
 * Nick Wilson [EMAIL PROTECTED] [020124 19:15]:
  I want to use a different $editor var whenever I either *reply* to or
  *compose* a message. Reason being a different cursor starting point for
  each one (on the attribution for replying and on the top line for
  composing). 
  I'm not sure how to do it, I looked at hooks but didn't see one that
  seemed to fit?
 
 Can't you bind a macro to the key that you press when replying and when
 composing a message?

Maybe it's A Good Thing to give an example to ;-), here it is:

bind index r noop
bind index m noop
macro index m :set editor=\vim -c ':0;/Subject'\\\nmail
macro index r :set editor=\vim -c ':0;/^$'\\\nreply

mdb
-- 
You have the capacity to learn from mistakes.  You'll learn a lot today.



Re: macros or hook?

2002-01-24 Thread Maarten den Braber

* Nick Wilson [EMAIL PROTECTED] [020124 21:17]:
  bind index r noop
  bind index m noop
 
 What's a noop?

noop means as much as 'do nothing' (no operation or something i guess),
i thought that the macros wouldn't work if i didn't do this, but maybe
they do. i don't know for sure.

  macro index m :set editor=\vim -c ':0;/Subject'\\\nmail
  macro index r :set editor=\vim -c ':0;/^$'\\\nreply
 
 Hmmm Yeah, I getcha. How does mutt know how to reply/compose as well
 though? Is that them noop buggers?

i don't get your question, do you mean how mutt knows when to reply or
compose? that's in the 'm'ail and 'r'eply keys i use.

mdb
-- 
You have the capacity to learn from mistakes.  You'll learn a lot today.



Re: macros or hook?

2002-01-24 Thread Maarten den Braber

* Nick Wilson [EMAIL PROTECTED] [020124 21:21]:
  macro index m :set editor=blah\nmail
  macro index r :set editor=blah\nreply
  macro index R :set editor=blah\ngroup-reply
  macro index L :set editor=blah\nlist-reply
 
 Ah now I see a pattern, you can put the mail thingy in the set editor
 bit. So how might it look with this line:
 
  set editor=vim +'/^$/' -c ':set textwidth=72'
 
 like this?
 
  set editor=vim +'/^$/' -c ':set textwidth=72'mail

Almost. You can only use the mail 'thingie' in a macro definition,
$editor is just the editor variable.

mdb
-- 
You have the capacity to learn from mistakes.  You'll learn a lot today.



Re: macros or hook?

2002-01-24 Thread Maarten den Braber

* Nick Wilson [EMAIL PROTECTED] [020124 22:13]:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 
 * and then Maarten den Braber blurted
   like this?
   
set editor=vim +'/^$/' -c ':set textwidth=72'mail
  
  Almost. You can only use the mail 'thingie' in a macro definition,
  $editor is just the editor variable.
 
 Thanks Maarten, got it now. One last thing: I wrote 4 macros (r,g,L,m)
 for the index and then wrote then *again* for the pager. Could I have
 done that more efficiently?

No, I don't think so, but maybe someone else does know a better way...

mdb
-- 
You have the capacity to learn from mistakes.  You'll learn a lot today.



Re: how to change xterm title depending on current mailbox

2002-01-22 Thread Maarten den Braber

* Will Yardley [EMAIL PROTECTED] [020122 19:05]:
 since the first bit presumably is doing some sanity checking as well, it
 MIGHT work to take out the 'else if' line entirely, but i don't really
 know.
 
 /* Make sure that the terminal can take the control codes */
 if (ep == NULL) unset_option (MuttVars[idx].data);
 else if (mutt_strcasecmp (ep, xterm) != 0) unset_option 
(MuttVars[idx].data);

That did it for me (using wterm and $TERM set to 'rxvt')

mdb
-- 
You have the capacity to learn from mistakes.  You'll learn a lot today.