Re: yes/no nls

1999-09-24 Thread Michael Sobolev

On Fri, Sep 24, 1999 at 09:32:53AM +0400, Alex Kapranoff wrote:
   I like my locale, really! If a program has something to tell me in Russian
 I vote for it - cause few do. I just don't like localization done by people
 who don't use it and don't realize all the features and misfeatures. 
Please do not say that. :)  I do use the translation we (I and other guys)
made. :)

Actually, my intention was to remove localized answers for questions mutt asks.
But before doing that I wanted to make sure no new code for supporting
something more reasonable (I do not know what is `reasonable' here, though :)
appears in mutt.

Let me put it this way: the next translation (for Russian, of course) will not
have those localized answers at all.  If something new appears in mutt, the
translation will be changed with accordance to this new features.

--
Mike



Re: How to move IMAP folders?

1999-09-24 Thread Chris Green

On Thu, Sep 23, 1999 at 04:30:48PM -0400, Brendan Cully wrote:
 On Wednesday, 22 September 1999 at 12:28, Chris Green wrote:
  Is it possible to move IMAP4 folders using mutt?  This is a
  fundamental need with any MUA using IMAP4 as the MUA may be the only
  way one has of interacting with the server.
 
 What do you mean move? Rename? you can tag all messages and copy them to
 another mailbox. In the latest CVS this is quite fast, but in 96.6 it
 requires a download and upload of each message. There is no command to
 delete mailboxes yet.
 
Yes, I suppose rename does much of what I want (I a Unix'ish person so
it's mv to me!).  Will moving meaages to a non-existent IMAP folder
create the folder?  Also, how does one specify a sub-folder, is it
done using the . notation that appears on the folder list to indicate
folders which can hold sub-folders?

-- 
Chris Green ([EMAIL PROTECTED])
  Home: [EMAIL PROTECTED]   Work: [EMAIL PROTECTED]
  WWW: http://www.isbd.co.uk/



Re: Emacs mutt mode?

1999-09-24 Thread Dave Pearson

On Thu, Sep 23, 1999 at 12:36:19PM -0400, David Shaw wrote:

 I remember once-upon-a-time there was some discussion about an emacs "mutt
 mode". I've looked around on the web and found one that seems to work via
 emacsclient, but what I am really looking for is one that pops up a new
 frame to compose in rather than use my other emacs window.

Was it the one at URL:http://astro.utoronto.ca/~reid/mutt/ that you looked
at? Perhaps it is worth letting the author know of your problems and seeing
if they can't help resolve them?

-- 
Take a look in Hagbard's World: | mutt.octet.filter - autoview octet-streams
http://www.acemake.com/hagbard/ | mutt.vcard.filter - autoview simple vcards
http://www.hagbard.demon.co.uk/ | muttrc2html   - muttrc - HTML utility
Free software, including| muttrc.sl - Jed muttrc mode



Re: POP and MTA

1999-09-24 Thread Lars Hecking

[EMAIL PROTECTED] writes:
 Hi again
 
 Thanks for the help on my previous question :)
 I've installed and configured an MTA (qmail) and set it up to masquearade my
 isp's email address sending the mail locally.
 This works showing the correct FROM header while sending with the standard mail
 command. However when sending with mutt it still shows my hostname.
 Any idea?

set hidden_host

-- 
All I ask is a chance to prove that money can't make me happy.



%Z in hdr_format

1999-09-24 Thread Martin Keseg - Sun Slovakia - SE

hi

I'd like to know which "message status flags" are in %Z. I know there is 
r - reply
K - pgp key
P - encrypted message 

but for example I don't know what is b. Is somewhere list with description ?
-- 
Keso
  be smart,
   don't be retard!



Re: How to move IMAP folders?

1999-09-24 Thread Brendan Cully

On Friday, 24 September 1999 at 08:47, Chris Green wrote:
 On Thu, Sep 23, 1999 at 04:30:48PM -0400, Brendan Cully wrote:
  On Wednesday, 22 September 1999 at 12:28, Chris Green wrote:
   Is it possible to move IMAP4 folders using mutt?  This is a
   fundamental need with any MUA using IMAP4 as the MUA may be the only
   way one has of interacting with the server.
  
  What do you mean move? Rename? you can tag all messages and copy them to
  another mailbox. In the latest CVS this is quite fast, but in 96.6 it
  requires a download and upload of each message. There is no command to
  delete mailboxes yet.
  
 Yes, I suppose rename does much of what I want (I a Unix'ish person so
 it's mv to me!).  Will moving meaages to a non-existent IMAP folder
 create the folder?  Also, how does one specify a sub-folder, is it
 done using the . notation that appears on the folder list to indicate
 folders which can hold sub-folders?

Yes, and yes (depending on your parent folder's delimiter, which is
probably static). Well, anyway it usually works to move to, say,
"Mail/Friends/Bill Gates", but there may be servers that don't support
that... Mutt doesn't currently support commands to add/delete/rename
folders, though that shouldn't be that hard to implement. I'm just
trying to do bugfixes right now.

-- 
Brendan Cully [EMAIL PROTECTED] | OLD SKOOL ROOLZ
"I hope I don't win|  .-_|\ 
 The rules say to bring a friend   | / \
 I don't have any" | Perth -*.--._/



interactive options on mailcap

1999-09-24 Thread Eric Smith

Maybe this is not really a mutt question.

I have the following line(s) in my .mailcap which is most useful:

application/zip;/usr/bin/unzip -d/var/tmp/unzipped/ %s
application/x-zip-compressed; /usr/bin/unzip -d/var/tmp/unzipped/ %s

As you see, it unzips a zip attachment automatically when I press on it, now 
is it possible to have the routine prompt me for what destination dir I wish to unzip 
to?

(As a matter of interest Netscape reads this .mailcap as well and when you download it
also unzips on the fly).
-- 
Eric Smith
[EMAIL PROTECTED]

We've had reports that on Linux (Redhat 5.1) on Intel,
undef $scalar will return memory to the system, while on
Solaris 2.6 it won't.  In general, try it yourself and see.
Makes you think.



Re: %Z in hdr_format

1999-09-24 Thread David DeSimone

Martin Keseg - Sun Slovakia - SE [EMAIL PROTECTED] wrote:

 I'd like to know which "message status flags" are in %Z. I know there is 
 r - reply
 K - pgp key
 P - encrypted message 
 
 but for example I don't know what is b. Is somewhere list with description ?

It's in the manual.

There is no "b" status, unless you put it in using "to_chars".

  2.3.1.1.  Status Flags

  In addition to who sent the message and the subject, a short summary
  of the disposition of each message is printed beside the message
  number.  Zero or more of the following ``flags'' may appear, which
  mean:

   D   message is deleted
   K   contains a PGP public key
   M   requires mailcap to view
   N   message is new
   O   message is old
   P   message is PGP encrypted
   r   message has been replied to
   S   message is PGP signed
   !   message is flagged
   *   message is tagged

  Some of the status flags can be turned on or off using

set-flag (default: w)

clear-flag (default: W)

  Furthermore, the following flags reflect who the message is addressed
  to.  They can be customized with the ``$to_chars'' variable.

   +   message is to you and you only
   T   message is to you, but also to or cc'ed to others
   C   message is cc'ed to you
   F   message is from you

-- 
David DeSimone   | "The doctrine of human equality reposes on this:
[EMAIL PROTECTED]   |  that there is no man really clever who has not
Hewlett-Packard  |  found that he is stupid." -- Gilbert K. Chesterson
UX WTEC Engineer |PGP: 5B 47 34 9F 3B 9A B0 0D  AB A6 15 F1 BB BE 8C 44



IMAP folder surfing

1999-09-24 Thread Derek Quinn Wyatt


first of all... mutt... sweet :)  I've been telling myself to use it
for about a year now.  Finally made the switch a couple of days ago.
Very nice.  If only i used ssh port forwarding earlier before i
started punting my shell password all over the net. :)

Ok, obviously i am using IMAP.  I have set the following in mutt 1.0pre2,

set spoolfile={localhost:4143}
set folder="{localhost:4143}Mail"
set postponed="{localhost:4143}Mail/postponed"

   (The localhost:4143 is required for my ssh forwarding.
I forget who posted that in the mailing list, but thx)

The folders work in that i can save things to folders from my INBOX
and they work just fine.  I can also switch to them just fine
(provided i remember their names), however... i can't use '?' to see
the list of them.  I get errno=2 "No such file or directory".

Is this a bonafide bug?  Or is there something i'm missing.

Cheers,
Derek

--
Derek Quinn Wyatt  | [EMAIL PROTECTED]
Research Computing Geek| Office: (416) 978-6452 Office
University of Toronto  | Fax:(416) 978-8221 Fax
Physics Department | Cell:   (416) 676-9847 (emergencies only)
--



Fcc question

1999-09-24 Thread Richard P. Groenewegen

Hi,

I've asked this question before, but I didn't get any answers (no hard
feelings).  I still don't know how to do it.

I want to save some of my outgoing message in two different mailboxes,
so I want to say something like

   Fcc: =outbox, =some_other_box

Of course, this doesn't work (at least not in 0.95.6).  Question is:
what is the correct way to do such a thing?  I've thought about saving
it to one mailbox and then let an every-minute cronjob distribute it
to the correct mailboxes.  But this seems to be an overkill for
something that could have been so easy. 

Eagerly awaiting your reactions,

Richard
-- 
So what's the speed of dark?



Re: yes/no nls

1999-09-24 Thread Marius Gedminas

On Fri, Sep 24, 1999 at 09:22:08AM +0400, Alex Kapranoff wrote:
On Thu, Sep 23, 1999 at 09:36:41PM +0200, Marius Gedminas wrote:
 I'd suggest instead of setting LANG= or LC_ALL=, just select the
 variables you really want (eg LC_COLLATE, LC_CTYPE, maybe LC_MONETARY,
 LC_NUMERIC, and LC_TIME).  This would also work for other locale-aware
 programs that ask yes/no questions.

  But that will also make them speak English to me ;) 

Oops!  I didn't realize that (it's easy to forget as there are no
programs localized for Lithuanian, AFAIK).  Unfortunatelly, there is no
way to separate localized messages from localized yes-no questions (both
use LC_MESSAGES variable).

Best Regards,
Marius Gedminas
-- 
The UNIX philosophy basically involves giving you enough rope to
hang yourself.  And then a couple of feet more, just to be sure.



Re: Fcc question

1999-09-24 Thread Moritz Schulte

On Fri, Sep 24, 1999 Richard P. Groenewegen wrote: 

 Hi,

hi !

[...]
 I want to save some of my outgoing message in two different mailboxes,
 so I want to say something like
 
Fcc: =outbox, =some_other_box
[...]

so, /when/ do you want to save outgoing messages to outbox and when
do you want to save them to some_oher_box ? is it a thing of the
recipient ?
then, you could IMHO do it via a send-hook.

bye !

moritz

-- 
#Moritz Schulte  - [EMAIL PROTECTED] #
#   Registered LINUX-User #13308   #
#   PGP-Key available, encrypted Mail is welcome   #
#   Home: http://hp9001.fh-bielefeld.de/~moritz/   #



Re: Fcc question

1999-09-24 Thread Mikko Hänninen

Moritz Schulte [EMAIL PROTECTED] wrote on Fri, 24 Sep 1999:
 so, /when/ do you want to save outgoing messages to outbox and when
 do you want to save them to some_oher_box ? is it a thing of the
 recipient ?
 then, you could IMHO do it via a send-hook.

I think he wants to save a FCC into *both* mailboxes for every message.
And no, I don't know how to do that. :-(


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 /
Free the mallocs!



Re: IMAP folder surfing

1999-09-24 Thread Brendan Cully


- Original Message -
From: Derek Quinn Wyatt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 24, 1999 11:28 AM
Subject: IMAP folder surfing



 first of all... mutt... sweet :)  I've been telling myself to use it
 for about a year now.  Finally made the switch a couple of days ago.
 Very nice.  If only i used ssh port forwarding earlier before i
 started punting my shell password all over the net. :)

 Ok, obviously i am using IMAP.  I have set the following in mutt 1.0pre2,

 set spoolfile={localhost:4143}

fine.

 set folder="{localhost:4143}Mail"

I don't believe this works in the stable release of mutt.

 set postponed="{localhost:4143}Mail/postponed"

or this.

(The localhost:4143 is required for my ssh forwarding.
 I forget who posted that in the mailing list, but thx)

 The folders work in that i can save things to folders from my INBOX
 and they work just fine.  I can also switch to them just fine
 (provided i remember their names), however... i can't use '?' to see
 the list of them.  I get errno=2 "No such file or directory".

 Is this a bonafide bug?  Or is there something i'm missing.

Several things aren't implemented in the stable release of mutt.
Experimental implementations exist in the development releases, but they are
still in the debugging phase. Folder browsing doesn't work in mutt-1.0pre2,
for instance.



Re: .saves-{pid}-{machine} files

1999-09-24 Thread David DeSimone

Alec Habig [EMAIL PROTECTED] wrote:

 Why is mutt leaving files around in my home dir that look like:
 
  .saves-1074902-budoe.bu.edu

I use Mutt extensively, and I have never seen a file like this created. 
Are you sure it's Mutt?  It seems like some other utility.

I *do* see Mutt leaving files in /tmp all the time, however.

-- 
David DeSimone   | "The doctrine of human equality reposes on this:
[EMAIL PROTECTED]   |  that there is no man really clever who has not
Hewlett-Packard  |  found that he is stupid." -- Gilbert K. Chesterson
UX WTEC Engineer |PGP: 5B 47 34 9F 3B 9A B0 0D  AB A6 15 F1 BB BE 8C 44



Re: Fcc question

1999-09-24 Thread Fairlight

On Fri, Sep 24, 1999 at 10:50:36PM +0300, Mikko Hänninen thus spoke:
 Moritz Schulte [EMAIL PROTECTED] wrote on Fri, 24 Sep 1999:
  so, /when/ do you want to save outgoing messages to outbox and when
  do you want to save them to some_oher_box ? is it a thing of the
  recipient ?
  then, you could IMHO do it via a send-hook.
 
 I think he wants to save a FCC into *both* mailboxes for every message.
 And no, I don't know how to do that. :-(

The solution I would use would be to do something like the following:

my_hdr X-OutboundMultiStore: mailbox_target_name
# or some other unique header

And then just cc: yourself on every message and use .procmail and it's "c"
option to do multiple saves based on whatever your major outbound folder
is, and then one based on a script that would parse that line and append to
that target folder...

Slightly convoluted, but more efficient than a cron job.  No, I don't have
a handy procmail recipe already written but it shouldn't be hard.

mark-
-- 
Fairlight-   |||[EMAIL PROTECTED]  | Fairlight Consulting
  __/\__  ||| "I'm talking for free...   | http://www.fairlite.com
  |||   It's a New Religion..."  | [EMAIL PROTECTED]
\/||| PGP Public Key available via finger @iglou, or Key servers



Re: Fcc question

1999-09-24 Thread Richard P. Groenewegen

  I think he wants to save a FCC into *both* mailboxes for every message.
  And no, I don't know how to do that. :-(

 The solution I would use would be to do something like the following:
 
 my_hdr X-OutboundMultiStore: mailbox_target_name
 # or some other unique header
 
 And then just cc: yourself on every message and use .procmail and it's "c"
 option to do multiple saves based on whatever your major outbound folder
 is, and then one based on a script that would parse that line and append to
 that target folder...

I thought about this, and I would know how to write such a .procmail,
but still it would seem that there should have been some easy way to
do this from mutt.  I can also send messages to multiple persons, so
why can't I use multiple Fcc-addresses (mailboxes)?

Richard
-- 
So what's the speed of dark?



GnuPG wrapper update (PGP 2 compatibility)

1999-09-24 Thread Gero Treuner

Hi!

I went into the PGP data formats and managed to persuade GnuPG
to create signed and encrypted messages which can be verified and
read by PGP 2.6.x versions - really common in the German university
area, where a certification infrastructure based on this software
is currently created.

The new script doesn't use a separate gpg-options file and
works fully automatically: It encrypts PGP 2 compatible if all used
keys are of type RSA, and can be configured to use RSA when signing
only. Included is short installation information and a tutorial what
steps are required to manually sign-and-encrypt files for PGP 2.

Script is still available at
  http://muppet.faveve.uni-stuttgart.de/~gero/gpg-2comp.tar.gz
  http://muppet.faveve.uni-stuttgart.de/~gero/gpg-2comp.tar.gz.asc

GnuPG 1.0.0 (which is really nice IMHO) resides here:
  http://www.gnupg.org/

Maybe it's worth adding a note somewhere on the mutt www site.


Gero

 PGP signature


Re: Fcc question

1999-09-24 Thread Fairlight

On Fri, Sep 24, 1999 at 11:42:25PM +0200, Richard P. Groenewegen thus spoke:
   I think he wants to save a FCC into *both* mailboxes for every message.
   And no, I don't know how to do that. :-(
 
  The solution I would use would be to do something like the following:
  
  my_hdr X-OutboundMultiStore: mailbox_target_name
  # or some other unique header
  
  And then just cc: yourself on every message and use .procmail and it's "c"
  option to do multiple saves based on whatever your major outbound folder
  is, and then one based on a script that would parse that line and append to
  that target folder...
 
 I thought about this, and I would know how to write such a .procmail,
 but still it would seem that there should have been some easy way to
 do this from mutt.  I can also send messages to multiple persons, so
 why can't I use multiple Fcc-addresses (mailboxes)?

Script:

#!/bin/csh -f
#
# define storage directory
set dir="/home/someuser/folders/"
# set temp filename
set tmp="/tmp/$$.multistore"
#
# save temp file with email
cat -  ${tmp}
#
# get secondary filename that could have been set by hook, etc
set filename=`grep "^X-OutboundMultiStore:" ${tmp}`
#
# set full filename
set fullpath="${dir}${filename}"
#
# save mail to second folder
cat ${tmp}  ${fullpath}
#
# remove temp file
rm -f ${tmp}
#
# Elvis has left the building
exit 0
# EOF

That's the script.  Assume we call it "multistore"...here's the procmail:

# recipe
:0
* ^From:.*[EMAIL PROTECTED]
* ^X-OutboundMultiStore:
{
 :0c:
 /home/someuser/folders/defaultsavefile

 :0
 | /path/to/multistore
}
# end recipe

Untested, but it's based on one of the first examples on the procmailex man
page, so I see no problems.

In short, the recipe's beginning checks not only for the special header,
but also for who it's from...so that it can only be triggered if you set
that header (cuts down on malicious abuse).  Then the first part of the
disposition block saves to the default outbound file, and makes a copy of
the messge to pass on down to be piped to the second disposition, which is
a pipe to the script, which does the rest.

The procmailex example didn't use a second : to lock the file saved to, but
I think the man page was wrong...you should always check for locks when
saving to a folder.  None is needed for the pipe.

Enjoy.  Think I'll keep this around myself, just in case.  ;)

mark-

 -- 
 So what's the speed of dark?

Faster than the speed of light, since drkness spreads faster than light
across our society.  :(

A crappy proof for FTL travel.  8^)

mark-
-- 
Fairlight-   |||[EMAIL PROTECTED]  | Fairlight Consulting
  __/\__  ||| "I'm talking for free...   | http://www.fairlite.com
  |||   It's a New Religion..."  | [EMAIL PROTECTED]
\/||| PGP Public Key available via finger @iglou, or Key servers



Re: interactive options on mailcap

1999-09-24 Thread Brian Salter-Duke

On Fri, Sep 24, 1999 at 04:47:00PM +0200, Eric Smith wrote:
 Maybe this is not really a mutt question.
 
 I have the following line(s) in my .mailcap which is most useful:
 
 application/zip;  /usr/bin/unzip -d/var/tmp/unzipped/ %s
 application/x-zip-compressed; /usr/bin/unzip -d/var/tmp/unzipped/ %s
 
 As you see, it unzips a zip attachment automatically when I press on it, now 
 is it possible to have the routine prompt me for what destination dir I wish to 
unzip to?

Replace unzip with a script that asks for the file name and then calls
unzip. What is unzip? gunzip from gzip? I have several similar scripts
but not one that does this exactly.
 
 (As a matter of interest Netscape reads this .mailcap as well and when 
 you download it also unzips on the fly).

If you want this fine. If you do not, have your mutt mailcap somewhere
that Netscape does not look. I use ~/.mutt/mailcap and point to this
with use mailcap in .muttrc. Netscape, lynx etc sometimes do not like
copiousoutput in mailcap lines.
 -- 
 Eric Smith
 [EMAIL PROTECTED]
 
 We've had reports that on Linux (Redhat 5.1) on Intel,
 undef $scalar will return memory to the system, while on
 Solaris 2.6 it won't.  In general, try it yourself and see.
 Makes you think.

-- 
Associate Professor Brian Salter-Duke (Brian Duke)
Chemistry, Faculty of Science, IT and Education, Northern Territory University,
  Darwin, NT 0909, Australia.  Phone 08-89466702. Fax 08-89466847
[EMAIL PROTECTED]  http://www.smps.ntu.edu.au/school/compchem.html



Re: interactive options on mailcap

1999-09-24 Thread Brian Salter-Duke

On Fri, Sep 24, 1999 at 04:47:00PM +0200, Eric Smith wrote:
 Maybe this is not really a mutt question.
 
 I have the following line(s) in my .mailcap which is most useful:
 
 application/zip;  /usr/bin/unzip -d/var/tmp/unzipped/ %s
 application/x-zip-compressed; /usr/bin/unzip -d/var/tmp/unzipped/ %s
 
 As you see, it unzips a zip attachment automatically when I press on it, now 
 is it possible to have the routine prompt me for what destination dir I wish to 
unzip to?
 

This does exactly what you asked for and is much shorter than the one I
posted a while back.

#!/usr/local/bin/perl
$file = $ARGV[0];
$base = $file;
$base =~ s?\.gz??;
print "Type the directory name where you wish to save the file: ";
$dir = STDIN;
chop($dir);
system "/usr/local/bin/gunzip $file";
system "cp $base $dir";
unlink $base;

Cheers, Brian. 
-- 
Associate Professor Brian Salter-Duke (Brian Duke)
Chemistry, Faculty of Science, IT and Education, Northern Territory University,
  Darwin, NT 0909, Australia.  Phone 08-89466702. Fax 08-89466847
[EMAIL PROTECTED]  http://www.smps.ntu.edu.au/school/compchem.html



save-hook

1999-09-24 Thread Derek Quinn Wyatt


save-hook is an excellent feature (as are all the hooks) but is there
a way to specify another field to match on?  For instance, this list
is something i would like to match.  When i get something from this
mailing list the From: field is filled with the author of the mail.  I
would like to, in cases like this, match the To: field and specify the
save box that way.  There are a lot of situations where this would be
nice to have so i figure it's got to be possible.

Cheers,
D

-- 
Derek Quinn Wyatt  | [EMAIL PROTECTED]
Research Computing Geek| Office: (416) 978-6452 Office
University of Toronto  | Fax:(416) 978-8221 Fax
Physics Department | Cell:   (416) 676-9847 (emergencies only)



Re: save-hook

1999-09-24 Thread Mikko Hänninen

Derek Quinn Wyatt [EMAIL PROTECTED] wrote on Fri, 24 Sep 1999:
 would like to, in cases like this, match the To: field and specify the
 save box that way.  There are a lot of situations where this would be
 nice to have so i figure it's got to be possible.

How about something like...

  save-hook "~t mutt-users@mutt\.org" +mutt

Would that work for you?  (Untested but it ought to work.)


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 /
   Procrastinate now!