Re: mutt / resending ?

2002-06-07 Thread Nico Schottelius

Cedric Duval [Sun, Jun 02, 2002 at 12:00:39PM +0200]:
 Nico Schottelius wrote:
  How can I resend messages from outgoing (Maildir) ?
  I had a big problem with the mailserver, it deleted all outgoing mails.,
  Now I need to resend about 40 mails, howto do that mostly easy ?
 
 Just tag all these mails, hit tag-prefix (';') and use the bounce
 function ('b').

thanks for your help!

-- 
Nico Schottelius

Please send your messages pgp-signed or pgp-encrypted.
If you don't know what pgp is visit www.gnupg.org.
(public pgp key: ftp.schottelius.org/pub/familiy/nico/pgp-key)



msg28713/pgp0.pgp
Description: PGP signature


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: mutt / resending ?

2002-06-07 Thread David T-G

Nico, et al --

...and then Nico Schottelius said...
% 
% Cedric Duval [Sun, Jun 02, 2002 at 12:00:39PM +0200]:
%  Nico Schottelius wrote:
%   How can I resend messages from outgoing (Maildir) ?
%   I had a big problem with the mailserver, it deleted all outgoing mails.,
%   Now I need to resend about 40 mails, howto do that mostly easy ?
%  
%  Just tag all these mails, hit tag-prefix (';') and use the bounce
%  function ('b').
% 
% thanks for your help!

Note that when you tag-bounce all of the messages will go to the same
address.  If you have messges to Alice, Bob, and Carol and you tag them
all and hit ;b (or, if you have $auto_tag set, just b) and fill in Bob's
address, they will *all* go to Bob.

Since they're in a Maildir, you already have them separated (unlike
mbox).  It might be easiest to have a little for loop that goes thru the
dropped mails and re-hands each one INDIVIDUALLY to sendmail.


% 
% -- 
% Nico Schottelius
% 
% Please send your messages pgp-signed or pgp-encrypted.

This may sound odd, coming from me (an always-signer), but why request
signed *or* encrypted?  I can see why you'd be interested in signed mail,
but that would be an all-the time thing.  Similarly, I can see why you'd
be interested in encrypted mail, but that also would be an all-the-time
thing.  The wording of your request makes it sound as though either
signing or encryption meets your needs.  If that's the case, then it
sounds as though you're just being a pgp/gpg advocate, which is good, but
which may need clarification for the rest of the world...


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg28716/pgp0.pgp
Description: PGP signature


mbox files

2002-06-07 Thread Mike Arrison

Hello Mutters,
I run mutt in a few different locations.  I've gathered a few
different sent-mail mbox files that I'd like to combine into one.  Would
cat'ing one onto another do it?  Is mutt smart enough to still sort
them?

  -Mike Arrison



Re: mbox files

2002-06-07 Thread David T-G

Mike --

...and then Mike Arrison said...
% 
% Hello Mutters,

Hello!


% I run mutt in a few different locations.  I've gathered a few
% different sent-mail mbox files that I'd like to combine into one.  Would
% cat'ing one onto another do it?  Is mutt smart enough to still sort
% them?

Sure.  The important bits in an mbox file are the ^From_ line (that's the
common notation for a beginning-of-line and From and then a space, and
it's importantly different from ^From:).  Since you have a ^From_ line
for every message (and we can say that because your mbox files currently
work), a simple

  cat mb1 mb2 mb3  mboxall

will maintain that structure.  There's really nothing different except
the number of messages in the resultant file -- and one thing you'll find
about mutt, if you haven't already, is that very, very large numbers are
no problem :-)

You will note that the existing mbox files probably aren't really sorted
like you see them, anyway; you can view the messages in unsorted order by
going to the index and hitting 'o' (for s'o'rt) and then 'u'.  It's no
different in the big result mbox.


% 
%   -Mike Arrison


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg28718/pgp0.pgp
Description: PGP signature


Mutt/Cygwin shortcomings

2002-06-07 Thread Thomas Baker

Dear all,

I have been working with Mutt/Cygwin in the hopes that I
would eventually move to a Linux machine, but it looks like
I'm stuck for awhile on Win2000, so I thought I'd see if
anyone else has solved any of its shortcomings with respect
to Mutt/Linux.  The ones that bother me the most are:

1) mailcap does not seem to work at all (as V.Suresh recently
   confirmed);

2) no Urlview or functional equivalent;

3) no Muttprint or functional equivalent;

4) would have said no Procmail, but that appeared in the
   Cygwin distribution about three or four weeks ago.
   However, I haven't found any installation instructions
   for Procmail/Cygwin.

