Re: Optimizations?

2002-03-27 Thread Simon White

26-Mar-02 at 11:33, Will Yardley ([EMAIL PROTECTED]) wrote :
 jennyw wrote:
 
  Also, I notice that when I open up a folder, it gets all the headers
  before it displays them. Is there a way to get it to a) cache
  information) or b) read only some of the headers instead of all of
  them?

If you stay in the index, rather than going to the pager, then you can
see which headers are available without downloading. It is annoying,
however, to have to dl a whole message (especially when some fool sends
you a screenshot of their problem with LookOut Express in Windows BMP
format at 3Mb when they could have done the same in JPEG with about 40Kb).
I feel that IMAP support is still incomplete; Mutt is primarily a
MUA for reading local mail, or for integrating with fetchmail and a POP
scenario, which amounts to the same thing for Mutt since all mailboxes are
local.

Mutt does have a canny advantage though: you can delete attachments and
keep only the message body, which I find useful for trouble tickets with
big attachments that I no longer need, but want to archive.

 if you have shell access on your mail machine, and it's on a good
 connection, i'd just run mutt on the machine itself.

Well, you might not be able to compile mutt on a public mail server for
one, or get shell access. Mail servers are often too busy to have SSH
sessions on them all over the place. 

Secondly, on a dialup link, it's too slow if you SSH somewhere and you
have to /compose/ mail. For moving around the screen, even if you're good
with vim (or whatever you set $THE_ONE_TRUE_EDITOR to) is not responsive
enough. And if you have a connection that is fast enough not to notice
that, you can probably download mail fast anyway. I SSH to my workstation
from a fixed IP authenticated dialup connection at home and it's too slow
to compose mail, although reading mail is quicker with Mutt than PINE
running locally and just fetching mail from the server. This is largely
due to the pager allowing faster browsing of mail.

Even on 10Mbps local network, this IMAP issue needs improving - it causes
Mutt to wait around sometimes, especially when in the pager and I forget
to go back to the index, and wait for the messages to be downloaded one by
one as I hit down arrow.

Attachments should /never/ be systematically downloaded, that is the
beauty of IMAP. And, to be able get my mail with PINE or other IMAP
clients from wherever I happen to be. keeping mail locally is a travesty
if you travel and move around a lot... you never know when you will need
to refer back to some old email when you are challenged by a client whilst
on site.

--
[Simon White. vim/mutt. [EMAIL PROTECTED] GIMPS:56.62% see www.mersenne.org]
Whenever I watch TV and see those poor starving kids all over the world, I
can't help but cry. I mean, I'd love to be skinny like that but not with
all those flies and death and stuff.  -- Mariah Carey
[Arbitrary quotes signature rotation, a simple bash script by Simon White]



Re: Using Mutt with a Local Spool *and* Multiple IMAP Servers

2002-03-27 Thread Rocky Giannini

David,

First -- Thanks very much for the quick response.  When I saw your reply,
I thought for sure that would work -- Unfortunately, I made the change,
and I'm still seeing the same behavior.

Here's what the default account-hook entry looks like now:

account-hook . 'unset imap_user ; set folder=~/Mail'

I also tried using the full path to the Mail directory rather than the ~
shortcut, and things are still the same.

-Rocky


On Tue, Mar 26, 2002 at 05:10:24PM -0500, David T-G wrote:

 Rocky --
 
 ...and then Rocky Giannini said...
 % 
 % Hi Folks,
 
 Hello!
 
 
 % 
 % I'm attempting to use mutt (V1.3.28i) to seamlessly read mail on a local
 % spool *and* two imap servers.
 
 Sounds easy enough.
 
 
 % 
 ...
 % account-hook . 'unset imap_user'
 % account-hook imap://imap1.blah.com 'set folder=imap://imap1.blah.com/Mail; set 
imap_user=myuser'
 % account-hook imap://imap2.blah.com 'set folder=imap://imap2.blah.com; set 
imap_user=otherimapuser'
 % 
 ...
 % However, if I change back to ! (the inbox on the local system), the
 % folder designation remains stuck on the previous IMAP designation, and if
 % I try to save to =folder, mutt attempts to use a folder on the previous
 % IMAP server.
 
 I think your clue is in your default account-hook statement.  What if you
 had
 
   account-hook . 'unset imap_user ; set folder=/path/to/folder
 
 there?
 
 This is untested, but I *do* know that you'll have to reset folder somehow
 after you set it with the account-hook commands for imap1 and imap2;
 as you've shown us your muttrc, mutt is working exactly as expected.
 
 




Re: Command expansion

2002-03-27 Thread Rocco Rutte

Hi,

On Tue, Mar 26, 2002 at 03:02:31:PM -0500 darren chamberlain wrote:
 I think if you \ the backticks, they will be evaluated when the
 variable is read, and not when the config is read.  So, instead
 of:

   set record=`date +'%Y-%m-%d-%H:%M'`

 use something like:

   set record=\`date +'%Y-%m-%d-%H:%M'\`

 Untested.  :)

Think so. Doesn't work. It is evaluated at all.

Rocco



msg26243/pgp0.pgp
Description: PGP signature


Re: Changing Groups in Mutt/NNTP

2002-03-27 Thread Rocco Rutte

Hi,

On Tue, Mar 26, 2002 at 10:08:33:PM + Sean Rima wrote:
 I cannot see any details howto change the current Group or even change back
 to the list of active groups when using Mutt/NNTP

Probably does depend on the patch. Which one do you use? I use the
vvv.nntp patch. Just move around as in mailboxes, but press 'i' instead
of 'c'. Inside a group pressing 'i' and '?' on the prompt for the group
should get you back to your list.

HTH,

Rocco



msg26244/pgp0.pgp
Description: PGP signature


Re: Command expansion

2002-03-27 Thread Rocco Rutte

Hi,

On Tue, Mar 26, 2002 at 03:29:58:PM -0500 David T-G wrote:
 % The problem is the following: if I would type fast enough to send a few
 % dozen mails a minute, I wanted to be abled to include the date and time

 Heh.  And you talk about not wanting to spam! :-)

You're lucky. I'm too tired to type fast enough. ;-)

 In general, if you set your config inside single quotes, it will be
 evaluated at execution time (when you send the email or invoke the hook
 or whatever) rather than read time (when you start mutt or reread your
 muttrc file).

The following doesn't work, too:

set record='`date +/tmp/%H%M%S`'

What I thought of is that 'record' becomes a special type of 'path'
allowing pipes. Appending '|' could cause mutt just to remember that
string (instead of its expanded value) and evaluate it short before
usuage.

 You can see more on this if you search the archives for send-hook and
 uptime; this typically comes up when people want their x-uptime headers
 to be accurate to the time of the email rather than the time of the
 mua initialization.

I'll have a look at the archive. But using hooks is not what I want.
Just setting the variable.

 IIRC that would be a short section; if anything, perhaps just a note that
 says ... and you can only do this pipe thing on the $signature variable
 unless you see us talk about pipes on another variable.

Yepp.

Well, a while back I had this problem and (temporarily) solved it by
using a hook which sources another file containing a my_hdr command.
This special file was not sourced anywhere else. Seemed to work.

... and I thought that some more generall solutions would be
interesting.

Rocco



msg26245/pgp0.pgp
Description: PGP signature


Re: ignore command does not seem to work

2002-03-27 Thread Rocco Rutte

Hi,

On Tue, Mar 26, 2002 at 12:57:23:PM -0700 Rob 'Feztaa' Park wrote:
 Alas! Rocco Rutte spake thus:
   A lot of people on this list and others have creative X- headers that I
   enjoy reading. It's just as much a part of the email as the body of the
   message is.
  
  As your X-Uptime header which could be - at least - at bit more
  specific? ;-)

 What are you getting at? ;)

Sorry, I don't get this one. Either it's too late or I'm too stupid. You
want to say what?

Rocco



msg26246/pgp0.pgp
Description: PGP signature


Re: Scrolling the Index

2002-03-27 Thread Mike Erickson

* A. Reinhold ([EMAIL PROTECTED]) wrote:
 Hi,
 
 One question: When selecting messages with the cursor (bar) in the
 index to tag them or do anything else, the index scrolls one message
 line further if the end of the display is reached. Now what i would
 like to have is that the index scrolls...uhhhm let's say 10 lines
 further.  Right now I haven't found something to handle this. Any
 Help?

What'd I'd like to see is a behavior where the list starts scrolling as
you get within some arbitrary number (2-3 probably) of lines from the
bottom.

verbosity

topofscreen===
1
2
3

5
6
7
8
===bottomscreen===

as you scroll down (marker = ''), when you hit 6, scrolling down leaves
'' in the same place but moves the whole list 1..8 up a spot to reveal
2..9. This way, you always have context when scrolling up and down.

/verbosity

Is this possible already? I'm pretty sure it isn't, but you never know
what tricks this mutt can learn. :)

mike




Re: M$ Outhouse E. for UNIX

2002-03-27 Thread Dave Smith

On Tue, Mar 26, 2002 at 08:31:07PM +0100, [EMAIL PROTECTED] wrote:
 On Tue, Mar 26, 2002 at 05:41:05:PM + Simon White wrote:
  Text based rules,
 
 Almost. I only need a 'console' tv application only playing the audio
 and radio... and then I agree that text based *completely* rules. ;-)

True, in most circumstances.  I have a huge FVWM virtual desktop with about
60 xterms.  But in some cases, I need a graphical environment (when
viewing circuit diagrams, for example).

 Just logged into a solaris box. Having set my prompt to 'user@machine'
 it says that only root may run 'uname'. My response: 'exit'.

That could just be a local configuration issue.
  tabby(21)% uname -a
  SunOS tabby 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-5_10

And I'm not root (or anything like it).

-- 
David SmithWork Email: [EMAIL PROTECTED]
STMicroelectronics Home Email: [EMAIL PROTECTED]
Bristol, England



Re: Scrolling the Index

2002-03-27 Thread Bruno Postle

On Wed 27-Mar-2002 at 12:50:04 -0800, Mike Erickson wrote:
 
 topofscreen===
 1
 2
 3
 
 5
 6
 7
 8
 ===bottomscreen===
 
 as you scroll down (marker = ''), when you hit 6, scrolling down
 leaves '' in the same place but moves the whole list 1..8 up a spot
 to reveal 2..9. This way, you always have context when scrolling up
 and down.

I used to have this setup (which more-or-less does what you want), but
it's painfully slow on my DX66:

# menu_scroll only affects the index-view in the pager
set menu_scroll

macro index Tab \
next-newcurrent-middle \
'jump to the next new message'

macro index EscTab \
previous-newcurrent-middle \
'jump to the previous new message'

macro index Up \
previous-entrycurrent-middle \
'move to the previous entry'

macro index Down \
next-entrycurrent-middle \
'move to the next entry'

macro index PageUp \
previous-pagecurrent-middle \
'move to the previous page'

macro index PageDown \
next-pagecurrent-middle \
'move to the next page'

-- 
Bruno



Re: substituing ~l in send-hook

2002-03-27 Thread Hanspeter Roth

  On Mar 26 at 20:38, Rocco Rutte spoke:

 
 Yes, but some people on other lists do not use mutt and/or not L. As I
 create the 'subscribe' entries for mutt's config by a script I also
 create folder-hooks to set Reply-To: to the list address. Works.

Good idea. I probably should do the same.

-Hanspeter




Re: substituing ~l in send-hook

2002-03-27 Thread Hanspeter Roth

  On Mar 27 at 04:41, Markus Hubig spoke:

I'd like to create a generic send-hook which substitutes ~l,
something like:

send-hook ~l 'my_hdr Reply-To: ~l'

The ~l won't be substituted in my_hdr. Is there some means to achieve
this?
 
 I have this in my muttrc and it works like a charm:
 
 | # only match To address for send-hooks:
 | set default_hook=~t %s
 |
 | # Spezial ML settings
 | send-hook ~lset locale='C' \
 |  signature='~/.signature' \
 |  attribution='On %{%a, %d %b %Y}, %n wrote:\n'
 |

But you use ~l only in the pattern but not in the send-hook command.
Maybe the command would require %L. But this doesn't seem to be
recogized either.

-Hanspeter




Re: Using Mutt with a Local Spool *and* Multiple IMAP Servers

2002-03-27 Thread David T-G

Rocky --

...and then Rocky Giannini said...
% 
% David,
% 
% First -- Thanks very much for the quick response.  When I saw your reply,

Happy to help!


% I thought for sure that would work -- Unfortunately, I made the change,
% and I'm still seeing the same behavior.

Ah.


% 
% Here's what the default account-hook entry looks like now:
% 
% account-hook . 'unset imap_user ; set folder=~/Mail'

Hmmm...  Well, if it isn't setting $folder then I bet it's not being
triggered at all.  You're not really specifying any account information,
after all...

You may have to go with a macro that clears $imap_user (it would be
interesting to, under your current setup, change to an IMAP account
and then manually change to $HOME/Mail and see if $imap_user has been
cleared; I'll bet a Twinkie it won't be) and resets $folder.  Of course,
others may have more ideas or be able to show why I am wrong; I don't
use IMAP and don't use account-hook and so I haven't much experience on
which to draw...


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!




msg26252/pgp0.pgp
Description: PGP signature


Re: Command expansion

2002-03-27 Thread David T-G

Rocco, et al --

...and then Rocco Rutte said...
% 
% Hi,

Hello!


% 
% On Tue, Mar 26, 2002 at 03:29:58:PM -0500 David T-G wrote:
%  % The problem is the following: if I would type fast enough to send a few
%  % dozen mails a minute, I wanted to be abled to include the date and time
% 
%  Heh.  And you talk about not wanting to spam! :-)
% 
% You're lucky. I'm too tired to type fast enough. ;-)

*grin*


% 
%  In general, if you set your config inside single quotes, it will be
%  evaluated at execution time (when you send the email or invoke the hook
%  or whatever) rather than read time (when you start mutt or reread your
%  muttrc file).
% 
% The following doesn't work, too:
% 
% set record='`date +/tmp/%H%M%S`'

Hmmm...

Oh, I get it -- $record is only parsed once, so it will only be set once,
no matter what.


% 
% What I thought of is that 'record' becomes a special type of 'path'
% allowing pipes. Appending '|' could cause mutt just to remember that
% string (instead of its expanded value) and evaluate it short before
% usuage.

Well, yeah, but that would require completely rewriting the code that
handles $record.  That would probably be welcomed, after all of the talk
of making fcc-save-hook able to save to a pipe so that a script can save
multiple copies of the message, but nobody has stepped up to *that* yet
and so I don't see it happening for this...


% 
%  You can see more on this if you search the archives for send-hook and
%  uptime; this typically comes up when people want their x-uptime headers
%  to be accurate to the time of the email rather than the time of the
%  mua initialization.
% 
% I'll have a look at the archive. But using hooks is not what I want.
% Just setting the variable.

That gives me an idea, though.  You could

  send-hook . 'set record=`date +/tmp/$H$M$S`'

and then it *would* be repeatedly evaluated but not until the hook is
executed, and that should get you what you want.  Of course, you'd
probably only want to do this from within a folder-hook or a special
muttrc file.


% 
%  IIRC that would be a short section; if anything, perhaps just a note that
%  says ... and you can only do this pipe thing on the $signature variable
%  unless you see us talk about pipes on another variable.
% 
% Yepp.
% 
% Well, a while back I had this problem and (temporarily) solved it by
% using a hook which sources another file containing a my_hdr command.
% This special file was not sourced anywhere else. Seemed to work.

Yeah; I'd go that route with the send-hook above and see how it works.


% 
% ... and I thought that some more generall solutions would be
% interesting.

Interesting, to be sure, but someone has to want to code it :-)


% 
% Rocco


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!




msg26253/pgp0.pgp
Description: PGP signature


Re: behavior of abort (SigInt)

2002-03-27 Thread David T-G

Tim --

...and then Tim said...
% 
% Somewhere between version 1.2.5i and 1.3.27i the behavior of SigInt

How?


% changed.  I am used to hitting ^C to get out of mutt (the main reason
% is that I have a script that looks through a number of folders and ^C
% has a different exit code than q.  q takes me to the next mailbox
% and ^C exits the script completely).

While I think that's a kinda wonky approach :-) I agree that that
expectation seems fair.


% 
% Is this the intended behavior?

Yes, I should think that killing mutt with ctrl-c would cause a different
error code from exiting or quitting, but it is certainly plausible that
successfully answering 'y' to the prompt then implies the success of that
action and so maybe you need a SIGTERM to generate an errored exit.

It would help if you said exactly what behavior you have seen both under
1.2.5 and 1.3.27 :-)


% 
% Thanks,
% 
% Tim


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!




msg26254/pgp0.pgp
Description: PGP signature


Re: Changing Groups in Mutt/NNTP

2002-03-27 Thread Sean Rima

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Rocco!

On Wed, 27 Mar 2002, Rocco Rutte wrote:

 Hi,
 
 On Tue, Mar 26, 2002 at 10:08:33:PM + Sean Rima wrote:
  I cannot see any details howto change the current Group or even change back
  to the list of active groups when using Mutt/NNTP
 
 Probably does depend on the patch. Which one do you use? I use the
 vvv.nntp patch. Just move around as in mailboxes, but press 'i' instead
 of 'c'. Inside a group pressing 'i' and '?' on the prompt for the group
 should get you back to your list.
 
Sorry should have said but yes it is the vvv patch, so thanks a million :)

Sean
- -- 
  Sean Rimahttp://www.tcob1.net
  Linux User:  231986  Jabber:   [EMAIL PROTECTED]
  THE VIEWS EXPRESSED HERE ARE NOT NECESSARILY THOSE OF MY WIFE.
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjyhrB0ACgkQeR/L2ZZp3E/xigCfTn07BfF8vhDhq1RI5xxb2Yq2
u4MAn1JgfLc9kuVDgWKMUYfG3dRd5oG0
=aVav
-END PGP SIGNATURE-



Re: behavior of abort (SigInt)

2002-03-27 Thread Tim

On Wed, Mar 27, 2002 at 07:35:09AM -0500, David T-G wrote:
 Tim --
 
 ...and then Tim said...
 % 
 % Somewhere between version 1.2.5i and 1.3.27i the behavior of SigInt
 
 How?

  Sorry I wasn't clear.  With 1.2.5i, hitting ^C quits mutt completely
without prompt.  With 1.3.27i, it asks if I really want to exit mutt.

  I have set quit=yes in my .muttrc, so I would assume ^C should honor
that as well.

  Thanks,

  Tim

 
 % changed.  I am used to hitting ^C to get out of mutt (the main reason
 % is that I have a script that looks through a number of folders and ^C
 % has a different exit code than q.  q takes me to the next mailbox
 % and ^C exits the script completely).
 
 While I think that's a kinda wonky approach :-) I agree that that
 expectation seems fair.
 
 % 
 % Is this the intended behavior?
 
 Yes, I should think that killing mutt with ctrl-c would cause a different
 error code from exiting or quitting, but it is certainly plausible that
 successfully answering 'y' to the prompt then implies the success of that
 action and so maybe you need a SIGTERM to generate an errored exit.
 
 It would help if you said exactly what behavior you have seen both under
 1.2.5 and 1.3.27 :-)
 
 % 
 % Thanks,
 % 
 % Tim



Re: M$ Outhouse E. for UNIX

2002-03-27 Thread Matthew D. Fuller

On Wed, Mar 27, 2002 at 09:08:50AM + I heard the voice of
Dave Smith, and lo! it spake thus:
 On Tue, Mar 26, 2002 at 08:31:07PM +0100, [EMAIL PROTECTED] wrote:
 
  Just logged into a solaris box. Having set my prompt to 'user@machine'
  it says that only root may run 'uname'. My response: 'exit'.
 
 That could just be a local configuration issue.
   tabby(21)% uname -a
   SunOS tabby 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-5_10

I think he actually means 'hostname', not 'uname'; hostname, on any sane
system, displays the hostname when called with no args, and tries to set
it (requiring root at THAT point) when it has args.  Solaris assumes that
you're always trying to set it, even to nothing.

Personally, I use tcsh, so I have a shell builtin for setting it in my
prompt.  However, in my uber-.tcshrc, I end up having to work around
Solaris' braindamage in a number of ways.  For instance, on every OTHER
OS (including pre-Solaris-renaming SunOS, HP/UX 9, NeXT Mach), I can use
id -u to get the EUID.  Solaris?
setenv EUID `id | sed s/[a-z\(\)\=]//g | awk '{print $1}'`

