Re: Problems with mutt and locking

2000-03-25 Thread Maciej Kalisiak

On Fri, Feb 25, 2000 at 05:10:24PM -0500, Wes Barris wrote:
 I have been trying to get mutt working on a Linux/RedHat 6.1 system.
 The /var/spool/mail directory is NFS mounted from a FreeBSD system.
 Mutt keeps telling me that user's mail files are "Read Only".
 By running this command:
 
   mutt | tee junk
   cat junk
 
 I have found this error:
 
   fcntl: No locks available (errno = 37)

As of one of the more recent RH distros, you not only have to have "lockd"
running, but also "rpc.statd".  I've found that starting up the latter got rid
of this very problem in my case.

Hope this helps.

-- 
Maciej Kalisiak | [EMAIL PROTECTED] | http://www.dgp.toronto.edu/~mac [McQ]
PGP-finger|www; (0x39AC36F5) 9F BB 9E 11 F0 1E 5D 20  0B 31 3D 37 47 D0 67 C7
GE/CS d- s++:+ a- C++(+++) ULAI++ P+++ L+++ E+++ W++ N- o? K? !w--- O- M- V--
PS PE+ Y+ PGP+ t+ 5 !X-- R+ tv-- b+ DI+ G+ e+++(*) h--- r+++ y? 



Solution: sender profiles

2000-03-25 Thread Martti Rahkila

Hi mutters,

a couple of days ago I sent a question related to sender profiles.
Thanks to Mikko, I managed to make a working configuration.
The best part of it is that you can include pretty much
anything in the profile and you can also assign profiles
with certain addresses using send-hooks. There are still a 
couple of minor problems left, but here is the solution.

1) add something like this to your muttrc:

#
# Profiles
# (defined in separate files)
#

# default
source ~/.mutt/profile.default

# macros to invoke a profile
macro   index   F1":source ~/.mutt/profile.default\n" "Load default profile"
macro   index   F2":source ~/.mutt/profile.personal\n" "Load profile: personal"

# You can still use send-hooks to automatically choose a profile!
send-hook ([EMAIL PROTECTED])$ \
"source ~/.mutt/profile.personal\n"

2) create the profiles, here are the two examples from above

profile.default:
---
# Mutt profile: default
# From, Reply-To, Fcc, Bcc, Pgp sign-key, attribution, signature etc.

set locale=""
set signature='~/.signature'
set indent_string=" "  # Quoting mails with this string.
set attribution='On %{%a, %d %b %Y}, %n wrote:\n'
set post_indent_string=""   # Footer (after quotes, before signature).

# Pretty Good Privacy (PGP):
set pgp_sign_as="0x000" # UserID/KeyID for signing
set nopgp_autoencrypt 
set nopgp_autosign

# Customized headers
unmy_hdr *  # remove all extra headers first.

my_hdr From: Martti Rahkila [EMAIL PROTECTED]
my_hdr Reply-To: Martti Rahkila [EMAIL PROTECTED]
#my_hdr Bcc: [EMAIL PROTECTED]
#my_hdr Organization: org

# Fcc stuff
fcc-hook . "=sent"
---

profile.personal
---
# Mutt profile
# From, Reply-To, Fcc, Bcc, Pgp sign-key, attribution, signature etc.

# Settings for personal mail (in Finnish)

set signature='fortune|'# get the signature from fortune program
set locale=fi_FI
set indent_string=" "  # Quoting mails with this string.
set attribution='\n%n kirjoitti %{%Ana, %d. %Bta %Y}:\n'
set post_indent_string=";-)"# Footer (after quotes, before signature).

# Pretty Good Privacy (PGP):
set pgp_sign_as="0x"# UserID/KeyID for signing
set pgp_autoencrypt 
set pgp_autosign

# Customized headers
unmy_hdr *  # remove all extra headers first.

my_hdr From: Martti Rahkila [EMAIL PROTECTED]
my_hdr Reply-To: Martti Rahkila [EMAIL PROTECTED]
#my_hdr Bcc: [EMAIL PROTECTED]
#my_hdr Organization: org

# Fcc stuff, does this need to be hook?
fcc-hook . "=sent.personal"
---

3) Check that muttrc doesn't contain any of the profile definitions,
I noticed that muttrc defaults and/or send-hooks will override
some of these! (Should it do that?)

4) start mutt and enjoy!

When you want to send someone a message using your personal profile,
press F2 to load profile (possibly do ^F before that, if you've
used a different PGP key earlier!).