Do any Cygwin users out there have tips about any of the above?

My constraint is that I am a non-programmer and will only
compile from sources if forced into a tight corner, and none
of these missing functionalities actually make it impossible
for me to work...

Tom

-- 
Dr. Thomas Baker[EMAIL PROTECTED]
Institutszentrum Schloss Birlinghoven  mobile +49-171-408-5784
Fraunhofer-Gesellschaft  work +49-30-8109-9027
53754 Sankt Augustin, Germany fax +49-2241-14-2619



delete messages to trash - was 3 quick questions

2002-06-07 Thread Kevin Coyner

On Fri, Jun 07, 2002 at 08:18:37AM -0400, darren chamberlain wrote:
 * 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.

Wow!  This is great and ..helpful is a bit of an understatement.
And even better, I'm starting to understand some of this stuff (the
hooks), although I must admit the push statement will take some more
studying ...!

Thanks, Kevin

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

-- 

Kevin Coyner
mailto: [EMAIL PROTECTED]
GnuPG key: 1024D/8CE11941



Re: Mutt/Cygwin shortcomings

2002-06-07 Thread David T-G

Tom --

Funny...  I've been seeing mutt-only questions on the cygwin list and
trying to get those over here, and now this appears to have some cygwin
elements and I don't see you over there.  mutt-users, cygwin, and gnupg
seem to have a large subset of common work :-)

...and then Thomas Baker said...
% 
% Dear all,
% 
% I have been working with Mutt/Cygwin in the hopes that I
% would eventually move to a Linux machine, but it looks like

Yay! :-)


% I'm stuck for awhile on Win2000, so I thought I'd see if

Boo! :-(


% anyone else has solved any of its shortcomings with respect
% to Mutt/Linux.  The ones that bother me the most are:
...

I'm afraid I don't have any answers for your mailcap, urlview, or
muttprint questions.  Best of luck there.


% 4) would have said no Procmail, but that appeared in the
%Cygwin distribution about three or four weeks ago.
%However, I haven't found any installation instructions
%for Procmail/Cygwin.

It should be pretty easy: you type setup and then install procmail :-)
Has it given you any fits, or did you simply not know that it's available
through setup?


% 
% Do any Cygwin users out there have tips about any of the above?

I'm sure the cygwin list can provide you some help :-)


% 
% My constraint is that I am a non-programmer and will only
% compile from sources if forced into a tight corner, and none
% of these missing functionalities actually make it impossible
% for me to work...

You shouldn't have to do any compiling for procmail; setup should install
it for you (barring its other problems at the moment, none of which seem
to actually be fatal if you're a little patient).  You'll find it under
the 'Mail' section when setup pulls down a new copy of setup.ini for you.


% 
% Tom

HTH  HAND


:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg28721/pgp0.pgp
Description: PGP signature


ask-from quadoption was 3 quick questions

2002-06-07 Thread Kevin Coyner

On Fri, Jun 07, 2002 at 08:13:40AM -0400, darren chamberlain wrote:
 * 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)

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.

Kevin
 



Re: patching (was Re: ask-from quadoption was 3 quick questions)

2002-06-07 Thread David T-G

Kevin --

...and then Kevin Coyner said...
% 
% On Fri, Jun 07, 2002 at 08:13:40AM -0400, darren chamberlain wrote:
...
%  A few months ago, some (sorry, I don't remember who) posted a patch that
...
%  1.3.28 (haven't tried 1.4 yet). It's attached.
%  
%  (darren)
% 
% 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

Patching is really quite simple.  If you have the patch program (test by
running

  patch --help

and looking for sensible results), then a simple save of the patch to
some build dir and a

  cd $your_build_dir
  tar xpfz mutt-1.4i.tar.gz
  cd mutt-1.4
  patch -p0  ../name_of_patch
  ./configure ...
  make ...

where -p0 is probably useful but might not be necessary and then you run
the configure and make with whatever arguments you usually provide is all
it takes.

To see patching in action, surf over to 

  http://mutt.justpickone.org/mutt-build-cocktail/

and take a look at the 00.makeme.sh script; that pulls together my entire
patch cocktail in one step.


HTH  have fun!

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg28723/pgp0.pgp
Description: PGP signature


Re: Mutt/Cygwin shortcomings

2002-06-07 Thread Stefan Friedle

Hi Tom,

Thomas Baker wrote:
 4) would have said no Procmail, but that appeared in the
Cygwin distribution about three or four weeks ago.
However, I haven't found any installation instructions
for Procmail/Cygwin.

   I use fetchmail to fetch mail from my POP account and use procmail to 
deliver it to my local maildir (~/Maildir/inbox/).  All with cygwin on 
Windows NT.  In my .fetchmailrc there is a line:

mda: 'procmail -m D:/home/.procmailrc'

   which calls procmail and passes the filename of my .procmailrc to it. 
  Without this procmail fails, telling me that 
/var/spool/mail/Administrator could not be created -- but I don't use 
'Administrator' as my login name ...

   In my .procmailrc I have one rule to deliver all mail to my inbox:

MAILDIR=D:/home/Maildir

:0
$MAILDIR/inbox/


   HTH

   -Stefan




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: Mutt/Cygwin shortcomings

2002-06-07 Thread Olaf Foellinger

On Fri, Jun 07, 2002 at 02:56:47PM +0200, Thomas Baker wrote:
 Dear all,
 
 I have been working with Mutt/Cygwin in the hopes that I
 would eventually move to a Linux machine, but it looks like
 I'm stuck for awhile on Win2000, so I thought I'd see if
 anyone else has solved any of its shortcomings with respect
 to Mutt/Linux.  The ones that bother me the most are:
 
 1) mailcap does not seem to work at all (as V.Suresh recently
confirmed);