Yippie.  Yeah, I could use cut(1) and do it a bit more efficiently
probably, but...



-- 
Matthew Fuller (MF4839) |[EMAIL PROTECTED]
Unix Systems Administrator  |[EMAIL PROTECTED]
Specializing in FreeBSD |http://www.over-yonder.net/

The only reason I'm burning my candle at both ends, is because I
  haven't figured out how to light the middle yet



Re: pgp_create_traditional in 1.5.0

2002-03-27 Thread David T-G

Will --

...and then Will Yardley said...
% 
% -BEGIN PGP SIGNED MESSAGE-
% Hash: SHA1
% 
% for those not on the mutt dev list, pgp_create_traditional works again
% in 1.5.0 (cvs version - a patch from Armin Wolfermann), and the behavior

Yay.  That's always nice.


% has been changed so that application/pgp is no longer used (although
% there's an x-mutt-action=pgp-sign flag in the content/type so that mutt
% knows it's signed).  those changes are from Thomas Roessler.

I was unaware that it was broken.  Can you (or someone) tell us whether
this functionality is in 1.3.28?


% 
% anyway just a FYI; i know some people have been asking for this
% behavior.

Indeed; I'm quite interested myself.


% 
% - -- 
% Will Yardley
% input: william  @ hq . newdream . net . 


TIA  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!




msg26258/pgp0.pgp
Description: PGP signature


Re: M$ Outhouse E. for UNIX

2002-03-27 Thread Shawn McMahon

begin  quoting what Rocco Rutte said on Tue, Mar 26, 2002 at 08:31:07PM +0100:
 
 Just logged into a solaris box. Having set my prompt to 'user@machine'
 it says that only root may run 'uname'. My response: 'exit'.

Did you by any chance have a -S in that uname call?

Because that's the only uname function that Solaris reserves for root,
and rightly so.  Unless the administrator of that box did something.




msg26259/pgp0.pgp
Description: PGP signature


Re: ignore command does not seem to work

2002-03-27 Thread David T-G

Rob --

...and then Feztaa said...
% 
% Alright, I wasn't exactly thinking when I said all gpl, but you know
% what I mean. Everything on my system is compiled from source, it's all
% one free license or another.

We figured out what you meant when you made such a broad and fairly
unsupportable statement.  What you said and what you meant, though, were
two different things -- and you can count on this bunch to notice!


% 
% -- 
% Rob 'Feztaa' Park
% [EMAIL PROTECTED]
% --
% Save yourself!  Reboot in 5 seconds!


:-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!




msg26260/pgp0.pgp
Description: PGP signature


Re: ignore command does not seem to work

2002-03-27 Thread David T-G

Rob --

...and then Feztaa said...
% 
% Alas! Will Yardley spake thus:
%  Rob 'Feztaa' Park wrote:
%   I don't use ps. Or any replacements.
%  
%  why ever not?
% 
% Because I don't really know what it is, what it does, or why I'd ever
% want to use it.

ps is process status or something like that, and it shows you what's
going on in your system.  Think top without all of the overhead of top.
It's really quite handy, especially if you ever want to kill a job.


% 
% -- 
% Rob 'Feztaa' Park
% [EMAIL PROTECTED]
% --
% While your friend holds you affectionately by both your hands you are
% safe, for you can watch both of his.
%   -- Ambrose Bierce, The Devil's Dictionary


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!




msg26261/pgp0.pgp
Description: PGP signature


Re: M$ Outhouse E. for UNIX

2002-03-27 Thread David T-G

Rocco --

...and then Rocco Rutte said...
% 
% Hi,

Hello!


% 
% On Tue, Mar 26, 2002 at 05:41:05:PM + Simon White wrote:
%  Text based rules,
% 
% Almost. I only need a 'console' tv application only playing the audio
% and radio... and then I agree that text based *completely* rules. ;-)

*grin*


% 
%  but in Solaris you are stuck with CDE anyway, it's not
%  worth shit without CDE.
% 
% Just logged into a solaris box. Having set my prompt to 'user@machine'
% it says that only root may run 'uname'. My response: 'exit'.

Eh?  Who the heck set up your box?  I can understand the 100M quota and
the no compiler support and I sure as heck understand not giving away the
root password, but not being able to run uname is a bit much.


% 
% Rocco


:-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!




msg26262/pgp0.pgp
Description: PGP signature


Re: M$ Outhouse E. for UNIX

2002-03-27 Thread Chris Green

On Wed, Mar 27, 2002 at 06:49:32AM -0600, Matthew D. Fuller wrote:
 On Wed, Mar 27, 2002 at 09:08:50AM + I heard the voice of
 Dave Smith, and lo! it spake thus:
  On Tue, Mar 26, 2002 at 08:31:07PM +0100, [EMAIL PROTECTED] wrote:
  
   Just logged into a solaris box. Having set my prompt to 'user@machine'
   it says that only root may run 'uname'. My response: 'exit'.
  
  That could just be a local configuration issue.
tabby(21)% uname -a
SunOS tabby 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-5_10
 
 I think he actually means 'hostname', not 'uname'; hostname, on any sane
 system, displays the hostname when called with no args, and tries to set
 it (requiring root at THAT point) when it has args.  Solaris assumes that
 you're always trying to set it, even to nothing.
 
Well on my Solaris box entering 'hostname' with no arguments returns
the host name with no problems, and I'm not root.

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



Re: M$ Outhouse E. for UNIX

2002-03-27 Thread David T-G

Matthew, et al --

...and then Matthew D. Fuller said...
% 
% On Wed, Mar 27, 2002 at 09:08:50AM + I heard the voice of
% Dave Smith, and lo! it spake thus:
%  On Tue, Mar 26, 2002 at 08:31:07PM +0100, [EMAIL PROTECTED] wrote:
%  
%   Just logged into a solaris box. Having set my prompt to 'user@machine'
%   it says that only root may run 'uname'. My response: 'exit'.
...
% 
% I think he actually means 'hostname', not 'uname'; hostname, on any sane
% system, displays the hostname when called with no args, and tries to set

I agree so far, but ...


% it (requiring root at THAT point) when it has args.  Solaris assumes that
% you're always trying to set it, even to nothing.

Really?  I've never heard of that.

  nfs5{43} uname -a
  SunOS nfs5 5.8 Generic sun4u sparc
  nfs5{44} id
  uid=1236(dthorbur) gid=1012(u_it)
  nfs5{45} hostname
  nfs5
  nfs5{46}


% 
% Personally, I use tcsh, so I have a shell builtin for setting it in my
% prompt.  However, in my uber-.tcshrc, I end up having to work around
% Solaris' braindamage in a number of ways.  For instance, on every OTHER
% OS (including pre-Solaris-renaming SunOS, HP/UX 9, NeXT Mach), I can use
% id -u to get the EUID.  Solaris?
% setenv EUID `id | sed s/[a-z\(\)\=]//g | awk '{print $1}'`