This was tested with mutt 1.0.1 on linux.

Known problems/questions:
- Is there a way to include a message on the status bar with a macro?
In this case it would be nice have something like "Loaded profile: personal"
(Now it's pretty difficult to remember which profile is active)
- what would be an elegant way to include "forget-passphrase" command
either in the macro or the profile?
- the problems mentioned in step 3

Have fun,
--
Martti Rahkila

E-mail: [EMAIL PROTECTED]

Helsinki University of Technology
Department of Electrical Engineering and Communications
Laboratory of Acoustics and Audio Signal Processing



Re: Solution: sender profiles

2000-03-25 Thread Mikko Hänninen

Martti Rahkila [EMAIL PROTECTED] wrote on Sat, 25 Mar 2000:
 3) Check that muttrc doesn't contain any of the profile definitions,
 I noticed that muttrc defaults and/or send-hooks will override
 some of these! (Should it do that?)

I'm not sure I understand what you mean by your description.  All Mutt
commands have equal priority, regardless of context, so the latest
setting for anything will be used.  If you set a variable first in the
main .muttrc and then with a send-hook, after the send-hook has been
invoked that value of the variable will be used from that point on.

If that doesn't answer you, could you please give a few more details..?

 Known problems/questions:
 - Is there a way to include a message on the status bar with a macro?

You can customise the status bar to your heart's content by setting the
$status_format variable, so yes. :-)

 - what would be an elegant way to include "forget-passphrase" command
 either in the macro or the profile?

I don't know about that; I don't use PGP.  You cat at least do

  push forget-passphrase

.. in the source file, however this has the drawback that it forgets it
every time you load a profile, even if the used key has not changed.
This is an annoyance if you load the profile with a send-hook.  I
suppose you could have a wrapper source file for the macro invocations
that have this added command and then source the same file as the
send-hooks, however in that case the passphrase wouldn't be
automatically forgotten when a different profile is loaded, so it's not
perfect either.

There is no way to do conditional execution in a .muttrc file based on
the contents of some variable or something, only with hooks (and the
conditional status format expansions).


Hope this helps,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy  scifi, the Corrs /
Today is the last day of your life so far.



Re: Solution: sender profiles

2000-03-25 Thread Christian Schult

Martti Rahkila wrote:

 - what would be an elegant way to include "forget-passphrase" command
 either in the macro or the profile?


Untested, at the bottom of each profile file:

push "\Cf"


christian




Mailing Lists

2000-03-25 Thread S.P. Hoeke

Hello All,

I'm a newbie with Mutt (and OpenBSD for that matter) and because of this i've 
subscribed to a lot of mailinglists :-)

I was wondering if it's possible to have the equivalent of the "Rules Wizard" that 
Outlook 2000 uses...

If i get a message from [sender] (ie a mailing list) it's automagically moved to an 
appropriate (self created) folder.

I read something about procmail, but it was quite difficult to comprehend (for a 
newbie anyway)

Thankx,
  Steffan



Re: Mailing Lists

2000-03-25 Thread Ralf Hildebrandt

On Sat, Mar 25, 2000 at 07:27:42PM +0100, S.P. Hoeke wrote:

 I'm a newbie with Mutt (and OpenBSD for that matter) and because of this
 i've subscribed to a lot of mailinglists :-)  
 
 I was wondering if it's possible to have the equivalent of the "Rules
 Wizard" that Outlook 2000 uses... 

Is there a line wrapping wizard in OE 2000? Yes? Use it :)

 If i get a message from [sender] (ie a mailing list) it's automagically
 moved to an appropriate (self created) folder. 
 
 I read something about procmail, but it was quite difficult to comprehend
 (for a newbie anyway) 

Use procmail. It's not so hard after all. Get a recipe from somewhere and
off you go.

-- 
Ralf Hildebrandt [EMAIL PROTECTED] www.stahl.bau.tu-bs.de/~hildeb
UNIX for the masses: !--#exec cmd="/vmunix.cgi" --


 PGP signature


RSA keys with GPG

2000-03-25 Thread Terje Elde

Hi all,

I've got a rather nice PGP setup with mutt, using the gpg-2comp prog as shown
in the examples (1.1.9i IIRC), however when I'm trying to encrypt to RSA keys,
I get the following:

gpg: writing to `-'
gpg: DSA signature from: BC26460D Terje Elde (work) [EMAIL PROTECTED]
gpg: NOTE: --no-literal is not for normal use!
gpg: NOTE: --no-literal is not for normal use!
usage: gpg [options] --encrypt [filename]
Press any key to continue...

Thus I'm only able to use DSA/ElGamal keys, which is really a PITA. Am I the
only one having these problems?

Terje
-- 
Xlehveh rhkau fudwuh få mydtemi dåh tk aqd rhkau jyt få kdyn (jyt ==
fudwuh?)

 PGP signature


Re: RSA keys with GPG

2000-03-25 Thread Lars Hecking

Terje Elde writes:
 Hi all,
 
 I've got a rather nice PGP setup with mutt, using the gpg-2comp prog as shown
 in the examples (1.1.9i IIRC), however when I'm trying to encrypt to RSA keys,
 I get the following:
 
 1.1.9i doesn't use gpg-2comp anymore.

 gpg: writing to `-'
 gpg: DSA signature from: BC26460D Terje Elde (work) [EMAIL PROTECTED]
 gpg: NOTE: --no-literal is not for normal use!
 gpg: NOTE: --no-literal is not for normal use!
 usage: gpg [options] --encrypt [filename]
 Press any key to continue...

 Gnupg is using your DSA key here. What exactly are you trying to do?
 Do you have your RSA key in they key db?

 Thus I'm only able to use DSA/ElGamal keys, which is really a PITA. Am I the
 only one having these problems?

 Apparently :-)

 Can you post or email your .gnupg/options file?




Multiple IMAP accounts?

2000-03-25 Thread Ben Beuchler

Has anyone come up with a way to access multiple IMAP accounts on
different servers from mutt?  Or even a way to configure a macro that will
switch me from one to the other?

Or am I stuck setting up two seperate .muttrc files and restarting mutt to
switch?

Gracias,
Ben

-- 
"There is no spoon"
-- The Matrix



Re: Multiple IMAP accounts?

2000-03-25 Thread Tommi Komulainen

On Sat, Mar 25, 2000 at 06:14:43PM -0600, Ben Beuchler wrote:
 Has anyone come up with a way to access multiple IMAP accounts on
 different servers from mutt?  Or even a way to configure a macro that
 will switch me from one to the other?

Been there, done that, forgot the documentation :-]

mailbox {[EMAIL PROTECTED]}

Works even with multiple accounts on the same server.


-- 
Tommi Komulainen   [EMAIL PROTECTED]



Re: Mailing Lists

2000-03-25 Thread Mikko Hänninen

S.P. Hoeke [EMAIL PROTECTED] wrote on Sat, 25 Mar 2000:
 I read something about procmail, but it was quite difficult to
 comprehend (for a newbie anyway)

There's two programs for this (that I know of), procmail and maildrop.

procmail is the old and tried-and-true program that has been around for
ages and a lot of people are familiar with.  maildrop is a newcomer,
maybe a year or two old (I'm not sure).  It of course claims to be
better than procmail, having learned from procmail's mistakes. :-)  It
does have a different syntax than procmail, which *may* be easier to
learn than procmail's, especially if you know any (C-like) programming
languages.  It does have other differing features too but you're
probably not too interested in those because either will get your mail
filtering done in practice.

In the past, I remember seeing mentions of a procmail tutorial/getting
started page on the web, or something like that.  I didn't save the URL
but maybe if you search the archives, or someone can provide the URL...
Supposedly that page is a very good starting point for newcomers to
procmail.  I've not seen it myself so I'm going by hearsay.  I guess
this is kind of vague but hopefully knowing that there *is* help
resources out there will help you find them.

Finally, both procmail and maildrop have an example man page. procmailex
and maildropex respectively.  It's very helpful.


Hope this helps,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy  scifi, the Corrs /
Be nice to other people.  They outnumber you 6 billion to one.



Re: Mailing Lists

2000-03-25 Thread Sankaranarayanan K V

On Sun, Mar 26, 2000 at 04:03:23AM +0300, Mikko Hänninen wrote:
 In the past, I remember seeing mentions of a procmail tutorial/getting
 started page on the web, or something like that.  I didn't save the URL
 but maybe if you search the archives, or someone can provide the URL...

I could dig up these:

http://www.jazzie.com/ii/faqs/archive/mail/filtering-faq/
http://www.best.com/~ii/faqs/archive/mail/filtering-faq/

http://www.ii.com/internet/robots/procmail/qs/ 

http://www.uwasa.fi/~ts/info/proctips.html

http://www.xray.mpe.mpg.de/mailing-lists/procmail/

HTH.

Regards
Sankar