Works here partially with the following entries:

text/html   ; lynx -dump -force_html %s ; copiousoutput
text/htm; lynx -dump -force_html %s ; copiousoutput
message/html; lynx -dump -force_html %s ; copiousoutput
message/htm ; lynx -dump -force_html %s ; copiousoutput
application/pgp-sign; less %s
text/html; w3m -T text/html
text/html; w3m -T text/html -dump; copiousoutput
application/msword; winword %s
application/rtf; winword %s
application/msexcel; excel %s
application/vnd.ms-excel; excel %s
application/x-msexcel; excel %s
application/ppt; powerpnt %s
application/pps; powerpnt %s
application/pdf; acrobat %s
application/x-mspowerpoint; powerpnt %s
application/vnd.ms-powerpoint; powerpnt %s
application/vnd.ms-project; winproj %s
application/x-tar-gz; tar -tvzf %s; copiousoutput
application/x-tar; tar -tvf %s; copiousoutput
application/x-zip-compressed; zipinfo %s; copiousoutput
application/zip; zipinfo %s; copiousoutput
application/octet-stream; mutt.octet.filter %s; copiousoutput

winword is the following script

$ less /usr/local/bin/winword
#!/bin/bash

OfficeDrive=$(cygpath -u C:)
DefaultOfficeDrive=$(cygpath -u $SYSTEMDRIVE)
OfficeDrive=${OfficeDrive:-$DefaultOfficeDrive}
OfficeDir=$OfficeDrive/Programme/Microsoft Office/Office

DefaultTempDir=$(cygpath -u $TEMP)
TempDir=${TempDir:-$DefaultTempDir}
TempFile=$TempDir/$(basename $1)

Program=$(basename $0)
File=$(cygpath -w $TempFile)

mv $1 $TempFile
($OfficeDir/$Program $File; rm -f $TempFile)

winproj, excel are the same script. acrobat follows

$ less /usr/local/bin/acrobat
#!/bin/bash

OfficeDrive=$(cygpath -u D:)
DefaultOfficeDrive=$(cygpath -u $SYSTEMDRIVE)
OfficeDrive=${OfficeDrive:-$DefaultOfficeDrive}
OfficeDir=$OfficeDrive/Programme/Adobe/Acrobat4.0/Acrobat

DefaultTempDir=$(cygpath -u $TEMP)
TempDir=${TempDir:-$DefaultTempDir}
TempFile=$TempDir/$(basename $1)

Program=$(basename $0)
File=$(cygpath -w $TempFile)

mv $1 $TempFile
($OfficeDir/$Program $File; rm -f $TempFile)

 
 2) no Urlview or functional equivalent;

same here.

 3) no Muttprint or functional equivalent;

in .muttrc 

set print_command=$HOME/bin/print

$ cat ~/bin/print
#!/bin/sh
cat  .printout
lpr -S server -P printer .printout

where server is a windows print server with lpd enabled.

 4) would have said no Procmail, but that appeared in the
Cygwin distribution about three or four weeks ago.
However, I haven't found any installation instructions
for Procmail/Cygwin.

One can use fetchmail to fetch mail from a server and pipe them to
procmail.  Examples see on http://unixmail-w32.sourceforge.net/.


Gruss Olaf Föllinger