Yes, some of the tools are just a bit broken.  At least it isn't AIX :-)
This is why you have the GNU utils in your ~/local tree anyway, though.


% 
% Yippie.  Yeah, I could use cut(1) and do it a bit more efficiently
% probably, but...

No argument there; we still have lots of cats to go :-)


% 
% -- 
% Matthew Fuller (MF4839) |[EMAIL PROTECTED]
% Unix Systems Administrator  |[EMAIL PROTECTED]
% Specializing in FreeBSD |http://www.over-yonder.net/
% 
% The only reason I'm burning my candle at both ends, is because I
%   haven't figured out how to light the middle yet


:-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!




msg26264/pgp0.pgp
Description: PGP signature


Re: M$ Outhouse E. for UNIX

2002-03-27 Thread Matthew D. Fuller

On Wed, Mar 27, 2002 at 08:17:05AM -0500 I heard the voice of
David T-G, and lo! it spake thus:
 
 % it (requiring root at THAT point) when it has args.  Solaris assumes that
 % you're always trying to set it, even to nothing.
 
 Really?  I've never heard of that.
 
   nfs5{43} uname -a
   SunOS nfs5 5.8 Generic sun4u sparc
   nfs5{44} id
   uid=1236(dthorbur) gid=1012(u_it)
   nfs5{45} hostname
   nfs5
   nfs5{46}

Or I could be completely talking out of my hat   ;p

Most of my Slowaris experience was 2.5.1 (SunOS 5.5.1), before they
decided Hey, 2.6 + 1 = 7!, and I definately recall something that I
considered a pretty basic give me this bit of info command that Solaris
decided to interpret as set this info and yelled at me for not being
root.  I THOUGHT that was hostname(1), but I can't say for sure (and I
don't have anything Solaris around to check.  It works as expected on
SunOS 4.1.4.



-- 
Matthew Fuller (MF4839) |[EMAIL PROTECTED]
Unix Systems Administrator  |[EMAIL PROTECTED]
Specializing in FreeBSD |http://www.over-yonder.net/

The only reason I'm burning my candle at both ends, is because I
  haven't figured out how to light the middle yet



Re: M$ Outhouse E. for UNIX

2002-03-27 Thread David T-G

Matthew --

...and then Matthew D. Fuller said...
% 
% On Wed, Mar 27, 2002 at 08:17:05AM -0500 I heard the voice of
% David T-G, and lo! it spake thus:
%  
%  % it (requiring root at THAT point) when it has args.  Solaris assumes that
%  % you're always trying to set it, even to nothing.
%  
%  Really?  I've never heard of that.
...
% 
% Or I could be completely talking out of my hat   ;p

Perhaps.  Not like any of the rest of us haven't done it before, and even
more on-topic :-)


% 
% Most of my Slowaris experience was 2.5.1 (SunOS 5.5.1), before they

Ahhh...


% decided Hey, 2.6 + 1 = 7!, and I definately recall something that I

Yeah; that was a very funny time.  Too bad NT5 was renamed to Win2000 and
announced just ONE DAY before the fantastic announcement of Solaris 7,
the Operating System Rushed Out The Door In Time To Have A Higher
Revision Number Than That Crap From Microsoft (but not in time to be
complete, which is why 8 came out so soon after without even an attempt
at 7.1).  There were a *lot* of people at Sun who were pissed off!


% considered a pretty basic give me this bit of info command that Solaris
% decided to interpret as set this info and yelled at me for not being

I won't argue that this isn't possible; certainly Solaris has done some
funny things.  It might have been chown, which really *should* only be
run by root but which some other vendors allow at the user level and thus
piss off folks moving to Solaris...


% root.  I THOUGHT that was hostname(1), but I can't say for sure (and I
% don't have anything Solaris around to check.  It works as expected on
% SunOS 4.1.4.

Of course; those were the Good Old Days :-)


% 
% -- 
% Matthew Fuller (MF4839) |[EMAIL PROTECTED]
% Unix Systems Administrator  |[EMAIL PROTECTED]
% Specializing in FreeBSD |http://www.over-yonder.net/
% 
% The only reason I'm burning my candle at both ends, is because I
%   haven't figured out how to light the middle yet


:-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!




msg26266/pgp0.pgp
Description: PGP signature


Re: M$ Outhouse E. for UNIX

2002-03-27 Thread darren chamberlain

Quoting David T-G [EMAIL PROTECTED] [Mar 27, 2002 08:19]:
  I think he actually means 'hostname', not 'uname'; hostname,
  on any sane system, displays the hostname when called with no
  args, and tries to set
 
 I agree so far, but ...

Here is I think what happened:

$ uname -a; hostname -i
SunOS mail 5.8 Generic_108528-03 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
uname: not super user
$

Yes?

GNU's hostname has a -i option which returns an IP address;
Solaris' hostname does not.  I've had freshly installed Solaris
boxen with a hostname of -i before... ;)

(darren)

-- 
Democracy is a form of government where you can say what you
think, even if you don't think.



Re: substituing ~l in send-hook

2002-03-27 Thread Rocco Rutte

Hi,

On Wed, Mar 27, 2002 at 10:03:43:AM +0100 Hanspeter Roth wrote:
   On Mar 26 at 20:38, Rocco Rutte spoke:
  Yes, but some people on other lists do not use mutt and/or not L. As I
  create the 'subscribe' entries for mutt's config by a script I also
  create folder-hooks to set Reply-To: to the list address. Works.

 Good idea. I probably should do the same.

Just a pointer: to make things more easy, I do it in .procmailrc. So,
if I unsubscribe, I remove the lines in .procmailrc, and run my cleanup
script. Done. Same for subscribtions.

For this list, I have a line like:

# subscribe: [EMAIL PROTECTED]

in my .procmailrc (plus the procmail rules, of course). These comments are
grep'ed and sed'ed into a config file. That config file is parsed and all
'subscribe' lines are reformatted to folder hooks like:

folder-hook =IN.$localpart 'my_hdr Reply-To: $localpart $listaddr'

It requires that procmail sorts them in files named after the local part
of a lists address.

Rocco



msg26268/pgp0.pgp
Description: PGP signature


Re: M$ Outhouse E. for UNIX

2002-03-27 Thread Shawn McMahon

begin  quoting what Matthew D. Fuller said on Wed, Mar 27, 2002 at 06:49:32AM -0600:
 
 I think he actually means 'hostname', not 'uname'; hostname, on any sane
 system, displays the hostname when called with no args, and tries to set
 it (requiring root at THAT point) when it has args.  Solaris assumes that
 you're always trying to set it, even to nothing.

What version of Solaris are you smoking?

sm364611-chtsjs01 hostname
chtsjs01
sm364611-chtsjs01 id
uid=43122(sm364611) gid=10(staff)
sm364611-chtsjs01 uname -a
SunOS chtsjs01 5.8 Generic_108528-05 sun4u sparc SUNW,Ultra-2

 Solaris' braindamage in a number of ways.  For instance, on every OTHER
 OS (including pre-Solaris-renaming SunOS, HP/UX 9, NeXT Mach), I can use
 id -u to get the EUID.  Solaris?
 setenv EUID `id | sed s/[a-z\(\)\=]//g | awk '{print $1}'`

sm364611-chtsjs01 /usr/xpg4/bin/id -u
43122

(which is explained in man id)




msg26269/pgp0.pgp
Description: PGP signature


Re: Optimizations?

2002-03-27 Thread Jeremy Blosser

On Mar 27, Simon White [[EMAIL PROTECTED]] wrote:
 26-Mar-02 at 11:33, Will Yardley ([EMAIL PROTECTED]) wrote :
  if you have shell access on your mail machine, and it's on a good
  connection, i'd just run mutt on the machine itself.
...
 Secondly, on a dialup link, it's too slow if you SSH somewhere and you
 have to /compose/ mail. For moving around the screen, even if you're good
 with vim (or whatever you set $THE_ONE_TRUE_EDITOR to) is not responsive
 enough. And if you have a connection that is fast enough not to notice
 that, you can probably download mail fast anyway. I SSH to my workstation
 from a fixed IP authenticated dialup connection at home and it's too slow
 to compose mail, although reading mail is quicker with Mutt than PINE
 running locally and just fetching mail from the server. This is largely
 due to the pager allowing faster browsing of mail.

Weird.  I used to do this all the time before I had DSL, and it was never a
problem.  And the mail server I was connecting to was a 486 w/12M of RAM.
The initial connection was slow, but after that it was fine.

Are you using SSH compression?  It helps a lot.



msg26270/pgp0.pgp
Description: PGP signature


Re: M$ Outhouse E. for UNIX

2002-03-27 Thread Shawn McMahon

begin  quoting what David T-G said on Wed, Mar 27, 2002 at 08:28:25AM -0500:
 
 Yeah; that was a very funny time.  Too bad NT5 was renamed to Win2000 and
 announced just ONE DAY before the fantastic announcement of Solaris 7,
 the Operating System Rushed Out The Door In Time To Have A Higher
 Revision Number Than That Crap From Microsoft (but not in time to be
 complete, which is why 8 came out so soon after without even an attempt
 at 7.1).  There were a *lot* of people at Sun who were pissed off!

There won't be any .1 releases, because Solaris 8 is a marketing term
for an environment that includes SunOS 5.8.  Technically, the OS is
SunOS 5.8.  Sun marketting doesn't use that name, however, because they
don't refer to the OS, only to the environment.

Similarly for Solaris 7.

That's why Solaris 9 is about to come out, with no 8.1.  However, you
are correct that 7 sucked.  :-)

Think of it as like a Linux distribution.  Linux is the OS, RedHat or
Debian is the distribution.  Saying Solaris is like saying Debian,
only slower and less free.  :-)




msg26271/pgp0.pgp
Description: PGP signature


Re: pgp_create_traditional in 1.5.0

2002-03-27 Thread Shawn McMahon

begin  quoting what David T-G said on Wed, Mar 27, 2002 at 07:55:08AM -0500:
 
 % has been changed so that application/pgp is no longer used (although
 % there's an x-mutt-action=pgp-sign flag in the content/type so that mutt
 % knows it's signed).  those changes are from Thomas Roessler.
 
 I was unaware that it was broken.  Can you (or someone) tell us whether
 this functionality is in 1.3.28?

Only with a patch.  Although I'm using a patch that causes the same
behavior, IMHO, core Mutt shouldn't.  It should be configurable whether
you'll use application/pgp or not, because there's an RFC in question
here.  OpenPGP specifies application/pgp, but that breaks some MUAs that
don't follow the OpenPGP RFC.

The usual workaround is text/plain, but that needs to be user-configurable
so that people who WANT to use OpenPGP (I don't, I either use text/plain
or PGP/MIME) can.

As I said, one of the patches for that just makes it text/plain always,
and another makes it configurable.  I'm using the former by choice.




msg26272/pgp0.pgp
Description: PGP signature


Re: mutt+Outlook - calendar utility?

2002-03-27 Thread darren chamberlain

Quoting Sven Guckes [EMAIL PROTECTED] [Mar 26, 2002 17:25]:
 * David Rock [EMAIL PROTECTED] [2002-03-26 19:34]:
  On Tue, Mar 26, 2002 at 10:30:19AM -0500, Adam Shostack wrote:
   On Tue, Mar 26, 2002 at 10:15:47AM -0500, Mike Schiraldi wrote:
   ..it would be way cool to have an interface that downloaded
   your mail into mutt, and left your calendar in Evolution.
  
  It would be even nicer if there was a connector product that
  worked with mutt instead of Evolution so that you could reply
  to appointments from Outlook clients without using the web
  client or vmware.
 
 ok, now the problem has been identified and a possible solution
 has been suggested.  good.
 
 now - can somebody please do some research on the net and set
 up a web page for this?

There is Reefknot (URL:http://www.reefknot.org/), which is
building RFC 2445 (the iCal RFC)-compliant calendaring libraries
and software.  It is written in Perl and is in an early phase,
although they have done extensive work on documenting the RFC and
it's various details (and other implementations).  They have also
done a huge amount of work towards attempting to standardize date
and time handling in Perl, with internationalization specifically
in mind.

For people interested in calendaring but interested in Reefknot
(or Perl ;), they have produced several documents describing the
RFC, such as the Bootstrap guide http://www.reefknot.org/bootstrap-guide/.

(darren)

-- 
Man will never be free until the last king is strangled with the
entrails of the last priest.
-- Diderot



Re: pgp_create_traditional in 1.5.0

2002-03-27 Thread David T-G

Shawn --

...and then Shawn McMahon said...
% 
% begin  quoting what David T-G said on Wed, Mar 27, 2002 at 07:55:08AM -0500:
%  
%  % has been changed so that application/pgp is no longer used (although
%  % there's an x-mutt-action=pgp-sign flag in the content/type so that mutt
%  % knows it's signed).  those changes are from Thomas Roessler.
%  
%  I was unaware that it was broken.  Can you (or someone) tell us whether
%  this functionality is in 1.3.28?
% 
% Only with a patch.  Although I'm using a patch that causes the same

Ahhh...  I thought that it had been integrated in .28 but was confused by
the announcement.


% behavior, IMHO, core Mutt shouldn't.  It should be configurable whether
% you'll use application/pgp or not, because there's an RFC in question
% here.  OpenPGP specifies application/pgp, but that breaks some MUAs that
% don't follow the OpenPGP RFC.

As we all know :-)


% 
% The usual workaround is text/plain, but that needs to be user-configurable
% so that people who WANT to use OpenPGP (I don't, I either use text/plain
% or PGP/MIME) can.

Yeah, good point.


% 
% As I said, one of the patches for that just makes it text/plain always,
% and another makes it configurable.  I'm using the former by choice.

I think I'm up on patches, both Shane's and Dale's, so I'm covered.
Thanks for the info!


:-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!




msg26274/pgp0.pgp
Description: PGP signature


How to - keystrokes?

2002-03-27 Thread Dave Price

I really did take a look at the online help and docs first ...

Are there quick ways to:

* change to main inbox?

* save a message to a specific folder without confirmation - can i turn
the append to folder confirmation off globally?

* select and save a group of messages matching a pattern to a particular
folder?

aloha ( TIA),
dave





msg26275/pgp0.pgp
Description: PGP signature


Re: How to - keystrokes?

2002-03-27 Thread Mike Schiraldi

 * change to main inbox?

! is a shortcut for that one, so c! is probably what you want.

 * select and save a group of messages matching a pattern to a particular
 folder?

Check out the help screen you get when pressing '?':

T   tag-pattern  tag messages matching a pattern
;   tag-prefix   apply next function to tagged messages
s   save-message save message/attachment to a file



msg26276/pgp0.pgp
Description: PGP signature


Re: How to - keystrokes?

2002-03-27 Thread darren chamberlain

* Dave Price [EMAIL PROTECTED] [2002-03-27 10:31]:
 I really did take a look at the online help and docs first ...
 
 Are there quick ways to:
 
 * change to main inbox?

If you mean your spool ($MAIL in the shell), there is the !
shortcut.

 * save a message to a specific folder without confirmation -
 can i turn the append to folder confirmation off globally?

  6.3.26.  confirmappend

  Type: boolean
  Default: yes

  When set, Mutt will prompt for confirmation when appending
  messages to an existing mailbox.

  6.3.27.  confirmcreate

  Type: boolean
  Default: yes

  When set, Mutt will prompt for confirmation when saving
  messages to a mailbox which does not yet exist before creating
  it.

Set these to no.

 * select and save a group of messages matching a pattern to a
 particular folder?

Use tagging, in this case tag-pattern, which I think is bound
to T by default, and tag-prefix, bound to ; to save the messages:

  T~A;s=somewhere/else

will tag all messages (~A), apply the save function (;s) to them,
and set the box to be somewhere/else.

(darren)

-- 
Do what thou wilt shall be the whole of the Law.
Love is the law, love under will.



Re: How to - keystrokes?

2002-03-27 Thread David T-G

Dave --

I couldn't find your PGP key.  Is it on a bunch of servers?

...and then Dave Price said...
% 
% I really did take a look at the online help and docs first ...

That's a good start.  You'll need to go back, though :-)

If you just didn't look at this stuff the first time around, then that
is its own explanation.  If you did, though, and it really didn't sink
in, then PLEASE take some notes on what you missed and what you want to
do and then, as you learn how to do those things, note what would have
been clearer or more helpful to you.  Once you're experienced and mutt
behavior is comfortably second nature it is terribly difficult to write
documentation that really addresses the newbie.


% 
% Are there quick ways to:
% 
% * change to main inbox?

Yep.  See section 4.7 and then enjoy

  c!enter

as about the quickest way you'll find.


% 
% * save a message to a specific folder without confirmation - can i turn
% the append to folder confirmation off globally?

Yep.  See sections 6.3.26 and 6.3.27, turn off $confirmappend and
$confirmcreate, and save away.


% 
% * select and save a group of messages matching a pattern to a particular
% folder?

Yep.  See section 4.3 (and perhaps 6.3.17) as well as section 4.2 and
then tag based on whatever limit you define.


% 
% aloha ( TIA),
% dave

HTH  HAND  enjoy your further reading :-)