--
Olaf Föllinger
Leiter Fachbereich IT
S.E.S.A. Software und Systeme AG

Alt-Moabit 91a
D-10559 Berlin
Germany
Tel:   +49 30 390722 -291
Fax:   +49 30 390722 -222
Mobil: +49 173 6227080
http://www.sesa.de
mailto: [EMAIL PROTECTED]




Re: ask-from quadoption was 3 quick questions

2002-06-07 Thread Kevin Coyner

On Fri, Jun 07, 2002 at 09:37:12AM -0400, darren chamberlain wrote:
 * 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

Question:  If I've installed Mutt-1.4i, do I need to go into the patch
source and change all references to mutt-1.3.27 so that they read
mutt-1.4i instead?

 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)

As always, many thanks.  This group is great.
Kevin

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

-- 

Kevin Coyner
mailto: [EMAIL PROTECTED]
GnuPG key: 1024D/8CE11941



Re: ask-from quadoption was 3 quick questions

2002-06-07 Thread Ken Weingold

On Fri, Jun  7, 2002, Kevin Coyner wrote:
  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
 
 Question:  If I've installed Mutt-1.4i, do I need to go into the patch
 source and change all references to mutt-1.3.27 so that they read
 mutt-1.4i instead?

No, that's why you use 'patch -p1', so it ignores the 'mutt-1.3.27/'
part of the path in the patch.


-Ken



Re: Color with folder-hooks and status changes

2002-06-07 Thread Joseph Ishac

 I beleive the color used depends on the *last* matching color
 index statement, so you might have to include the ~D, ~F, and ~T
 ones in your folder-hook *after* the ~f one.

No amount of reordering seemed to solve the problem, I've tried N
different combinations (likely missing the right one of course :)

However, I have run across something that does seem to work well.

The 5 commands:
folder-hook . 'color index blue black !((! ~f jishac)|~T|~F|~D)'
folder-hook =sent 'color index white black !((! ~f jishac)|~T|~F|~D)'
color index black red ~D
color index red black ~F
color index magenta black ~T

produce the desired effect.  Mind you I didn't know how to AND things
together (and a simple A  B wasn't working) so I simply applied good
ol' DeMorgan's Law to ((~f jishac)(! ~T)(! ~F)(! ~D))

If there is a more elegant solution, feel free to share ;)

Now if only the command:
color indicator red white ~F

would actually be possible ...

-Joseph



Re: Mutt/Cygwin shortcomings

2002-06-07 Thread Olaf Foellinger

On Fri, Jun 07, 2002 at 04:29:35PM +0200, Thomas Baker wrote:
 Hi Olaf,
 
 Many thanks for the helpful advice!

Please rply to the list since others might be interested too in the
answers.

 On Fri, Jun 07, 2002 at 03:31:43PM +0200, Olaf Foellinger wrote:
   1) mailcap does not seem to work at all (as V.Suresh recently
  confirmed);
  
  Works here partially with the following entries:
  
  text/html   ; lynx -dump -force_html %s ; copiousoutput
  text/htm; lynx -dump -force_html %s ; copiousoutput
  message/html; lynx -dump -force_html %s ; copiousoutput
 ..
 
 What version of Mutt are you using? I am using Mutt 1.2.5i (2000-07-28),
 the current version at cygwin.com, but had concluded that this version
 does not support mailcap yet...  I was advised to compile Mutt 1.3.x but
 this is beyond my skill level.

Word, PDF and Powerpoint does work here with 1.2.5i. I use 1.3.28i, 1.4
is available.

   3) no Muttprint or functional equivalent;
  
  in .muttrc 
  
  set print_command=$HOME/bin/print
  
  $ cat ~/bin/print
  #!/bin/sh
  cat  .printout
  lpr -S server -P printer .printout
  
  where server is a windows print server with lpd enabled.
 
 Hmm.  Which lpr do you use?  The Cygwin lpr doesn't have an
 -S option.  I have:
 
   /usr/bin/lpr
   /bin/lpr
   /cygdrive/c/winnt/system32/lpr
 
 Aha...!  I see the WINNT lpr does not accept stdin input, but if
 I write the enscript output to a file and run WINNT lpr on that
 file, it does work.  At last!  Well, at least I can write a script
 to automate this workaround...

The script is the workaround for the windows lpr.

  One can use fetchmail to fetch mail from a server and pipe them to
  procmail.  Examples see on http://unixmail-w32.sourceforge.net/.
 
 Hmm, is it in the documentation downloaded with the binaries?
 I don't see any other places it could be, and the procmail
 link just leads to procmail.org...?