:-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!




msg26278/pgp0.pgp
Description: PGP signature


Re: ignore command does not seem to work

2002-03-27 Thread Simon White

27-Mar-02 at 08:09, David T-G ([EMAIL PROTECTED]) wrote :
 %  Rob 'Feztaa' Park wrote:
 %   I don't use ps. Or any replacements.
 %  
 %  why ever not?
 % 
 % Because I don't really know what it is, what it does, or why I'd ever
 % want to use it.
 
 ps is process status or something like that, and it shows you what's
 going on in your system.  Think top without all of the overhead of top.
 It's really quite handy, especially if you ever want to kill a job.

Handier still for parsing to find out if a process is running, and to HUP
/ kill it if necessary, or restart a daemon if ps doesn't report that it
runs.

-- 
[Simon White. vim/mutt. [EMAIL PROTECTED] GIMPS:57.12% see www.mersenne.org]
It is impossible to sharpen a pencil with a blunt axe. It is equally vain
to try to do it with ten blunt axes instead.  -- E. W. Dijkstra
[Arbitrary quotes signature rotation, a simple bash script by Simon White]



Re: Optimizations?

2002-03-27 Thread Simon White

27-Mar-02 at 08:33, Jeremy Blosser ([EMAIL PROTECTED]) wrote :
 On Mar 27, Simon White [[EMAIL PROTECTED]] wrote:
  Secondly, on a dialup link, it's too slow if you SSH somewhere and you
  have to /compose/ mail. For moving around the screen, even if you're good
  with vim (or whatever you set $THE_ONE_TRUE_EDITOR to) is not responsive
  enough. And if you have a connection that is fast enough not to notice
  that, you can probably download mail fast anyway. I SSH to my workstation
  from a fixed IP authenticated dialup connection at home and it's too slow
  to compose mail, although reading mail is quicker with Mutt than PINE
  running locally and just fetching mail from the server. This is largely
  due to the pager allowing faster browsing of mail.
 
 Weird.  I used to do this all the time before I had DSL, and it was never a
 problem.  And the mail server I was connecting to was a 486 w/12M of RAM.
 The initial connection was slow, but after that it was fine.
 
 Are you using SSH compression?  It helps a lot.

How fast do you type? I'm at ~55wpm if typing easy mail where I don't
think too much.

Not sure if I had compression set. In any case, I don't like ANY delay
between keypress and letter appearing on screen, since I'm not looking at
the keys as I type, and if the display is constantly catching up it
throws me right off.

-- 
[Simon White. vim/mutt. [EMAIL PROTECTED] GIMPS:57.13% see www.mersenne.org]
When the bosses talk about improving productivity, they are never talking
about themselves.
[Arbitrary quotes signature rotation, a simple bash script by Simon White]



Re: Scrolling the Index

2002-03-27 Thread Mike Schiraldi

 What'd I'd like to see is a behavior where the list starts scrolling as
 you get within some arbitrary number (2-3 probably) of lines from the
 bottom.

You know what? I've wanted this functionality for a long time and i didn't
even consciously realize it.

Here's a patch. I'm currently using it and haven't seen any problems, but i
haven't exactly stress-tested it yet, either.



Index: globals.h
===
RCS file: /home/roessler/cvs/mutt/globals.h,v
retrieving revision 3.2
diff -u -r3.2 globals.h
--- globals.h   2002/01/24 21:53:19 3.2
+++ globals.h   2002/03/27 16:39:05
 -145,6 +145,7 
 
 WHERE short ConnectTimeout;
 WHERE short HistSize;
+WHERE short IndexContext;
 WHERE short PagerContext;
 WHERE short PagerIndexLines;
 WHERE short ReadInc;
Index: init.h
===
RCS file: /home/roessler/cvs/mutt/init.h,v
retrieving revision 3.14
diff -u -r3.14 init.h
--- init.h  2002/03/02 12:11:33 3.14
+++ init.h  2002/03/27 16:39:06
 -848,6 +848,12 
   { indent_str,  DT_SYN,  R_NONE, UL indent_string, 0 },
   /*
   */