Yes.


Gruss Olaf Föllinger

--
Olaf Föllinger
Leiter Fachbereich IT
S.E.S.A. Software und Systeme AG

Alt-Moabit 91a
D-10559 Berlin
Germany
Tel:   +49 30 390722 -291
Fax:   +49 30 390722 -222
Mobil: +49 173 6227080
http://www.sesa.de
mailto: [EMAIL PROTECTED]




Re: 3 quick questions

2002-06-07 Thread Thorsten Haude

Hi,

* darren chamberlain [EMAIL PROTECTED] [02-06-07 14:18]:
I have been using this setup for over a year, and it works great:
[Macro-based trash function]
You should have a look at Cedric's patch. I used something similar to
your setup and was annoyed every time =trash appeared in the folder
history.

Thorsten
-- 
Guns don't protect freedom, people protect freedom.



Re: Mailfilter

2002-06-07 Thread Thorsten Haude

Hi,

* Rocco Rutte [EMAIL PROTECTED] [02-06-07 08:02]:
* Thorsten Haude [02-06-07 06:14:30 +0200] wrote:
[ Perl::Mail::Audit ]
 It stops by default, just like Procmail does, but you can
 change that.  I make backups at the beginning of my
 ruleset:
 $mail-accept({noexit = 1}, $backup);
Sounds good. If you don't mind, let me ask one more question
(since it's absolutely essential): what about reading mail
back from a pipe? For me, it's necessary to change stuff
within a pipe (Perl, mostly ;-) and then process it as usual.

I hope I don't have to pipe mail through my filter and than
pipe it into another instance of Mail::Audit...
There is only a pipe() that would leave Mail::Audit. Yes, you would
have to re-enter it yourself.
Shouldn't be too difficult to add this though.

Thorsten
-- 
There is no drug known to man which becomes safer when its
production and distribution are handed over to criminals.



Re: Color with folder-hooks and status changes

2002-06-07 Thread John Iverson

* On Fri, 07 Jun 2002, Joseph Ishac wrote:

 No amount of reordering seemed to solve the problem, I've tried
 N different combinations (likely missing the right one of
 course :)

What I was originally thinking was not just reordering what you
had, but also moving the ~D, ~F, and ~T into your folder-hook --
something like (using ~P for from me):

folder-hook . 'color index blue black ~P; \
   color index black red ~D; \
   color index red black ~F; \
   color index magenta black ~T'

folder-hook =sent 'color index white black ~P; \
   color index black red ~D; \
   color index red black ~F; \
   color index magenta black ~T'

Or did you try that?

 However, I have run across something that does seem to work well.
 
 The 5 commands:
 folder-hook . 'color index blue black !((! ~f jishac)|~T|~F|~D)'
 folder-hook =sent 'color index white black !((! ~f jishac)|~T|~F|~D)'
 color index black red ~D
 color index red black ~F
 color index magenta black ~T
 
 produce the desired effect.  Mind you I didn't know how to AND
 things together (and a simple A  B wasn't working) so I simply
 applied good ol' DeMorgan's Law to ((~f jishac)(! ~T)(!
 ~F)(! ~D))
 
 If there is a more elegant solution, feel free to share ;)

That seems like a pretty good solution to me (maybe use the ~P as
above?).

 Now if only the command:
 color indicator red white ~F
 
 would actually be possible ...

See the indicator color question thread from a few days ago ...

-- 
John



Re: Color with folder-hooks and status changes

2002-06-07 Thread Joseph Ishac

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).

Thanks again for the help.

-Joseph

  No amount of reordering seemed to solve the problem, I've tried
  N different combinations (likely missing the right one of
  course :)
 
 What I was originally thinking was not just reordering what you
 had, but also moving the ~D, ~F, and ~T into your folder-hook --
 something like (using ~P for from me):
 
 folder-hook . 'color index blue black ~P; \
color index black red ~D; \
color index red black ~F; \
color index magenta black ~T'
 
 folder-hook =sent 'color index white black ~P; \
color index black red ~D; \
color index red black ~F; \
color index magenta black ~T'
 
 Or did you try that?
 
  However, I have run across something that does seem to work well.
  
  The 5 commands:
  folder-hook . 'color index blue black !((! ~f jishac)|~T|~F|~D)'
  folder-hook =sent 'color index white black !((! ~f jishac)|~T|~F|~D)'
  color index black red ~D
  color index red black ~F
  color index magenta black ~T
  
  produce the desired effect.  Mind you I didn't know how to AND
  things together (and a simple A  B wasn't working) so I simply
  applied good ol' DeMorgan's Law to ((~f jishac)(! ~T)(!
  ~F)(! ~D))
  
  If there is a more elegant solution, feel free to share ;)
 
 That seems like a pretty good solution to me (maybe use the ~P as
 above?).
 
  Now if only the command:
  color indicator red white ~F
  
  would actually be possible ...
 
 See the indicator color question thread from a few days ago ...
 
 -- 
 John



trash function (was 3 quick questions)

2002-06-07 Thread Kevin Coyner

On Fri, Jun 07, 2002 at 07:32:58PM +0200, Thorsten Haude wrote:
 * darren chamberlain [EMAIL PROTECTED] [02-06-07 14:18]:
 I have been using this setup for over a year, and it works great:
 [Macro-based trash function]
 You should have a look at Cedric's patch. I used something similar to
 your setup and was annoyed every time =trash appeared in the folder
 history.

What is a folder history?  I couldn't find it in the Mutt manual,
and interestingly, a Google search on [folder history and mutt] turns
up one result:  History of Shania Twain.  Figure that!

Kevin

 
 Thorsten
 -- 



Re: trash function (was 3 quick questions)

2002-06-07 Thread Mike Schiraldi

 What is a folder history?

Press c and then up.


-- 
Mike Schiraldi
VeriSign Applied Research



msg28736/pgp0.pgp
Description: PGP signature


Re: trash function (was 3 quick questions)

2002-06-07 Thread David Champion

* On 2002.06.07, in 20020607193705.GC30963@sumida,
*   Kevin Coyner [EMAIL PROTECTED] wrote:
 
 What is a folder history?  I couldn't find it in the Mutt manual,
 and interestingly, a Google search on [folder history and mutt] turns
 up one result:  History of Shania Twain.  Figure that!

The edit line (at the bottom, where you type things in) maintains
several histories. There's one for patterns, and one for folders. If
you press T to tag things, and press the key bound to history-up
(up-arrow, usually), it'll show you the last pattern you used. Same idea
for folders; if you change folders, then change again, up-arrow will
show you the last folder you changed to.

If you set up hooks to store things into =trash, then =trash will
appear in the folder history. The trash-folder patch just knows about
the trash folder, so it doesn't show up in folder history. It's same
same principle as with the postponed folder: you can change to it with
change-folder, but if you use the built-in message recall, it doesn't
show up in folder history.

-- 
 -D.[EMAIL PROTECTED]NSITUniversity of Chicago



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.



urlview

2002-06-07 Thread Kevin Coyner


I just installed urlview and gave it a try on a message that I knew to
have a few links.  Sure enough it listed the links and gave an arrow
that allowed me to select one of the links.  When I selected, it
rewrote the link down at the bottom of the screen.  But after that,
nothing, regardless of what keys I hit.  I presumed that urlview would
harvest the links in an email, display them, let me select one, and
then take me to that page in a browser such as lynx.  Am I incorrect
in assuming that it does all this, or did I screw up something in the
configuration?

Thanks, Kevin



Re: urlview

2002-06-07 Thread David T-G

Kevin --

...and then Kevin Coyner said...
% 
% I just installed urlview and gave it a try on a message that I knew to
% have a few links.  Sure enough it listed the links and gave an arrow
% that allowed me to select one of the links.  When I selected, it
% rewrote the link down at the bottom of the screen.  But after that,
% nothing, regardless of what keys I hit.  I presumed that urlview would

Did you hit return again?  Interestingly enough, you have to hit the
enter key twice.