+  { index_context,   DT_NUM,  R_NONE, UL IndexContext, 0 },
+  /*
+  ** .pp
+  ** This variable controls the number of lines of context that are given
+  ** when scrolling through the message index.
+  */
   { index_format,DT_STR,  R_BOTH, UL HdrFmt, UL %4C %Z %{%b %d} %-15.15L 
(%?l?%4l%4c?) %s },
   /*
   ** .pp
Index: menu.c
===
RCS file: /home/roessler/cvs/mutt/menu.c,v
retrieving revision 3.3
diff -u -r3.3 menu.c
--- menu.c  2002/02/13 09:53:33 3.3
+++ menu.c  2002/03/27 16:39:06
 -371,18 +371,22 
 set_option (OPTNEEDREDRAW);
 menu-redraw |= REDRAW_INDEX;
   }
-  else if (menu-current = menu-top + menu-pagelen)
+  else if (menu-current = menu-top + menu-pagelen - IndexContext)
   {
 if (option (OPTMENUSCROLL) || (menu-pagelen = 0))
-  menu-top = menu-current - menu-pagelen + 1;
+  menu-top = menu-current - menu-pagelen + IndexContext + 1;
 else
   menu-top += menu-pagelen * ((menu-current - menu-top) / menu-pagelen);
 menu-redraw |= REDRAW_INDEX;
   }
-  else if (menu-current  menu-top)
+  else if (menu-current  menu-top + IndexContext)
   {
 if (option (OPTMENUSCROLL) || (menu-pagelen = 0))
-  menu-top = menu-current;
+{
+  menu-top = menu-current - IndexContext;
+  if (menu-top  0)
+menu-top = 0;
+}
 else
 {
   menu-top -= menu-pagelen * ((menu-top + menu-pagelen - 1 - menu-current) / 
menu-pagelen);



msg26281/pgp0.pgp
Description: PGP signature


Re: Scrolling the Index

2002-03-27 Thread Robert Conde

You can get half a page, too.  Am I wrong?

[   Up 1/2 page

]   Down 1/2 page




-R

On Tue, Mar 26, 2002 at 10:54:50PM -0800, Michael Elkins wrote:
 A. Reinhold wrote:
  When selecting messages with the cursor (bar) in the index to tag them or do 
anything else, the index
  scrolls one message line further if the end of the display is reached. Now
  what i would like to have is that the index scrolls...uhhhm let's say 10
  lines further. 
 
 I assume you are referring to the behavior of set menu_scroll?  Mutt
 does not have the ability for the user to specify the number of lines to
 scroll.  You either get one line or one page, which is controled by
 menu_scroll.

-- 
Robert S Conde
PGP Key: 0xE94C96E3


msg26282/pgp0.pgp
Description: PGP signature


Re: Optimizations?

2002-03-27 Thread Jeremy Blosser

On Mar 27, Simon White [[EMAIL PROTECTED]] wrote:
 27-Mar-02 at 08:33, Jeremy Blosser ([EMAIL PROTECTED]) wrote :
  On Mar 27, Simon White [[EMAIL PROTECTED]] wrote:
   Secondly, on a dialup link, it's too slow if you SSH somewhere and you
   have to /compose/ mail. For moving around the screen, even if you're good
   with vim (or whatever you set $THE_ONE_TRUE_EDITOR to) is not responsive
   enough. And if you have a connection that is fast enough not to notice
   that, you can probably download mail fast anyway. I SSH to my workstation
   from a fixed IP authenticated dialup connection at home and it's too slow
   to compose mail, although reading mail is quicker with Mutt than PINE
   running locally and just fetching mail from the server. This is largely
   due to the pager allowing faster browsing of mail.
  
  Weird.  I used to do this all the time before I had DSL, and it was never a
  problem.  And the mail server I was connecting to was a 486 w/12M of RAM.
  The initial connection was slow, but after that it was fine.
  
  Are you using SSH compression?  It helps a lot.
 
 How fast do you type? I'm at ~55wpm if typing easy mail where I don't
 think too much.

Faster than that.

 Not sure if I had compression set. In any case, I don't like ANY delay
 between keypress and letter appearing on screen, since I'm not looking at
 the keys as I type, and if the display is constantly catching up it
 throws me right off.

You probably didn't have compression set.  Try running ssh with the -C
option.  It makes a dramatic difference.



msg26283/pgp0.pgp
Description: PGP signature


Re: Scrolling the Index

2002-03-27 Thread Mike Schiraldi

 Here's a patch. I'm currently using it and haven't seen any problems, but i
 haven't exactly stress-tested it yet, either.

The patch makes mutt act spastic if you set index_context to a huge number
(greater than, approximately, your window size divided by two).

So don't do that.



msg26284/pgp0.pgp
Description: PGP signature


Re: Optimizations?

2002-03-27 Thread Simon White

27-Mar-02 at 11:09, Jeremy Blosser ([EMAIL PROTECTED]) wrote :
 You probably didn't have compression set.  Try running ssh with the -C
 option.  It makes a dramatic difference.

I am running WinME at home. I know, it's a travesty... here are my
excuses:

1) My modem is a winmodem (Kortex PCI 56k) and Linux offline is no fun.
However, I do have a dual boot. I have tried PCTel Linux drivers no luck
so far.

2) My wife likes Windows. Only just got her into computing, it's a bit
early for KDE in English since she is mainly French speaking. I refuse to
have an OS in any other language than English. But Windows isn't an OS so
I can put that in French.

3) I do a lot of digital audio/video stuff and in Linux it's more work
getting my capture card and good audio products than creating the actual
music / video. WinME comes off reasonably well, and I have found it to be
more stable than 98 was, but then I have a custom install of ME (well, as
custom as you can get with a GUI and a few registry hacks).

So, I have PuTTY for SSH, will look into the options and check that out
tonight.

Simon.

-- 
[Simon White. vim/mutt. [EMAIL PROTECTED] GIMPS:57.19% see www.mersenne.org]
Men never do evil so completely and cheerfully as when they do it from
religious conviction.  -- Blaise Pascal
[Arbitrary quotes signature rotation, a simple bash script by Simon White]



Re: Scrolling the Index

2002-03-27 Thread David T-G

Robert --

...and then Robert Conde said...
% 
% You can get half a page, too.  Am I wrong?
% 
% [   Up 1/2 page
% 
% ]   Down 1/2 page

No, you're not wrong, but that isn't exactly what the user wanted.  He
wanted to move the cursor down along the messages and have the index
display follow along.  While I agree that [ and ] are fine and dandy,
that would mean he'd type have to move from j or k over to ][ for the
index and then back to movement, and that all requires some [potentially
distracting] thought anyway.


% 
% -R


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!




msg26286/pgp0.pgp
Description: PGP signature


Re: ignore command does not seem to work

2002-03-27 Thread Rob 'Feztaa' Park


--zYM0uCDKw75PZbzx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Alas! Rocco Rutte spake thus:
   As your X-Uptime header which could be - at least - at bit more
   specific? ;-)
=20
  What are you getting at? ;)
=20
 Sorry, I don't get this one. Either it's too late or I'm too stupid. You
 want to say what?

I believe that's what I just said to you.

--=20
Rob 'Feztaa' Park
[EMAIL PROTECTED]
--
When you're not looking at it, this fortune is written in FORTRAN.

--zYM0uCDKw75PZbzx
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

iD8DBQE8og81PTh2iSBKeccRAk1KAJ91ERAErbixhV9luo830EruYCxI1wCeMlBz
6wsGv8ibizi89VHnVivucIs=
=YZO5
-END PGP SIGNATURE-

--zYM0uCDKw75PZbzx--



Re: Patch: filter-message

2002-03-27 Thread Steve Talley

Yep.  I've gotten this same feedback from a few others.  Modified
patch (w/ mapping to ^\) is attached.

Thanks,

Steve

Jeremy Blosser wrote:

 On Mar 26, Steve Talley [[EMAIL PROTECTED]] wrote:
  filter-message (default: )

 FWIW, the edit-threads patch, which quite a lot of people use, uses
  for one of it's primary functions.


diff -pruN2d mutt-1.3.28.orig/OPS mutt-1.3.28/OPS
--- mutt-1.3.28.orig/OPSSat Jan 27 06:33:53 2001
+++ mutt-1.3.28/OPS Tue Mar 26 10:47:39 2002
@@ -82,4 +82,5 @@ OP_ENTER_MASK enter a file mask
 OP_EXIT exit this menu
 OP_FILTER filter attachment through a shell command
+OP_FILTER_MESSAGE filter message through a shell command
 OP_FIRST_ENTRY move to the first entry
 OP_FLAG_MESSAGE toggle a message's 'important' flag
diff -pruN2d mutt-1.3.28.orig/PATCHES mutt-1.3.28/PATCHES
--- mutt-1.3.28.orig/PATCHESMon Nov 26 12:16:52 2001
+++ mutt-1.3.28/PATCHES Tue Mar 26 10:56:38 2002
@@ -0,0 +1 @@
+patch-1.3.28.st.filter_message.1
diff -pruN2d mutt-1.3.28.orig/commands.c mutt-1.3.28/commands.c
--- mutt-1.3.28.orig/commands.c Thu Nov  8 01:56:48 2001
+++ mutt-1.3.28/commands.c  Tue Mar 26 10:47:39 2002
@@ -301,5 +301,10 @@ void pipe_msg (HEADER *h, FILE *fp, int 
 
 
-/* the following code is shared between printing and piping */
+/*
+ * the following code is shared between printing and piping
+ *
+ * fpfout: NULL to direct the command's STDOUT to mutt's STDOUT, or
+ * non-null to redirect.
+ */
 
 static int _mutt_pipe_message (HEADER *h, char *cmd,
@@ -307,5 +312,6 @@ static int _mutt_pipe_message (HEADER *h
   int print,
   int split,
-  char *sep)
+  char *sep,
+  FILE **fpfout)
 {
   
@@ -330,5 +336,5 @@ static int _mutt_pipe_message (HEADER *h
 #endif
 
-if ((thepid = mutt_create_filter (cmd, fpout, NULL, NULL))  0)
+if ((thepid = mutt_create_filter (cmd, fpout, fpfout, NULL))  0)
 {
   mutt_perror _(Can't create filter process);
@@ -369,5 +375,5 @@ static int _mutt_pipe_message (HEADER *h
  mutt_message_hook (Context, Context-hdrs[Context-v2r[i]], M_MESSAGEHOOK);
  mutt_endwin (NULL);
- if ((thepid = mutt_create_filter (cmd, fpout, NULL, NULL))  0)
+ if ((thepid = mutt_create_filter (cmd, fpout, fpfout, NULL))  0)
  {
mutt_perror _(Can't create filter process);
@@ -386,5 +392,5 @@ static int _mutt_pipe_message (HEADER *h
 {
   mutt_endwin (NULL);
-  if ((thepid = mutt_create_filter (cmd, fpout, NULL, NULL))  0)
+  if ((thepid = mutt_create_filter (cmd, fpout, fpfout, NULL))  0)
   {
mutt_perror _(Can't create filter process);
@@ -426,5 +432,6 @@ void mutt_pipe_message (HEADER *h)
  0, 
  option (OPTPIPESPLIT),
- PipeSep);
+ PipeSep,
+ NULL);
 }
 
@@ -447,5 +454,6 @@ void mutt_print_message (HEADER *h)
  1,
  option (OPTPRINTSPLIT),
- \f) == 0)
+ \f,
+ NULL) == 0)
 mutt_message (h ? _(Message printed) : _(Messages printed));
   else
@@ -454,4 +462,87 @@ void mutt_print_message (HEADER *h)
 }
 
+/*
+ * Filter a single message through the given command
+ */
+int filter_one_message (CONTEXT *ctx, HEADER *h, char *command)
+{
+  FILE *fpfout;
+  char tmp[_POSIX_PATH_MAX];
+  int omagic;
+  int rc;
+  int oerrno;
+  CONTEXT tmpctx;
+
+  _mutt_pipe_message (h, command,
+ option (OPTPIPEDECODE),
+ 0, 
+ option (OPTPIPESPLIT),
+ PipeSep,
+ fpfout);
+
+  /* Create tmp mbox for filter output */
+  mutt_mktemp (tmp);
+  omagic = DefaultMagic;
+  DefaultMagic = M_MBOX;
+  rc = (mx_open_mailbox (tmp, M_APPEND, tmpctx) == NULL) ? -1 : 0;
+  DefaultMagic = omagic;
+
+  if (rc == -1)
+  {
+mutt_error (_(could not create temporary folder: %s), strerror (errno));
+return -1;
+  }
+
+  /* Copy filter output to tmp mbox */
+  rc = mutt_copy_stream (fpfout, tmpctx.fp);
+  oerrno = errno;
+  rc = fflush(tmpctx.fp);
+
+  /* Close stream and tmp mbox */
+  safe_fclose (fpfout);
+  mx_close_mailbox (tmpctx, NULL);
+
+  if (rc == -1)
+  {
+mutt_error (_(could not write temporary mail folder: %s), strerror (errno));
+return -1;
+  }
+
+  /* Replace the selected message with the filter output */
+  return mutt_replace_message (ctx, h, tmp, 0);
+}
+
+/*
+ * Filter a single or tagged messages through a user-specified command
+ */
+int mutt_filter_message (CONTEXT *ctx, HEADER *hdr)
+{
+  int i, j;
+  char buffer[LONG_STRING];
+
+  buffer[0] = 0;
+  if (mutt_get_field (_(Filter command: ), buffer, sizeof (buffer), M_CMD)
+  != 0 || !buffer[0])
+return 0;
+
+  mutt_expand_path (buffer, sizeof (buffer));
+
+  /* 

wrong date / time in emails

2002-03-27 Thread cruciatuz


i had some complaints, that mutt(?) sets the wrong date in my outgoing
email. i checked the date command and my bios-configuration, and both
are ok. where else do i have to check in order to solve this problem?

i use:

System: Linux 2.4.3-20mdk
Mutt: 1.3.27i


mutt -v gives me:

-DOMAIN
-DEBUG
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  
+USE_FCNTL  -USE_FLOCK
+USE_POP  +USE_IMAP  -USE_GSS  -USE_SSL  -USE_SASL  
+HAVE_REGCOMP  -USE_GNU_REGEX  
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
+HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT  
+ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET
+HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  +HAVE_GETADDRINFO  
ISPELL=/usr/bin/ispell
SENDMAIL=/usr/sbin/sendmail
MAILPATH=/var/mail
PKGDATADIR=/usr/local/share/mutt
SYSCONFDIR=/usr/local/etc
EXECSHELL=/bin/sh
-MIXMASTER


current timestamp (date command): 
Mit Mär 27 19:28:42 EST 2002

any opinions?


--
thx in advance,
stefan



msg26289/pgp0.pgp
Description: PGP signature


Re: Optimizations?

2002-03-27 Thread Jeremy Blosser

On Mar 27, Simon White [[EMAIL PROTECTED]] wrote:
 27-Mar-02 at 11:09, Jeremy Blosser ([EMAIL PROTECTED]) wrote :
  You probably didn't have compression set.  Try running ssh with the -C
  option.  It makes a dramatic difference.
 
 So, I have PuTTY for SSH, will look into the options and check that out
 tonight.

It should still help, but probably not as much.  I've not seen a windows
terminal emulator that didn't run a whole lot slower than seemed necessary.



msg26290/pgp0.pgp
Description: PGP signature


Re: wrong date / time in emails

2002-03-27 Thread Simon White

27-Mar-02 at 19:29, cruciatuz ([EMAIL PROTECTED]) wrote :
 
 i had some complaints, that mutt(?) sets the wrong date in my outgoing
 email. i checked the date command and my bios-configuration, and both
 are ok. where else do i have to check in order to solve this problem?
 

The email headers show: 19:29:36 -0500

If you are in Germany, which your domain and time suggest, then this is
not correct. It should be +0100 that appears, I think.

So perhaps you have the right date/time, but the GMT offset is wrong.

-- 
[Simon White. vim/mutt. [EMAIL PROTECTED] GIMPS:57.28% see www.mersenne.org]
IDIOT, n - A member of a large and powerful tribe whose influence in human
affairs has always been dominant and controlling.  -- Ambrose Bierce
[Arbitrary quotes signature rotation, a simple bash script by Simon White]



Irony getting in the way (Was: Re: ignore...)

2002-03-27 Thread Martin Karlsson

* Rob 'Feztaa' Park [EMAIL PROTECTED] [2002-03-27 11.28 -0700]:
 Alas! Rocco Rutte spake thus:
As your X-Uptime header which could be - at least - at bit more
specific? ;-)
  
   What are you getting at? ;)
  
  Sorry, I don't get this one. Either it's too late or I'm too stupid. You
  want to say what?
 
 I believe that's what I just said to you.

Aha, I detect /irony/ at the root of this: :-)

Rob, your X-Uptime header shows even the no. of hundreds odf
seconds; I think Rocco ironically suggests that it perhaps could be
more specific - meaning that he thinks it is _very_ specific.

Note: Theese are my personal observations, and if I have
misinterpreted any of you, I'm very sorry.

Cheers,
-- 
 Martin Karlsson



msg26292/pgp0.pgp
Description: PGP signature


Re: reverse_name question

2002-03-27 Thread Tim Kennedy

Firstly,

Thank you to everyone who pointed me at the options I needed to play with
to get reverse_name working properly.

For the record, the following options are the ones that affect the way that
the reverse_name option functions. (minus 'my_hdr From')

 set realname = Tim Kennedy
 set from = [EMAIL PROTECTED]
 set reverse_name = yes
 set reverse_realname = yes
 set alternates = [EMAIL PROTECTED]|[EMAIL PROTECTED]


Several of you confirmed that I was on the right track, and to play
with the alternates setting.

This led me to check various published .muttrc files and look for different
syntax formats than mine.  I found the following to work:

 set alternates = (abuse|webmaster|sugarat)@(mydomain.com|otherdomain.com)


Once I had this in place, maintaining my other settings, everything works
flawlessly.

As I said in my original post It always seems to be something simple.

Thank you, again.

-Tim Kennedy

--
He's God. He's flighty. First it's a garden, then there's apples, but you 
can't EAT the apples, and there's a man and a women, but they can't bump 
uglies, and then, ah the hell with it, it's cities and smog and wars and 
shit and he's off resting on the seventh day anyway. -- anonymous




Re: wrong date / time in emails

2002-03-27 Thread David Champion

* On 2002.03.27, in 20020328002936.GA2447@blackscarab,
*   cruciatuz [EMAIL PROTECTED] wrote:
 
 i had some complaints, that mutt(?) sets the wrong date in my outgoing
 email. i checked the date command and my bios-configuration, and both
 are ok. where else do i have to check in order to solve this problem?
 ...
 current timestamp (date command): 
 Mit Mär 27 19:28:42 EST 2002

Your header shows the time for U.S. Eastern Standard Time (EST, GMT-5).
Your date command shows GMT+1 time, but calls it EST. Are you sure your
timezone is set correctly? Should you have EET instead?

You didn't say whether you're keeping BIOS time in GMT or not. If not,
you'll need to reset your system/BIOS time after changing your timezone.

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



Re: Optimizations?

2002-03-27 Thread Simon White

27-Mar-02 at 12:39, Jeremy Blosser ([EMAIL PROTECTED]) wrote :
 On Mar 27, Simon White [[EMAIL PROTECTED]] wrote:
  27-Mar-02 at 11:09, Jeremy Blosser ([EMAIL PROTECTED]) wrote :
   You probably didn't have compression set.  Try running ssh with the -C
   option.  It makes a dramatic difference.
  
  So, I have PuTTY for SSH, will look into the options and check that out
  tonight.
 
 It should still help, but probably not as much.  I've not seen a windows
 terminal emulator that didn't run a whole lot slower than seemed necessary.

PuTTY on WinME (PII 350) runs just as fast as a regular ssh session from
my Linux Workstation (PIII 550). I am very happy with it, and it's free.

-- 
[Simon White. vim/mutt. [EMAIL PROTECTED] GIMPS:57.33% see www.mersenne.org]
   /\ASCII Ribbon Campaign
   \ /Respect for open standards
X No HTML/RTF in email
   / \No M$ Word docs in email



Re: Optimizations?

2002-03-27 Thread David T-G

Simon, et al --

...and then Simon White said...
% 
% 27-Mar-02 at 12:39, Jeremy Blosser ([EMAIL PROTECTED]) wrote :
%  On Mar 27, Simon White [[EMAIL PROTECTED]] wrote:
%   27-Mar-02 at 11:09, Jeremy Blosser ([EMAIL PROTECTED]) wrote :
%You probably didn't have compression set.  Try running ssh with the -C
%option.  It makes a dramatic difference.
%   
%   So, I have PuTTY for SSH, will look into the options and check that out
%   tonight.
%  
%  It should still help, but probably not as much.  I've not seen a windows
%  terminal emulator that didn't run a whole lot slower than seemed necessary.
% 
% PuTTY on WinME (PII 350) runs just as fast as a regular ssh session from
% my Linux Workstation (PIII 550). I am very happy with it, and it's free.

Agreed; putty is good.

It also supports compression, but you can't change that once a session is
running.  Fire up putty, load your target profile, and then go down to SSH
on the menu listing on the left side (assuming you are running something
current like 0.51 or better) to find the enable compression checkbox.


% 
% -- 
% [Simon White. vim/mutt. [EMAIL PROTECTED] GIMPS:57.33% see www.mersenne.org]
%/\ASCII Ribbon Campaign
%\ /Respect for open standards
% X No HTML/RTF in email
%/ \No M$ Word docs in email


:-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!




msg26296/pgp0.pgp
Description: PGP signature


Re: Optimizations?

2002-03-27 Thread Simon White

27-Mar-02 at 14:37, David T-G ([EMAIL PROTECTED]) wrote :
 It also supports compression, but you can't change that once a session is
 running.  Fire up putty, load your target profile, and then go down to SSH
 on the menu listing on the left side (assuming you are running something
 current like 0.51 or better) to find the enable compression checkbox.

I figured it out - I only got to read this email once I had already
logged in over SSH (it's so cool to be able to log in to my work PC from
home over SSH) with compression activated.

It is indeed much better, the latency when I type has improved.

All my Mutt colours work beautifully too. Much better than PINE, just for
the colours :)

-- 
[Simon White. vim/mutt. [EMAIL PROTECTED] GIMPS:57.38% see www.mersenne.org]
UNIX is basically a simple operating system, but you have to be a genius
to understand the simplicity.  -- Dennis Ritchie
[Arbitrary quotes signature rotation, a simple bash script by Simon White]



Re: Irony getting in the way (Was: Re: ignore...)

2002-03-27 Thread Rob 'Feztaa' Park


--6sX45UoQRIJXqkqR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Alas! Martin Karlsson spake thus:
 Rob, your X-Uptime header shows even the no. of hundreds odf
 seconds; I think Rocco ironically suggests that it perhaps could be
 more specific - meaning that he thinks it is _very_ specific.

I see... ;)

--=20
Rob 'Feztaa' Park
[EMAIL PROTECTED]
--
It is undignified for a woman to play servant to a man who is not hers.
-- Spock, Amok Time, stardate 3372.7

--6sX45UoQRIJXqkqR
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

iD8DBQE8oiZqPTh2iSBKeccRAvFhAJ407FFOCRRDv1UmZcqOXReAR2Y6IgCeIJRV
skUOUPj1kon9102Wyh6H3jM=
=RN6v
-END PGP SIGNATURE-

--6sX45UoQRIJXqkqR--



Re: Irony getting in the way (Was: Re: ignore...)

2002-03-27 Thread Simon White

27-Mar-02 at 13:07, Rob 'Feztaa' Park ([EMAIL PROTECTED]) wrote :
 Alas! Martin Karlsson spake thus:
  Rob, your X-Uptime header shows even the no. of hundreds odf
  seconds; I think Rocco ironically suggests that it perhaps could be
  more specific - meaning that he thinks it is _very_ specific.
 
 I see... ;)

Did you just make it even more ridiculously accurate, or is that just me?

Maybe Rob is really a python script which takes everything literally?

--
[Simon White. vim/mutt. [EMAIL PROTECTED] GIMPS:57.38% see www.mersenne.org]
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots.  So far, the Universe is winning.  -- Rich Cook
[Arbitrary quotes signature rotation, a simple bash script by Simon White]



Tag or delete by date or age

2002-03-27 Thread Charles Gagnon

Is there a way to tag or delete by date. I use to do this a while back using
mush. Since I have a lot of folders where I get reports (i.e. backup reports
for example), deleting by date was an easy way to keep only the current and
previous month for example. All I would need is a way to say tag/delete
everything older than specific date or even tag/delete everything older
than number of days, whatever is easier.

If it's not in there, it would be a great feature.

-- 
Charles Gagnon   | My views are my views and they
http://unixrealm.com | do not represent those of anybody
[EMAIL PROTECTED]   | but me.

   One tequila, two tequila, three tequila, floor.
-- Dennis Miller



Re: Tag or delete by date or age

2002-03-27 Thread Simon White

27-Mar-02 at 15:07, Charles Gagnon ([EMAIL PROTECTED]) wrote :
 Is there a way to tag or delete by date. I use to do this a while back using
 mush. Since I have a lot of folders where I get reports (i.e. backup reports
 for example), deleting by date was an easy way to keep only the current and
 previous month for example. All I would need is a way to say tag/delete
 everything older than specific date or even tag/delete everything older
 than number of days, whatever is easier.

tag-pattern (usually bound to T)
~d range-range
tag-delete (usually ; then d)

See the manual for patterns, etc.


 If it's not in there, it would be a great feature.

This is easy for Mutt, one of his stock tricks you don't even have to
teach him.

You could write a macro to automatically delete messages older than a
certain date from a certain person, all in one keypress...

One tequila, two tequila, three tequila, floor.
 -- Dennis Miller

-- 
[Simon White. vim/mutt. [EMAIL PROTECTED] GIMPS:57.39% see www.mersenne.org]
History is the version of past events that people have decided to agree
upon.  -- Napoleon Bonaparte
[Arbitrary quotes signature rotation, a simple bash script by Simon White]



Re: Tag or delete by date or age

2002-03-27 Thread David T-G

Charles --

...and then Charles Gagnon said...
% 
% Is there a way to tag or delete by date. I use to do this a while back using

Yes.


% mush. Since I have a lot of folders where I get reports (i.e. backup reports
% for example), deleting by date was an easy way to keep only the current and

Makes sense.


% previous month for example. All I would need is a way to say tag/delete
% everything older than specific date or even tag/delete everything older
% than number of days, whatever is easier.

Well, the really easiest way would be to have procmail sort your backup
reports into folders by month and then you just delete the folder when
you're done :-)


% 
% If it's not in there, it would be a great feature.

See section 4.2, and perhaps 4.3, of the manual and get to work.


% 
% -- 
% Charles Gagnon   | My views are my views and they
% http://unixrealm.com | do not represent those of anybody
% [EMAIL PROTECTED]   | but me.
% 
%One tequila, two tequila, three tequila, floor.
% -- Dennis Miller


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!




msg26302/pgp0.pgp
Description: PGP signature


Re: Irony getting in the way (Was: Re: ignore...)

2002-03-27 Thread David T-G

Simon, et al --

...and then Simon White said...
% 
% 27-Mar-02 at 13:07, Rob 'Feztaa' Park ([EMAIL PROTECTED]) wrote :
%  Alas! Martin Karlsson spake thus:
%   Rob, your X-Uptime header shows even the no. of hundreds odf
%   seconds; I think Rocco ironically suggests that it perhaps could be
%   more specific - meaning that he thinks it is _very_ specific.
%  
%  I see... ;)
% 
% Did you just make it even more ridiculously accurate, or is that just me?

No, he did.  After all, when your uptime is measured in single-digit
hours, you have to have *something* about which to crow, so incredible
accuracy is what he has to choose.


% 
% Maybe Rob is really a python script which takes everything literally?

That would explain the drivel...  If he were a perl script he'd reply
more literately :-)


% 
% --
% [Simon White. vim/mutt. [EMAIL PROTECTED] GIMPS:57.38% see www.mersenne.org]
% Programming today is a race between software engineers striving to build
% bigger and better idiot-proof programs, and the Universe trying to produce
% bigger and better idiots.  So far, the Universe is winning.  -- Rich Cook
% [Arbitrary quotes signature rotation, a simple bash script by Simon White]


:-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!




msg26303/pgp0.pgp
Description: PGP signature


Re: Tag or delete by date or age

2002-03-27 Thread David T-G

Simon, et al --

...and then Simon White said...
% 
% You could write a macro to automatically delete messages older than a
% certain date from a certain person, all in one keypress...

Of course, if you did so, it would be wise to use Nicolas's tag-conditional
patch to ensure that it works as desired even when there are no matches...


% 
% One tequila, two tequila, three tequila, floor.
%  -- Dennis Miller
% 
% -- 
% [Simon White. vim/mutt. [EMAIL PROTECTED] GIMPS:57.39% see www.mersenne.org]
% History is the version of past events that people have decided to agree
% upon.  -- Napoleon Bonaparte
% [Arbitrary quotes signature rotation, a simple bash script by Simon White]


:-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!




msg26304/pgp0.pgp
Description: PGP signature


Re: Tag or delete by date or age

2002-03-27 Thread Shawn McMahon

begin  quoting what mike ledoux said on Wed, Mar 27, 2002 at 03:29:20PM -0500:

gpg: requesting key 57C3430B from wwwkeys.us.pgp.net ...
gpg: key 57C3430B: invalid subkey binding
gpg: key 57C3430B: no valid user IDs
gpg: this may be caused by a missing self-signature



Sign your key and re-submit it.




msg26305/pgp0.pgp
Description: PGP signature


Re: Tag or delete by date or age

2002-03-27 Thread David T-G

Shawn, et al --

...and then Shawn McMahon said...
% 
% begin  quoting what mike ledoux said on Wed, Mar 27, 2002 at 03:29:20PM -0500:
% 
% gpg: requesting key 57C3430B from wwwkeys.us.pgp.net ...
% gpg: key 57C3430B: invalid subkey binding
% gpg: key 57C3430B: no valid user IDs
% gpg: this may be caused by a missing self-signature

Hmmm...  That's not what I got:

  [-- PGP output follows -- Wed Mar 27 15:39:21 2002 --]gpg: Signature made Wed
  +Mar 27 15:29:20 2002 EST using DSA key ID 57C3430B
  gpg: Good signature from mike ledoux [EMAIL PROTECTED]
  gpg: key 7B9F4700: already in trusted key table
  gpg: WARNING: This key is not certified with a trusted signature!
  gpg:  There is no indication that the signature belongs to the owner.
  gpg: Fingerprint: AA02 86F6 FE1B 552C BB86  1D85 E6B8 1D1C 57C3 430B


% 
% 
% Sign your key and re-submit it.

Better check what you have, too.


:-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!




msg26306/pgp0.pgp
Description: PGP signature


Re: Tag or delete by date or age

2002-03-27 Thread Shawn McMahon

begin  quoting what David T-G said on Wed, Mar 27, 2002 at 03:40:46PM -0500:
 
 % Sign your key and re-submit it.
 
 Better check what you have, too.

If my key wasn't signed, GPG wouldn't accept it.




msg26307/pgp0.pgp
Description: PGP signature


Re: Tag or delete by date or age

2002-03-27 Thread David T-G

Shawn --

...and then Shawn McMahon said...
% 
% begin  quoting what David T-G said on Wed, Mar 27, 2002 at 03:40:46PM -0500:
%  
%  % Sign your key and re-submit it.
%  
%  Better check what you have, too.
% 
% If my key wasn't signed, GPG wouldn't accept it.

No, no -- I meant that you had better check your copy of his key; as
shown, it works fine for me.


:-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!




msg26308/pgp0.pgp
Description: PGP signature


Re: Tag or delete by date or age

2002-03-27 Thread Shawn McMahon

begin  quoting what David T-G said on Wed, Mar 27, 2002 at 03:55:19PM -0500:
 
 No, no -- I meant that you had better check your copy of his key; as
 shown, it works fine for me.

I don't have a copy of his key; GPG attempted to import it from the
keyserver, but the one on the keyserver didn't have a self-signature,
so it refused to import it.

Hence, he should sign his key and resubmit it to the keyserver.




msg26309/pgp0.pgp
Description: PGP signature


Re: Tag or delete by date or age

2002-03-27 Thread Steve Talley

You can use folder hooks to delete, say, anything older than a month
that isn't marked important:

folder-hook IN\.mutt 'push D~r1m!~Fenter'

This will be done automatically when you load the specified folder.

Steve

Charles Gagnon wrote:

 Is there a way to tag or delete by date. I use to do this a while back using
 mush. Since I have a lot of folders where I get reports (i.e. backup reports
 for example), deleting by date was an easy way to keep only the current and
 previous month for example. All I would need is a way to say tag/delete
 everything older than specific date or even tag/delete everything older
 than number of days, whatever is easier.

 If it's not in there, it would be a great feature.



Re: wrong date / time in emails

2002-03-27 Thread Sven Guckes

* David Champion [EMAIL PROTECTED] [2002-03-27 18:55]:
 * On 2002.03.27, in 20020328002936.GA2447@blackscarab,
 * cruciatuz [EMAIL PROTECTED] wrote:
  i had some complaints, that mutt(?) sets
  the wrong date in my outgoing email.
  current timestamp (date command):
  Mit Mär 27 19:28:42 EST 2002

 You didn't say whether you're
 keeping BIOS time in GMT or not.
 If not, you'll need to reset your system/BIOS
 time after changing your timezone.

if he's yet another kraut then he should use
MET (Middle European Timezone), of course.
but he be located elsewhere - who knows?
we cannot help him unless he gives more info.

Sven

-- 
Note to experienced users: Please don't encourage anti-support behavior.
Don't try to answer questions from users who don't provide the necessary
information. Guessing what they did is an incredible waste of time. (DJB)



Re: Tag or delete by date or age - pattern ~d

2002-03-27 Thread Sven Guckes

* Charles Gagnon [EMAIL PROTECTED] [2002-03-27 20:07]:
 Is there a way to tag or delete by date.

yes - you can tag messages by pattern ~d
which acceses their date.

 I use to do this a while back using mush. Since I have a
 lot of folders where I get reports (i.e. backup reports
 for example), deleting by date was an easy way to keep
 only the current and previous month for example.
 All I would need is a way to say
 tag/delete everything older than specific date

  ~d dd/mm/-

 or even
 tag/delete everything older than number of days,
 whatever is easier.

this is not included - sorry.

for more info see my setup page, section Moving old messages;
http://www.math.fu-berlin.de/~guckes/mutt/setup.html#moving_mails

Sven

-- 
Sven Guckes  http://www.math.fu-berlin.de/~guckes/mutt/setup.html
Mutt setup from scratch, Sven's sample setup; attribution, limit, list
vs subscribe, histories, mailcap, POP, hooks, use of external pagers,
troubleshooting, adding header lines, from Mozilla to Mutt.



Re: unmessage-hook?

2002-03-27 Thread Jeremy Blosser

On Mar 27, Sven Guckes [[EMAIL PROTECTED]] wrote:
 There is no way to remove a message-hook, is there?
 So once you screw up  with the pattern or whatever then
 you have to correct your setup and restart mutt, right?

unhook message-hook

This removes all message-hooks currently defined, but it's the only option.



msg26313/pgp0.pgp
Description: PGP signature


Re: Tag or delete by date or age - pattern ~d

2002-03-27 Thread Aaron Schrab

At 23:51 +0100 27 Mar 2002, Sven Guckes [EMAIL PROTECTED] wrote:
 * Charles Gagnon [EMAIL PROTECTED] [2002-03-27 20:07]:
  or even
  tag/delete everything older than number of days,
  whatever is easier.
 
 this is not included - sorry.

Wrong.  T~d5d will tag all messages older than 5 days.  w(eek),
m(onth), and y(ear) can also be used in place of the second d.

See the section on Searching by Date (4.2.3 in my copy), especially
the Relative subsection for more info.

-- 
Aaron Schrab [EMAIL PROTECTED]  http://www.schrab.com/aaron/
 ...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and
 the Ugly).  -- Matt Welsh



Re: unmessage-hook? - unhook message-hook

2002-03-27 Thread Sven Guckes

* Jeremy Blosser [EMAIL PROTECTED] [2002-03-27 23:05]:
 On Mar 27, Sven Guckes [[EMAIL PROTECTED]] wrote:
  There is no way to remove a message-hook, is there?
  So once you screw up  with the pattern or whatever then
  you have to correct your setup and restart mutt, right?
 unhook message-hook
 This removes all message-hooks currently
 defined, but it's the only option.

  :-/

thanks for the speedy reply, though! :-)

now I have a workaround and won't
have to restart mutt on my mutt
folder every time.  after all,
reading in 122Mb with 40,500+
mails takes a whole *minute*!  ;-)

Sven  [adding one more item for the pet peeves list]

-- 
Sven Guckes  MUTT PET PEEVES Bad Doggie?
http://www.math.fu-berlin.de/~guckes/mutt/peeves.html



Re: Scrolling the Index - current-{top,middle,bottom}

2002-03-27 Thread Sven Guckes

* A. Reinhold [EMAIL PROTECTED] [2002-03-27 06:44]:
 When selecting messages with the cursor (bar) in the index to tag
 them or do anything else, the index scrolls one message line
 further if the end of the display is reached. Now what i would
 like to have is that the index scrolls...uhhhm let's say 10 lines
 further.  Right now I haven't found something to handle this.
 Any Help?

there is no command which scrolls the index by one line - sorry.

however, there are three nice commands which will
move the current message to the top/middle/bottom
and these usually help me to keep context -
so i have bounce those commands to these keys:

   bind index zt current-top
   bind index zz current-middle
   bind index zb current-bottom

typing zz is what I do very often.  ;-)

Sven

-- 
Sven Guckes  http://www.math.fu-berlin.de/~guckes/mutt/setup.html
Mutt setup from scratch, Sven's sample setup; attribution, limit, list
vs subscribe, histories, mailcap, POP, hooks, use of external pagers,
troubleshooting, adding header lines, from Mozilla to Mutt.



Re: Tag or delete by date or age - pattern ~d

2002-03-27 Thread Sven Guckes

* Aaron Schrab [EMAIL PROTECTED] [2002-03-27 23:14]:
 At 23:51 +0100 27 Mar 2002, Sven Guckes [EMAIL PROTECTED] wrote:
  * Charles Gagnon [EMAIL PROTECTED] [2002-03-27 20:07]:
   or even
   tag/delete everything older than number of days,
   whatever is easier.
  this is not included - sorry.
 Wrong.  T~d5d will tag all messages older than 5 days.

yes - but this is only relative to the *current* date.
I understood that in the context of the given  question
this date shall be relative to a given day - no?
(but, hey, that would be cool, too! :-)

apropos:
anyone have a utility to calculate the
number of days between two given dates?
i mean - easily?  no perl script
with dozens of modules, please!

Sven



Re: Tag or delete by date or age - pattern ~d

2002-03-27 Thread Aaron Schrab

At 00:18 +0100 28 Mar 2002, Sven Guckes [EMAIL PROTECTED] wrote:
 * Aaron Schrab [EMAIL PROTECTED] [2002-03-27 23:14]:
  At 23:51 +0100 27 Mar 2002, Sven Guckes [EMAIL PROTECTED] wrote:
   * Charles Gagnon [EMAIL PROTECTED] [2002-03-27 20:07]:
or even
tag/delete everything older than number of days,
whatever is easier.
   this is not included - sorry.
  Wrong.  T~d5d will tag all messages older than 5 days.
 
 yes - but this is only relative to the *current* date.
 I understood that in the context of the given  question

Older than x days, to me means relative to the current day, no ambiguity
at all in my mind.

 this date shall be relative to a given day - no?

Mutt supports that as well.  See the bit about Error margins, right
before the bit about relative dates.

-- 
Aaron Schrab [EMAIL PROTECTED]  http://www.schrab.com/aaron/
 /earth is 98% full ... please delete anyone you can.



Re: Optimizations?

2002-03-27 Thread Cameron Simpson

On 17:15 27 Mar 2002, Simon White [EMAIL PROTECTED] wrote:
| 2) My wife likes Windows. Only just got her into computing, it's a bit
| early for KDE in English since she is mainly French speaking. I refuse to
| have an OS in any other language than English.

But if you have the KDE internationalisation for France (just a bunch
of message catalogues I thing - an RPM or something similarly easy)
you can run in English and she can run in French. Check out the locale
manual entries.

Windows, of course, will olny do one language on a given install.
(I gather, from the we need Windows JP for testing requests we get
here from our QA department).
-- 
Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/

I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals.
- Winston Churchill (1874-1965)



Re: Using Mutt with a Local Spool *and* Multiple IMAP Servers: (rocky@umuc.edu)

2002-03-27 Thread David DeSimone

Rocky Giannini [EMAIL PROTECTED] wrote:

 account-hook . 'unset imap_user ; set folder=~/Mail'

This is problematic.  The problem is that, when you enter a pathname
like =folder into a send-hook or a $record variable, you might expect
that Mutt simply stores the =folder string in the hook or variable,
and then when it is needed, performs some type of dynamic expansion,
using the current value of $folder, and accesses the path specified.

However, that's not how Mutt works.  Instead, at the time that you
create (instantiate?) the hook or at the time you set the variable, that
is when the current value of $folder will be read, and the full path
expanded at that time.

set folder=/dir1

folder-hook  =folder  'set var=value'

set folder=/dir2

folder-hook  =foobar  'set var=value'

In this example, two send-hooks are created, one on the folder
/dir1/folder, and the other on /dir2/foobar.  If you are expecting
that the second setting of $folder will cause the first hook to be
redefined, so that it is triggered when you switch to /dir2/folder,
you will be sadly mistaken.

-- 
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
Richardson IT|PGP: 5B 47 34 9F 3B 9A B0 0D  AB A6 15 F1 BB BE 8C 44



Re: Tag or delete by date or age - pattern ~d

2002-03-27 Thread David Champion

* On 2002.03.27, in [EMAIL PROTECTED],
*   Sven Guckes [EMAIL PROTECTED] wrote:
 
 apropos:
 anyone have a utility to calculate the
 number of days between two given dates?
 i mean - easily?  no perl script
 with dozens of modules, please!

shell$ ./timediff Wed Mar 27 17:33:00 2002 Wed Mar 22 11:02:19 2002
Difference is 5.27 days.

shell$ env TIMEFMT=%d %b %Y ./timediff 19 Feb 2001 21 Apr 2002
Difference is 426.00 days.

shell$ env TIMEFMT=%D ./timediff 1/1/70 12/31/79
Difference is 3651.00 days.

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


#include stdio.h
#include stdlib.h
#include time.h
#include string.h
#include sysexits.h

#define DEFAULT_FORMAT  %c

char *A0;

main(int argc, char *argv[])
{
time_t   t1, t2;
struct tmtm1, tm2;
char*p, *fmt = DEFAULT_FORMAT;

if (A0 = strchr(argv[0], '/'))
++A0;
else
A0 = argv[0];

if (argc != 3 || (argc  1  !strcmp(argv[1], -h))) {
fprintf(stderr, usage: %s \time1\ \time2\\n, A0);
exit(EX_USAGE);
}

if (p = getenv(TIMEFMT))
fmt = p;

if (strptime(argv[1], fmt, tm1) == NULL ||
strptime(argv[2], fmt, tm2) == NULL) {
fprintf(stderr, %s: bad date for format \%s\\n, A0, fmt);
exit(EX_DATAERR);
}
t1 = mktime(tm1);
t2 = mktime(tm2);

printf(Difference is %-.2f days.\n, (double)abs(t2-t1)/(60*60*24));
exit(EX_OK);
}



Re: unmessage-hook? - unhook message-hook

2002-03-27 Thread Jeremy Blosser

On Mar 28, Sven Guckes [[EMAIL PROTECTED]] wrote:
 * Jeremy Blosser [EMAIL PROTECTED] [2002-03-27 23:05]:
  On Mar 27, Sven Guckes [[EMAIL PROTECTED]] wrote:
   There is no way to remove a message-hook, is there?  So once you
  unhook message-hook
  This removes all message-hooks currently defined, but it's the only
  option.
 
   :-/
...
 Sven  [adding one more item for the pet peeves list]

The un* functions are pretty clean; I doubt it would be very hard to
scratch this one if it itches you.



msg26322/pgp0.pgp
Description: PGP signature


Re: M$ Outhouse E. for UNIX

2002-03-27 Thread Ricardo SIGNES

On Wed, Mar 27, 2002 at 09:33:36AM -0500, Shawn McMahon wrote:
 
 Think of it as like a Linux distribution.  Linux is the OS, RedHat or
 Debian is the distribution.  Saying Solaris is like saying Debian,
 only slower and less free.  :-)
 
Except that Linux is only the kernel.  Linux + GNU + some other files and
configuration is the OS.  That, plus some applications is the distribution.

-- 
rjbs



msg26323/pgp0.pgp
Description: PGP signature


Re: unmessage-hook? - unhook message-hook

2002-03-27 Thread Sven Guckes

* Jeremy Blosser [EMAIL PROTECTED] [2002-03-27 23:49]:
  Sven  [adding one more item for the pet peeves list]
 The un* functions are pretty clean; I doubt it would
 be very hard to scratch this one if it itches you.

so much for theory.

well, i find it bad by design that message-hook
does not have an matching unmessage-hook command.
this should be taken care of before mutt-1.4 ships.
then again, obviously not many people are using it.

maybe I should post a few examples
to mutt-users and comp.mail.mutt?  ;-)

Sven

-- 
message-hook pickone 'set display_filter=/bin/sed -f picky.sed'



Re: timediff - precision?

2002-03-27 Thread Sven Guckes

* David Champion [EMAIL PROTECTED] [2002-03-27 23:46]:
 * Sven Guckes [EMAIL PROTECTED] wrote:
  anyone have a utility to calculate the
  number of days between two given dates?
  i mean - easily?  no perl script
  with dozens of modules, please!
 
 shell$ env TIMEFMT=%D ./timediff 1/1/70 12/31/79
 Difference is 3651.00 days.

thanks David! :-)

  $ TIMEFMT=%D ./timediff 4/6/67 3/28/02
  Difference is 11773.96 days.

uh-oh... .96 days?

Sven

-- 
sure, offtopic - but
highly educational!



Re: timediff - precision?

2002-03-27 Thread Mark J. Reed

On Thu, Mar 28, 2002 at 02:07:59AM +0100, Sven Guckes wrote:
 
   $ TIMEFMT=%D ./timediff 4/6/67 3/28/02
   Difference is 11773.96 days.
Besides the fraction, that's just plain wrong.
1967-04-06 to 2002-03-28 is 12,775 days.  Maybe
your %D is not the same as his %D?  Where did 'timediff' come from?

-- 
Mark REED| CNN Internet Technology
1 CNN Center Rm SW0831G  | [EMAIL PROTECTED]
Atlanta, GA 30348  USA   | +1 404 827 4754 
--
Poverty begins at home.



Re: unmessage-hook? - unhook message-hook

2002-03-27 Thread Jeremy Blosser

On Mar 28, Sven Guckes [[EMAIL PROTECTED]] wrote:
 * Jeremy Blosser [EMAIL PROTECTED] [2002-03-27 23:49]:
   Sven  [adding one more item for the pet peeves list]
  The un* functions are pretty clean; I doubt it would be very hard to
  scratch this one if it itches you.
 
 so much for theory.

?

 well, i find it bad by design that message-hook does not have an
 matching unmessage-hook command.

There's really no difference between 'unmessage-hook', 'unsend-hook',
'unfoo-hook', etc. vs. 'unhook message-hook', etc.  It could be argued
either was cleaner than the other, for different reasons.  In the end it's
just semantics.

But if you don't like it, by all means submit a diff to extend the
functionality.

 this should be taken care of before mutt-1.4 ships.

Er, is there any conceivable change you *don't* think should be done before
1.4 ships?  It's called perspective.  Try it sometime.

 then again, obviously not many people are using it.

?



msg26327/pgp0.pgp
Description: PGP signature


Re: timediff - precision?

2002-03-27 Thread Mark J. Reed

Here's a short (44-line) Perl script that will do the job.  It's not
flexible on the argument format - they have to be -mm-dd - and
it is Perl, but at least it doesn't use a zillion modules.  The only
module it does use is POSIX, and that's only to get the floor() function;
if you aren't going to be dealing with negative years you can get rid
of the use POSIX line and replace floor(...) with int(...).

-- 
Mark REED| CNN Internet Technology
1 CNN Center Rm SW0831G  | [EMAIL PROTECTED]
Atlanta, GA 30348  USA   | +1 404 827 4754 
--
If you are going to walk on thin ice, you may as well dance.


#!/usr/bin/perl
use POSIX;

# calculate the number of days between two Gregorian dates
if (@ARGV != 2)
{
die Usage: $0 -mm-dd1 -mm-dd2\n;
}

my ($from, $to) = @ARGV;

my $from_jd = jd_from_gregorian(split('-',$from));
my $to_jd = jd_from_gregorian(split('-',$to));
print $to_jd - $from_jd, \n;
exit(0);

# Calculate the astronomical Julian Day number as of noon on the given
# (year, month, day).   In this program we don't really need the
# actual JD; any absolute day count would give us the same answer
# without the offset. But it doesn't hurt to use a number that's
# meaningful in other contexts.
sub jd_from_gregorian
{
my ($year, $month, $day) = @_;
my $elapsed_years = $year;

# We start counting from March to keep February from screwing
# up the math
my $months_into_year = $month - 3;
if ($months_into_year  0)
{
$elapsed_years--;
$months_into_year += 12;
}

my $thirty1sts = floor((7*$months_into_year+7)/12);

# JD 1,721,120 began at noon UTC on March 1st, 0 AD (== 1 BC) 
# in the retrojected Gregorian calendar.
return   1_721_120
   + $elapsed_years * 365 
   + floor($elapsed_years/4) 
   - floor($elapsed_years/100)
   + floor($elapsed_years/400) 
   + $months_into_year * 30
   + $thirty1sts 
   + $day 
   - 1;
}



Re: timediff - precision?

2002-03-27 Thread David Champion

* On 2002.03.27, in [EMAIL PROTECTED],
*   Mark J. Reed [EMAIL PROTECTED] wrote:
 On Thu, Mar 28, 2002 at 02:07:59AM +0100, Sven Guckes wrote:
  
$ TIMEFMT=%D ./timediff 4/6/67 3/28/02
Difference is 11773.96 days.
 Besides the fraction, that's just plain wrong.
 1967-04-06 to 2002-03-28 is 12,775 days.  Maybe
 your %D is not the same as his %D?  Where did 'timediff' come from?

I made timediff up on request.

The problem here is probably that the calculations are based on unix
time -- the seconds since 1/1/1970, midnight GMT. The program just
doesn't have good error checking, since it was such a quickie.

shell$ env TZ=GMT perl -e 'require ctime.pl;$t = 0x7fff; print ctime($t);'
Tue Jan 19  3:14:07 GMT 2038

shell$ env TIMEFMT=%m/%d/%Y %H:%M:%S ./timediff 1/19/2038 3:14:07 3/28/2002 
00:00:00
Difference is 11774.25 days.

Pretty close to Sven's example. Artifacts of the absolution of |t1-t2|,
and the fact that strptime() can't make much of a pre-1970 date, because
it has to convert it into post-1970 structures.

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



Re: unmessage-hook? - unhook message-hook

2002-03-27 Thread Sven Guckes

* Jeremy Blosser [EMAIL PROTECTED] [2002-03-28 01:17]:
  i find it bad by design that message-hook does
  not have an matching unmessage-hook command.
 There's really no difference between 'unmessage-hook',
 'unsend-hook', 'unfoo-hook', etc. vs. 'unhook message-hook', etc.
 It could be argued either was cleaner than the other,
 for different reasons.  In the end it's just semantics.

alright - let me rephrase this:

you can add hooks one by one - but apparently
you cannot remove a *specific* hook
which forces you to remove *all* hooks.
now, that's unclean design!
(or am I missing soemthing here?

 But if you don't like it, by all means submit
 a diff to extend the functionality.

i would - but I stopped attempting that.
there's a story behind this - but who cares?

  this should be taken care of before mutt-1.4 ships.
 Er, is there any conceivable change you *don't*
 think should be done before 1.4 ships?

that's why I separated my list of pet peeves
from the wishlist which has many my items.

Sven  [adjusting his display_filter - fun!]



Re: M$ Outhouse E. for UNIX

2002-03-27 Thread Shawn McMahon

begin  quoting what Ricardo SIGNES said on Wed, Mar 27, 2002 at 07:40:44PM -0500:
  
 Except that Linux is only the kernel.  Linux + GNU + some other files and
 configuration is the OS.  That, plus some applications is the distribution.

You're wrong.




msg26331/pgp0.pgp
Description: PGP signature


hiding the pgp sig completely from view?

2002-03-27 Thread Sven Guckes

now, here's the situation:

when the current message has a pgp sig and pgp_verify_sig is set
the mutt will show an error message iwhich is something like this:

  [-- PGP output follows (current time: Thu Mar 28 03:29:50 2002) --]
  [-- End of PGP output --]

  [-- The following data is signed --]

ok.

and when i turn off the verification with
set nopgp_verify_sig' then mutt shows me this:

  [-- Attachment #1 --]
  [-- Type: text/plain, Encoding: quoted-printable, Size: 1.0K --]

and then

  [-- Attachment #2 --]
  [-- Type: application/pgp-signature, Encoding: 7bit, Size: 0.2K --]

  [-- application/pgp-signature is unsupported (use 'v' to view this part) --]

that is, mutts still shows the pgp sig (like an extra attachment).

ok, this text gets its own color and all - that's not so bad.

but - is there a way I can just *hide*
the pgp sig *completely* from view?

Sven  [too tired to test further.. 03:37am]



Re: hiding the pgp sig completely from view?

2002-03-27 Thread Shawn McMahon

begin  quoting what Sven Guckes said on Thu, Mar 28, 2002 at 03:37:11AM +0100:
 
 but - is there a way I can just *hide*
 the pgp sig *completely* from view?

Do you still want to verify the sigs, or not?

If not, you could strip them with procmail.




msg26333/pgp0.pgp
Description: PGP signature


Re: hiding the pgp sig completely from view?

2002-03-27 Thread Jeremy Blosser

On Mar 28, Sven Guckes [[EMAIL PROTECTED]] wrote:
   [-- Attachment #2 --]
   [-- Type: application/pgp-signature, Encoding: 7bit, Size: 0.2K --]
 
   [-- application/pgp-signature is unsupported (use 'v' to view this part) --]
 
 that is, mutts still shows the pgp sig (like an extra attachment).
 
 ok, this text gets its own color and all - that's not so bad.
 
 but - is there a way I can just *hide* the pgp sig *completely* from
 view?

Mutt doesn't see that attachment as any different from any other one when
it isn't verifying them, so no.

You can use your new friend display-filter to gag those lines... you may
get some false-positives though; your original message is a good example.
Messages like that are rare though and the subject matter usually makes it
obvious what they are talking about.



msg26334/pgp0.pgp
Description: PGP signature


Re: hiding the pgp sig completely from view?

2002-03-27 Thread tim lupfer

* thus spaketh Sven Guckes (Mar 28 at 03:37AM):

 but - is there a way I can just *hide*
 the pgp sig *completely* from view?

mutt reads mail--stripping pgp sigs is the job of procmail or the
like -- sorry, couldn't resist :P

-- 
timothy lupfer
http://sadlittleboy.com



Re: hiding the pgp sig completely from view?

2002-03-27 Thread Rob 'Feztaa' Park


--VS++wcV0S1rZb1Fb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Alas! Shawn McMahon spake thus:
 If not, you could strip them with procmail.

Oh, so it's ok to strip sigs with procmail, but not headers? :P

--=20
Rob 'Feztaa' Park
[EMAIL PROTECTED]
--
An honest tale speeds best being plainly told.
-- William Shakespeare, Henry VI

--VS++wcV0S1rZb1Fb
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

iD8DBQE8opyvPTh2iSBKeccRAgucAJ9IGUcJ9ZNQQ2J3dLBuiafs9QNrngCdG0Gq
YLWCyQ9kRtZtol/71a5zv3k=
=fi/o
-END PGP SIGNATURE-

--VS++wcV0S1rZb1Fb--



Re: Saving encrypted

2002-03-27 Thread Magnus Bodin

On Tue, Mar 26, 2002 at 09:20:56AM +1100, David Clarke wrote:
 On Mon, 25 Mar 2002, Alan Batie wrote:
 snip
  
  Sooo, before I waste too much more time on this, I thought I'd see if
  anyone else has solved this problem...
  
 
 The way I got around this problem was to put encrypt-to my-keyid in
 my gnupg options file.  That way all messages are encrypted to me and
 the other person(s).

Wouldn't it be a better solution to keep the whole sent-mail-folder
encrypted to myself using the open/close-hook-thingies in the
compressed-folders-patch? 

Then the security issues with having all external encrypted mail 
being encrypted to self will be gone.

Or is it not possible to use these hooks for the sent-mail-fcc-folder? 

/magnus

-- 
Word of the week: gong ji (cock)
   http://x42.com/i/cn/pct/gong_ji.jpg



Re: hiding the pgp sig completely from view?

2002-03-27 Thread Sven Guckes

* Jeremy Blosser [EMAIL PROTECTED] [2002-03-28 03:39]:
 On Mar 28, Sven Guckes [[EMAIL PROTECTED]] wrote:
[-- Attachment #2 --]
[-- Type: application/pgp-signature, Encoding: 7bit, Size: 0.2K --]
 
  that is, mutts still shows the pgp sig (like an extra attachment).
  is there a way I can just *hide* the pgp sig *completely* from view?

 Mutt doesn't see that attachment as any different from
 any other one when it isn't verifying them, so no.

 You can use your new friend display-filter to gag those lines...

well, I had tried to delete
those lines with sed pattern
  /^\[-- .* --\]$/d
but it did not work.

however, using the
following sed pattern
makes them go away:
  /-- .* --/d

go figure.

of course this might yield
even more false positives.
I'll have to find out why the
first pattern did not work...

and i wonder whether there is a
way to make mutt's reply command
use the filtered text for quoting..

Sven



Re: Saving encrypted

2002-03-27 Thread David Clarke

On Thu, 28 Mar 2002, Magnus Bodin wrote:
 Wouldn't it be a better solution to keep the whole sent-mail-folder
 encrypted to myself using the open/close-hook-thingies in the
 compressed-folders-patch? 
 
 Then the security issues with having all external encrypted mail 
 being encrypted to self will be gone.
 
 Or is it not possible to use these hooks for the sent-mail-fcc-folder? 

Looks like the open and close hooks work fine for this.  I got a message
about the mailbox being corrupted when mail was added to it while it was
open, but the mailbox was fine.  I guess it was just because it had been
modified.   Only problem with this is I have a fairly long passphase and
it gets a bit tedious to type it in every time some mail is added to the
mailbox.

David
 
-- 
All generalizations are false, including this one. -- Mark Twain



Re: hiding the pgp sig completely from view?

2002-03-27 Thread Thomas Huemmler

* Sven Guckes [EMAIL PROTECTED] [02/03/28 07:58]:
 well, I had tried to delete
 those lines with sed pattern
   /^\[-- .* --\]$/d
 but it did not work.
 
 however, using the
 following sed pattern
 makes them go away:
   /-- .* --/d
 
 I'll have to find out why the
 first pattern did not work...

...maybe you'll see clearer, if you look at the pgp attachment in a
signed mail (or after reading chapter 8 in the Mutt-GnuPG-PGP-HOWTO).

HTH,
Thomas 

-- 
Thomas Hümmler * [EMAIL PROTECTED] * http://www.huemmler.de



  1   2   >