If you did, then you should look into your .urlview file to see what it's
doing.  Here's mine, with various netscape examples commented out because
I have screen fire up a new window running lynx:

  #
  # Sample urlview(1) configuration file
  #

  # regular expression to use to match URLs
  REGEXP ht|f)tp)|mailto):(//)?[^ \t]*|www\.[-a-z0-9.]+)[^ .,;\t]


  # command to invoke for selected URL
  #COMMAND netscape -remote 'openURL(%s)'
  #COMMAND /usr/bin/screen url_handler.sh %s
  #COMMAND url_handler.sh %s
  #COMMAND url_handler.sh
  COMMAND /usr/bin/screen url_handler.sh

You should have something like at least one of those in yours, perhaps
also including the REGEXP (I forget whether REGEXP is necessary or if
I've simply tweaked the default).


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg28740/pgp0.pgp
Description: PGP signature


Re: urlview

2002-06-07 Thread Kevin Coyner

David ---

On Fri, Jun 07, 2002 at 03:11:24PM -0500, David T-G wrote..
 Did you hit return again?  Interestingly enough, you have to hit the
 enter key twice.
 
 If you did, then you should look into your .urlview file to see what it's
 doing.  Here's mine, with various netscape examples commented out because
 I have screen fire up a new window running lynx:
 
   #
   # Sample urlview(1) configuration file
   #
 
   # regular expression to use to match URLs
   REGEXP ht|f)tp)|mailto):(//)?[^ \t]*|www\.[-a-z0-9.]+)[^ .,;\t]
 
 
   # command to invoke for selected URL
   #COMMAND netscape -remote 'openURL(%s)'
   #COMMAND /usr/bin/screen url_handler.sh %s
   #COMMAND url_handler.sh %s
   #COMMAND url_handler.sh
   COMMAND /usr/bin/screen url_handler.sh

Several things:  the man for urlview said there was a default config
file in /etc, but there wasn't, so that was part of the problem.  So I
took the two key lines from your .urlview and created my own .urlview
in my home directory.  And like you suggested, I hit enter twice.

Now I get the following:  url_handler.sh: file or directory not found.

Where do I find a url_handler.sh?  And more importantly, what is it?

Thanks for your patience, as I suspect I'm trying it.

Kevin

 
 You should have something like at least one of those in yours, perhaps
 also including the REGEXP (I forget whether REGEXP is necessary or if
 I've simply tweaked the default).
 
 
 HTH  HAND
 
 :-D
 -- 


-- 

Kevin Coyner
mailto: [EMAIL PROTECTED]
GnuPG key: 1024D/8CE11941



Re: urlview

2002-06-07 Thread David T-G

Kevin -

...and then Kevin Coyner said...
% 
% David ---
% 
% On Fri, Jun 07, 2002 at 03:11:24PM -0500, David T-G wrote..
%  Did you hit return again?  Interestingly enough, you have to hit the
%  enter key twice.
%  
%  If you did, then you should look into your .urlview file to see what it's
...
% Several things:  the man for urlview said there was a default config
% file in /etc, but there wasn't, so that was part of the problem.  So I

How was urlview installed?  If it was an RPM or it came on your system,
fire off a bug report.  If you whipped it up by hand, did you run make
install or just copy urlview into /usr/local/bin yourself?


% took the two key lines from your .urlview and created my own .urlview
% in my home directory.  And like you suggested, I hit enter twice.

Good deal.


% 
% Now I get the following:  url_handler.sh: file or directory not found.
% 
% Where do I find a url_handler.sh?  And more importantly, what is it?

You might check the contrib directory on ftp.mutt.org or otherwise just
google for it.  It's something that handles URLs, of course.  It knows
the differences between http, https, ftp, mailto, ... and knows what to
call to fire off the right thing.


% 
% Thanks for your patience, as I suspect I'm trying it.

Not at all :-)


% 
% Kevin
% 
%  
%  You should have something like at least one of those in yours, perhaps
%  also including the REGEXP (I forget whether REGEXP is necessary or if
%  I've simply tweaked the default).
%  
%  
%  HTH  HAND
%  
%  :-D
%  -- 
% 
% 
% -- 
% 
% Kevin Coyner
% mailto: [EMAIL PROTECTED]
% GnuPG key: 1024D/8CE11941


:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg28742/pgp0.pgp
Description: PGP signature


Re: Color with folder-hooks and status changes

2002-06-07 Thread John Iverson

* On Fri, 07 Jun 2002, Joseph Ishac wrote:

 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.

Works as intended here -- maybe you had other 'color index'
commands which were interfering?

 I think I'll stick with the four term expression with the use
 of ~P (which I didn't know about either).

Cool.

 Thanks again for the help.

No problem.

-- 
John



Re: urlview

2002-06-07 Thread Kevin Coyner

David -- again, thanks for the help .

On Fri, Jun 07, 2002 at 03:50:52PM -0500, David T-G wrote..
 Kevin -
 
 ...and then Kevin Coyner said...
 % 
 % David ---
 % 
 % On Fri, Jun 07, 2002 at 03:11:24PM -0500, David T-G wrote..
 %  Did you hit return again?  Interestingly enough, you have to hit the
 %  enter key twice.
 %  
 %  If you did, then you should look into your .urlview file to see what it's
 ...
 % Several things:  the man for urlview said there was a default config
 % file in /etc, but there wasn't, so that was part of the problem.  So I
 
 How was urlview installed?  If it was an RPM or it came on your system,
 fire off a bug report.  If you whipped it up by hand, did you run make
 install or just copy urlview into /usr/local/bin yourself?
 

I installed it by running ./configure, make install and make.  No
problems and no error msgs.

 
 % took the two key lines from your .urlview and created my own .urlview
 % in my home directory.  And like you suggested, I hit enter twice.
 
 Good deal.
 
 
 % 
 % Now I get the following:  url_handler.sh: file or directory not found.
 % 
 % Where do I find a url_handler.sh?  And more importantly, what is it?
 

Well, I hate to admit where I found url_handler.sh, but it was with
the rest of the source code.   Just a simple matter of moving
it over to /usr/bin.

 You might check the contrib directory on ftp.mutt.org or otherwise just
 google for it.  It's something that handles URLs, of course.  It knows
 the differences between http, https, ftp, mailto, ... and knows what to
 call to fire off the right thing.
 

So now it's working great.  Thanks again. Next, on to .mailcap!
Kevin

 
 % 
 % Thanks for your patience, as I suspect I'm trying it.
 
 Not at all :-)
 
 
 % 
 % Kevin
 % 
 %  
 %  You should have something like at least one of those in yours, perhaps
 %  also including the REGEXP (I forget whether REGEXP is necessary or if
 %  I've simply tweaked the default).
 %  
 %  
 %  HTH  HAND
 %  
 %  :-D
 %  -- 
 % 
 % 
 % -- 
 % 
 % Kevin Coyner
 % mailto: [EMAIL PROTECTED]
 % GnuPG key: 1024D/8CE11941
 
 
 :-D
 -- 
 David T-G  * It's easier to fight for one's principles
 (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
 (work) [EMAIL PROTECTED]
 http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
 



-- 

Kevin Coyner
mailto: [EMAIL PROTECTED]
GnuPG key: 1024D/8CE11941



[mutt-nntp] inline images

2002-06-07 Thread Andre Berger


--azLHFNyN32YCQGCU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi!

How can I view inline images like

--begin example--

begin 666 car30001.jpg
M_]C_X `02D9)1@`!`0```0`!``#_X2'317AI9@``24DJ``(``\!`@`6
[snip]
;17D$:2OL,:D@G/\ZZ!BR\G-,*U5'=W/_9
`
end

--end example--

in mutt-nntp (Orjan's patch)? I tried to pipe the message to xv and
the like but it seems those image viewers don't recognoze the STDIN.
Probably my setup...

-Andre

--azLHFNyN32YCQGCU
Content-Type: application/pgp-signature
Content-Disposition: inline

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9AW4/WkhBtALlJZ0RAvc1AKCs8SUx8eIfRbF1PVADfRKSjHTL+wCdHABs
qpzD7qH+texsQEerzV0vSCA=
=onPD
-END PGP SIGNATURE-

--azLHFNyN32YCQGCU--



Re: [mutt-nntp] inline images

2002-06-07 Thread Rocco Rutte

Hi,

* Andre Berger [02-06-08 04:45:05 +0200] wrote:
 How can I view inline images like

 --begin example--

 begin 666 car30001.jpg
 M_]C_X `02D9)1@`!`0```0`!``#_X2'317AI9@``24DJ``(``\!`@`6
 [snip]
 ;17D$:2OL,:D@G/\ZZ!BR\G-,*U5'=W/_9
 `
 end

 --end example--

 in mutt-nntp (Orjan's patch)? I tried to pipe the message
 to xv and the like but it seems those image viewers don't
 recognoze the STDIN.  Probably my setup...

Ever tried uudecode(1)? You can just pipe the article
through it and should get the files. Maybe you want to
use a short shell script as a wrapper which also sets 
the download directory for your ware^H^H^Hfiles.

If you clean the directory up afterwards, you can use 
the output of ls to call your image viewer.

It could look similar to:

  #!/bin/sh
  dir=$HOME/tmp/downloads/warez
  cd $dir
  uudecode -c  xv `ls $dir/*.jpg`

HTH,
Cheers, Rocco



msg28746/pgp0.pgp
Description: PGP signature


Re: Default folder for save attachements (resolved)

2002-06-07 Thread Oliver Fuchs

Many thanks for your very good (as always) suggestions and hints. I put
it this way:
In my .bash_profile I set an alias with: alias mutt=cd
~/download;mutt. It is a little bit unusual but for my requirements it
works out the best. 
Thank you again

Oliver
-- 
... don't touch the bang-bang fruit



Re: 3 quick questions

2002-06-07 Thread Peter Gelbman

On Fri, Jun 07, 2002 at 08:18:37AM -0400, darren chamberlain wrote:
 * 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,

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