Re: idiot requires email help

2000-04-14 Thread Stefan `Sec` Zehl

On Thu, Apr 13, 2000 at 08:31:55PM +, rex wrote:
 On Thu, Apr 13, 2000 at 02:51:19PM -0400, David T-G wrote:
  
  ...and then Belinda Roussel said...
  % I need to send an html web page on Unix and I don't know how to. Could
  % anyone please give me some guidance or direct me to a helpful web site
  
  Although this is the list for users of, and questions specifically
  pertaining to, the mutt mail program, perhaps someone can be of help.
 
 She wants to periodically and automatically mail a web page from *nix
 to a Netscape user and have it appear as HTML, not as raw ASCII. I
 suggested:
 
   You can MIME encode and send from the command line with Mutt:
 
   mutt -s "daily data" -a ~/data.html [EMAIL PROTECTED]  ~/boilerplate_text
 
   "data.html" is the HTML formatted file, "boilerplate_text" is any file 
   (to make mutt happy), and "[EMAIL PROTECTED]" is the recipient address . 

I don't understand why people insist on sending automatic mails with
mutt. It's a nice MUA and all, but for simply sending a single
MIMEencoded file with a content-type other than text/plain it's simply
the wrong tool.

I suggest using metasend from the metmail package. Sending a single file
is as simple as this:

metasend -D "Description" -e base64 -m "image/gif" -f "file_to_send" \
 -s "Mail_Subject" -S 100 -b -t [EMAIL PROTECTED]

for non-binary data use "quoted-printable" or "7bit" instead of base64.

 It seems to work, though there may be better ways. 

I think so. I used mutt some time ago, but I got annoyed by that extra
text/plain part that mutt required to be present.

CU,
Sec
-- 
"Computers make very fast, very accurate, mistakes."



Re: [Announce] Mutt-1.1.10 is out (RELEASE CANDIDATE)

2000-03-30 Thread Stefan `Sec` Zehl

On Thu, Mar 30, 2000 at 06:49:15PM +0200, Thomas Roessler wrote:
 On 2000-03-30 17:11:26 +0100, Edmund GRIMLEY EVANS wrote:
  I'm offering 11 bytes, plus portability.
  Does it work anything like the attached program?
 
 No. Just try
 
   #!/bin/cat

Hm. I had almost the same idea :)

| matrix:~echo 'cat $0'a
| matrix:~chmod a+x a
| matrix:~./a
| cat $0
| matrix:~wc -c a
|7 a

SCNR,
Sec
-- 
The UNIX Guru's View of Sex:
# unzip ; strip ; touch ; finger ; mount ; fsck ; more ; yes ; umount ; sleep



Re: [Announce] mutt-1.1.9 is out - RELEASE CANDIDATE!

2000-03-22 Thread Stefan `Sec` Zehl

On Sun, Mar 19, 2000 at 06:13:16PM -0500, David T-G wrote:
 Now that I can build because I have a working compiler (sorry for the
 noise :-) I would like to look into my favorite feature patches.  I use
   patch-0.00.sec.patchlist.7
   patch-0.95.4.sec.expand_hook.1
[...]
  Can the authors or maintainers of the patches let me know if any
 of them are obsoleted or need to be updated, and where to get them?

I will probably not be updating any patches soon, as I'm still using
mutt-1.0, and I'm happy with it.

CU,
Sec
-- 
Whatever the virtues of balance, it's just a pleasant form of insanity. 

 PGP signature


Re: Count mails

2000-03-18 Thread Stefan `Sec` Zehl

On Sat, Mar 18, 2000 at 11:33:34AM +0100, Dirk Huebner wrote:
 Hi all, 
 
 this is no mutt-specific question, but I'm sure so can give me a
 hint here. 
 
 I would like to examine my existing mail and create a statistic
 about "mails from user per day"
 
 For example: Search for "dirk.g.huebner" in ~/Mail/lists/xxx 
 
 and create the following output. 
 
 Day Total
 01.03.2000:   5
 02.03.2000:   3
 05.03.2000:   6
 ...
 
 Can s.o. point me to an existing script/recipe for that? Haven't found 
 anything...

I'd use something like this:

#!/usr/local/bin/perl -n

BEGIN{
use Date::Parse;
use POSIX;
};

chomp;

if ($hdr){
/^Date:\s+(.*)/  do {$date=$1;};
/^From:\s+(.*)/  do {$from=$1;};
/^$/  do{$hdr=0;$HoH{int(str2time($date)/3600/24)}{$from}++;};
}else{
/^From /  do {$hdr=1; undef $from,$date;};
}

END{
foreach $family ( sort {$a = $b} keys %HoH ) {
print strftime("%d.%m.%Y: {\n",gmtime($family*60*60*24));
for $role ( sort {$HoH{$family}{$a} = $HoH{$family}{$b} }
keys %{ $HoH{$family} } ) {
printf "%3d %s\n",$HoH{$family}{$role},$role;
}
print "}\n";
}
}

which reads a Mailinglist-Folder on stdin, and outputs like this:

17.03.2000: {
  1 Terje Elde [EMAIL PROTECTED]
  1 "Danny O'Brien" [EMAIL PROTECTED]
  1 David DeSimone [EMAIL PROTECTED]
  1 Thomas Roessler [EMAIL PROTECTED]
  2 David T-G [EMAIL PROTECTED]
  2 Charles Curley [EMAIL PROTECTED]
  2 Adahma [EMAIL PROTECTED]
  3 Jason Helfman [EMAIL PROTECTED]
}
18.03.2000: {
  1 David T-G [EMAIL PROTECTED]
  1 Daniel Gerber [EMAIL PROTECTED]
  1 Dirk Huebner [EMAIL PROTECTED]
  1 Shao Zhang [EMAIL PROTECTED]
  1 Daniel Burrows [EMAIL PROTECTED]
  1 Lars Hecking [EMAIL PROTECTED]
}

CU,
Sec
-- 
The attached bug will fix that. 
-- Byrial Jensen [EMAIL PROTECTED] on mutt-dev/21.7.98



Re: Count mails

2000-03-18 Thread Stefan `Sec` Zehl

On Sat, Mar 18, 2000 at 05:39:26PM +0100, Jens Tautenhahn wrote:
[...]
 to decode email-adresses like 
 "Harry =?iso-8859-1?Q?R=FCter?= [EMAIL PROTECTED]"

I've added a 'total' output at the end, lowercasing of the Adresses, and
an optional command line parameter to output only matching adresses.

I've also put this script as "mail_from_stats" at
http://sec.42.org/mutt/contrib/

CU,
Sec
-- 
My biggest problem was when I screwed up the device driver for my eyelids
I couldn't open my eyes to debug them.


#!/usr/local/bin/perl

use Date::Parse;
use POSIX;
use MIME::QuotedPrint;

while (STDIN){
chomp;
if ($hdr){
/^Date:\s+(.*)/  do {$date=$1;};
/^From:\s+(.*)/  do {$from=$1;};
/^$/  do {
$hdr=0;
next if( ($#ARGV+1)  !($from =~ /$ARGV[0]/i));

$mail = decode_qp($from);
$mail =~ s/=\?(?:ISO|iso).+?Q\?(.+)\?=/$1/;
$mail = lc($mail);

$HoH{int(str2time($date)/3600/24)}{$mail}++;
$frm{$mail}++;
};
}else{
/^From /  do {$hdr=1; undef $from,$date;};
}
};

foreach $family ( sort {$a = $b} keys %HoH ) {
print strftime("%d.%m.%Y: {\n",gmtime($family*60*60*24));
for $role ( sort {$HoH{$family}{$a} = $HoH{$family}{$b} } keys %{ 
$HoH{$family} } ) {
printf "%3d %s\n",$HoH{$family}{$role},$role;
}
print "}\n";
}

print "Totals: {\n";
for $key (sort {$frm{$a} = $frm{$b}} keys %frm){
printf "%3d %s\n",$frm{$key},$key;
};
print "}\n";

 PGP signature


Re: why is mutt better?

2000-03-10 Thread Stefan `Sec` Zehl

On Fri, Mar 10, 2000 at 09:38:22AM +0100, Ralf Hildebrandt wrote:
  Having said this, I saw one feature in TheBat that I'd like to see Mutt
  have someday: the ability to create and use templates for new messages,
  replies, forwarded messages, etc.
 
 Definitely. Especially for my administrative mail like: "Your mailserver is
 an open relay", etc.

I personally think this is better done in your editor. I have all my
templates put into ~/.dau/ and use the attached macro set. It's started
with ,dau and opens a window with an ls -l. Wander around with hjkl and
select the appropriate file with enter.

CU,
Sec
-- 
"Computers make very fast, very accurate, mistakes."


" The File-BrowserReader. Very handsome.

map ,dau o~/.dau/"dddu__filelist

" start the file reader. Directory in register d.
map __filelist :split .
!!ls -l d 
__LN-__mm
nn __LN- /[0-9] \K..  \=[0-9]CR3E2l
" crate mapping for enter
noremap __mm :map CR __rm0__LN-mai:r d`a"ay$:q!
@a

" remove mapping
noremap __rm :unmap CRCR

 PGP signature


Re: Reply to full name from alias list

2000-03-09 Thread Stefan `Sec` Zehl

Hi,

On Wed, Mar 08, 2000 at 02:02:23PM +0530, Mrinal Kalakrishnan wrote:
 I was wondering if there is a feature by which, when I reply to, say
 this mailing list ([EMAIL PROTECTED]), the `To:' line should become
 the whole name and address from my alias file - i.e. `The Mutt Users
 List [EMAIL PROTECTED]', instead of what the original sender put
 in his `To:' line.
 
 Hope this was clear enough. I didn't find any option for this in the
 docs (1.1.8i).

Does this patch: 
http://sec.42.org/mutt/patch-0.95.4.sec.reverse_reply.1

| patch-0.95.4.sec.reverse_reply.1:
| extends reverse_alias to also fix the Realnames in outgoing Mail.

Do what you want?

(It applies cleanly to 1.0, i didn't test the development-versions)

CU,
Sec
-- 
One of the main causes of the fall of the Roman Empire
was that, lacking zero, they had now way to indicate
successful termination of their C Programs.



Re: Status flags in 1.1.1

1999-11-23 Thread Stefan `Sec` Zehl

On Tue, Nov 23, 1999 at 06:07:25PM -0500, Jeremy wrote:
 On Mon, Nov 22, 1999 at 01:08:50PM +0100, Sven Guckes wrote:
  * Jeremy ([EMAIL PROTECTED]) [991121 08:46]:
  I just upgraded to 1.1.1.  Previously, if a mail contained attachments
  (which require mailcap to view) they would have an M next to them in
  the index, with the status flags.  They don't anymore.  Is this a
  bug?
  Feature.
 Er, okay... but why?  It was a useful feature, what possible reason could
 there be for removing it?

I don't know, but maybe this helps you:

http://sec.42.org/mutt/patch-0.95.4.sec.mailcap-fix.1
| This patch fixes the mailcap handling for mails which only contain an non
| displayable attachment. It also brings back the 'M' Status character to
| display this kind of mail.

CU,
Sec
-- 
Do not meddle in the affairs of sysadmins,
they are quick to anger and have no need for subtlety.



Re: german letters in iso-8859-1 Code

1999-09-16 Thread Stefan `Sec` Zehl

On Wed, Sep 15, 1999 at 11:02:52PM +0200, Ralf Orlowski wrote:
 My charset is set to iso-8859-1. But if I receive a mail with
 german letters like äöüß in it, this letters always just shown as
 ? in the pager.
 
 Can someone tell me, if I´ve missed a setting I could change, so that
 the pager is able to show all characters that are in the iso-8859-1
 charset.
 I´ve read the documentation know about ten times, but couldn´t find
 anything, that changed that behavior.

You either need to fix you locale settings (LC_CTYPE=de_DE.ISO_8859-1
works for me) or compile mutt with './configure --enable-locales-fix'

CU,
Sec
-- 
Programs that make a computer worth to use: 
FreeBSD, zsh, mutt, wmx, procmail, vim, perl, less, LaTeX, fetch, slrn,
screen, ssh, pgp, ircII, sendfile



Re: automatic shell command

1999-09-07 Thread Stefan `Sec` Zehl

On Tue, Sep 07, 1999 at 10:42:30AM +0100, Axel Tillequin wrote:
 Hi,
 
 Is it possible to have a shell command run each time mutt is opened.
 like if just after mutt comes up, i'd pressed ':command'

I think you mean '!command' (at least in the default keymap)

If you want mutt to do something each start, you could use the push
command. (Look it up in the manual)

push "!fetchmail\n"

or even 

push "^g"

if your macro works

 example:
 I've tried to bypass the builtin ^g (fetch-mail) to use the more
 powerfull
 program called "fetchmail" by putting
 macro generic ^g :fetchmail
 in the .muttrc file.
 problem: the ^g is still bind to the builtin fetch-mail function...like
 if the macro
 is not taken into account at all ?!

I don't have pop support compiled in, so i can't tell for sure, but i
think the default ^g-binding may be in the index/pager keymap where it
has precedence over the generic keymap. So this would help you:

macro index ^g '!fetchmail\n'
macro pager ^g '!fetchmail\n'

Related to this, you could recompile mutt without --enable-pop which
should remove the default ^g-action, too.

CU,
Sec
-- 
It's so nice to be insane, nobody asks you to explain.



Re: How to bind a set of functions to a key?

1999-09-03 Thread Stefan `Sec` Zehl

On Fri, Sep 03, 1999 at 01:08:00PM +0200, Maciej Majchrowski wrote:
 There is a standrard bind such as:
 bind   index   m   'mail'
 
 I want to make something like this:
 bind   index   M   'my_hdr From: [EMAIL PROTECTED]; mail'
 
 But I doesn't work at all :-(

use a macro to do more than one thing,

macro   index   M   ':my_hdr From: [EMAIL PROTECTED]\nmail'

 And second question. How to bind an external command to a key,
 such as F1 is bind to 'zless /usr/doc/mutt/manual.txt.gz'.

macro   index   F1'!zless /usr/doc/mutt/manual.txt.gz'

CU,
Sec
-- 
Working on GUIs rots your brain.
The KDE and GNOME developers are prime examples. -- brandon in asr



Re: Hooks...Done, but one problem.

1999-08-24 Thread Stefan `Sec` Zehl

On Mon, Aug 23, 1999 at 07:12:20PM -0400, Fairlight wrote:
 Nope...tried both and both still act under default folder-hook rules.
 Nice try...other ideas?

I use 

folder-hook =Listen/mutt-   "set strict_threads"

Where '=' is short for $folder which is set to ~/Mail usually

And that works for me.

CU,
Sec
-- 
Since compiler users outnumber compiler writers 1000:1, if it's
possible to save a compiler user 1 hour, it's worth 1000 hours
of the compiler writer's time.



Re: pgp won't work for me

1999-08-23 Thread Stefan `Sec` Zehl

On Mon, Aug 23, 1999 at 12:38:05AM +0200, Martin Maciaszek wrote:
 On Sun, Aug 22, 1999 at 05:28:31PM -0400, Fairlight wrote:
  Where the `yes` is coming from unless you configured it that way, I have
  no idea...


 I tried running yes from the command line. It just spits out
 endless lines with "y\n" (y followed by newline).


yes is probably run, because you told mutt to do so.

In your muttrc you should set $pgp_v2  to the path of the pgp binary,
not to 'yes' 

CU,
Sec
-- 
The attached bug will fix that. 
-- Byrial Jensen [EMAIL PROTECTED] on mutt-dev/21.7.98



Re: Hooks...Done, but one problem.

1999-08-23 Thread Stefan `Sec` Zehl

On Mon, Aug 23, 1999 at 06:29:07PM -0400, Fairlight wrote:
 
 So why won't it match on ~/folders/funnies  ??

Maybe mutt doesn't expand ~ correctly ? Maybe try the full path (or
$HOME) instead?

CU,
Sec
-- 
"Oderint dum metuant. Let them hate so long as they fear."
   -- Lucius Accius (170-90 BC). One of history's earliest BOFHs.



Re: when can Mutt define custom headers?

1999-08-13 Thread Stefan `Sec` Zehl

On Fri, Aug 13, 1999 at 02:51:27AM -0230, Chris Gushue wrote:
 I have a problem with Mutt and two headers I am defining, X-Uptime and
 X-Yoda (see my headers for more). Currently, it seems that Mutt will
 only add these headers when it starts, and not when I send a message. I
 have tried using a send-hook to set it, but it still doesn't seem to
 work. Any ideas?
 
[...]
 send-hook . my_hdr X-Uptime: `uptime`
 send-hook . my_hdr X-Yoda: `yoda`

That's because `s are evaluated when your .muttrc is read. Maybe
something like this helps:

send-hook . 'my_hdr X-Uptime: `uptime`'

CU,
Sec
-- 
If architects built buildings like programmers build programs,
the first woodpecker to come along would destroy civilization.



Re: Feature request (or yet another brainfart by M$?)

1999-08-11 Thread Stefan `Sec` Zehl

On Wed, Aug 11, 1999 at 08:26:40PM +0200, Ralf Hildebrandt wrote:
 On Wed, Aug 11, 1999 at 12:56:14PM -0500, David DeSimone wrote:
 
  This is a feature of the underlying Exchange protocol.  SMTP has no such
  feature.
 
 Hmm, but couldn't mutt support this feature?

And now, for your amusement, i can inform you that it already does :-)

How? Easy, simply send a new mail like this:

| From: [EMAIL PROTECTED]
| Subject: FOLDER INTERNAL DATA, IGNORE
| Supersedes: [EMAIL PROTECTED]
| Expires: Wed, 10 Aug 1999 14:00:43 +0100 (CEST)
| 
| This is an folder internal cancel message, please ignore me :-)

And have the recipient have the following line in his .muttrc:

push D~S|~E\n

(not tested :-)

CU,
Sec
-- 
The UNIX Guru's View of Sex:
# unzip ; strip ; touch ; finger ; mount ; fsck ; more ; yes ; umount ; sleep



Re: 'regular' key not bound error

1999-08-02 Thread Stefan `Sec` Zehl

Hi,

first of all, please adhere to that 70 characters/line limit mail
usually uses. I've take the freedom to reformat your mail.

On Mon, Aug 02, 1999 at 12:44:38PM +0200, Peter Poeml wrote:
 Hi folks, 
 
 I am successfully using mutt on AIX, with a strange problem though. 
 
 In intervals of exactly 5 seconds, mutt reports a "Key is not
 bound"-error, as if I was pressing invalid keys but I am not.
 Annoyingly this is accompanied by a 'beep' every time! 
 
 When I am supposed to enter text like the name of a mailbox to change
 to, I can even see characters appear every 5 seconds, namely a colored
 quotation mark like this: "  

If I remember this correctly, this is a bug in the curses lib you're
using. Try "set timeout=0" in your muttrc.

 Does anyone have an idea how to fix this? I greatly appreciate any help! 

Installing a newer ncurses or slang lib, and linking mutt against this
should help.

CU,
Sec

P.S.: Mailinglist address corrected
-- 
   +--+
   |  Questions Are A Burden  |
   | Answers Are A Prison For Oneself |
   +--+



Re: index_format and folder-hook

1999-07-31 Thread Stefan `Sec` Zehl

Hi,

On Sat, Jul 31, 1999 at 03:31:00PM +0200, Nikolaus Rath wrote:
 hello
 
 When i had wrote the following into my .muttrc
 
 folder-hook sent/   set index_format="%4C %Z %{%b %d} %-15.15t (%4l) %s"

it's a quoting problem. use this:

folder-hook sent/   'set index_format="%4C %Z %{%b %d} %-15.15t (%4l) %s"'

CU,
Sec

P.S.: isn't this in the faq ?
-- 
See above, I´d vote now to remove TCP completely after seeing that results.
-- [EMAIL PROTECTED] on freebsd-ports, 2.Aug.1997



Re: upgraded from 0.93 to 0.95.4i

1999-07-23 Thread Stefan `Sec` Zehl

On Wed, Jul 21, 1999 at 03:12:44PM +0200, Salvatore Greco wrote:
 Good day all,
 
 I upgraded from 0.93 and I used to type mutt -y and get a list of folders that
 I could easily monitor.  When I went into the a folder, and I pressed "i" to
 get to the index again - it used to show the same index that I had with mutt
 -y.
 
 After the upgrade that no longer works - am I doing something wrong - so I
 need to change a setting ?

You probably have/had a macro defined for the letter i. The canonical
way to get to that browser is via c(hange folder) ? and then TAB

Maybe you forgot to keep your .muttrc ?

try inserting

macro index i change-folder?tab

CU,
Sec
-- 
UNIX for the masses: !--#exec cmd="/vmunix.cgi" -- -- Seen in the sdm.



Re: [0.95.6] core dump while sending mail

1999-06-28 Thread Stefan `Sec` Zehl

Hi,

On Wed, Jun 16, 1999 at 05:34:03PM +0200, Gero Treuner wrote:
 What was the value of PidListLen?

(gdb) print PidListLen
$1 = 2

 Hopefully the following patch fixes the problem (removed a race
 condition, please try to repeat your conditions ;-) ...

I will use your later patch. I fear I won't be able to reproduce it,
just because it happened for the first time yesterday, and I do send
quite a lot of mails.

CU,
Sec
-- 
The Feynman problem solving Algorithm
1) Write down the problem
2) Think real hard
3) Write down the answer



Re: mutt -y / browser question

1999-06-14 Thread Stefan `Sec` Zehl

On Mon, Jun 14, 1999 at 03:42:00PM -0700, Jeremy Chadwick wrote:
 Hello,
 
   It's highly probable I'm missing something somewhere, but
   it seems to me that if mutt is invoked via 'mutt -y' (with
   "mailboxes" defined in .muttrc), once you select a mailbox
   to work with, there is no way to get back to the "mailboxes
   browser" menu. I've read two mutt manuals linked off of
   mutt.org, and read through the FAQ.

Simply hit 'c' '?' and then TAB, when coming from the index.

   How does one return to the "mailboxes browser" once one has
   selected a mailbox to view? More specifically, can this
   feature be found to a specific key (not a macro), as I see
   no "function" which gives the user the ability to jump back
   to the browser.

No, there is no function for it, you can only use a macro for this.

   A related question: Is there any way to jump right into the
   "mailboxes browser" without using the -y command line option?
   E.g. something similar to a "startin" directive in .muttrc?

You could try a 'push c?TAB' in your .muttrc

CU,
Sec
-- 
CUSTOMER: "I'm running Windows '95."TECH: "Yes."
CUSTOMER: "My computer isn't working now."  TECH: "Yes, you already said that."
   -- (found in comp.os.linux.misc)



Re: Unfriendly terminal behaviour

1999-06-13 Thread Stefan `Sec` Zehl

On Sun, Jun 13, 1999 at 11:58:20AM -0700, Jeremy Chadwick wrote:
   You keep thinking it's a slang problem -- it is not. The
   problem is not entirely slang, nor is it entirely ncurses.
 
   This is a very common thing in the "free software world."
   Blaming someone else for one's own problems. This is why I
   said I have yet to receive an answer (and still waiting).

I experienced this problem in the past sometimes, but I don't have it
anymore. I now use ncorses and a recent xterm. So at least it can't be
(entirly) mutt's probelm if it works here.

CU,
Sec
-- 
I apologise for the length of this message - Must've booted with the
-vvv switch this morning ...



[0.95.6] tab wierdness

1999-06-06 Thread Stefan `Sec` Zehl

I just noticed a somewhat strange behavior of .95.6 which .95.5 did not
have.

Scenario: Take a Mailbox with several Mails marked as new. Position on
the first one, press ENTER, and read all of them with TAB until you get
taken beack to the index.
With .95.5 you would now be on the message you last read. .95.6 takes
you back to the message you started reading with ENTER.

CU,
Sec
-- 
  If a trainstation is where a train stops, what is a workstation?



Re: macro to step thru mailboxes

1999-05-13 Thread Stefan `Sec` Zehl

On Wed, May 12, 1999 at 08:59:17AM -0400, David Thorburn-Gundlach wrote:
 % #!/bin/sh
 % echo j$HOME/.jay
 % cat $HOME/.jay| tr -d \\012
 
 Couldn't you simply 
 
   #!/bin/sh
   echo -n j  $HOME/.jay
 
 and be done with it?

no,  mutt needs an \n at the end. And If i start playing around wirth a
script, I figured I can make it at least a bit robust so it doesn't fail
if someone clears ~/.jay with "echo ~/.jay"

:-)

CU,
Sec
-- 
Treat your password like your toothbrush. Don't let anybody else use it,
and get a new one every six months.  --Clifford Stoll

 PGP signature


Re: macro to step thru mailboxes

1999-05-12 Thread Stefan `Sec` Zehl

On Wed, May 12, 1999 at 09:13:11AM +0800, [EMAIL PROTECTED] wrote:
 Stefan `Sec` Zehl [EMAIL PROTECTED]
 suggested:
 
  macro index I "c=TabTab`echo -n j$HOME/.jay;cat $HOME/.jay`"  
 
 This does not seem to be incrementing in .jay. I think probably
 these shell commands are only executed when .muttrc is sourced. I
 tried replacing the back quotes with the shell escape (!) and 
 I think this then incremented in .jay. But the
 cat command did not then work. The browser screen just flashes
 and is redrawn, but the reverse video bar does not step down the
 screen. And this is strange, because echo $JAY does work. That
 is, it steps the reverse video bar down the screen. 
 
 I got somewhat confused here, so this above description is not
 an accurate account of the efforts I have made to get this thing
 working. I think I need more knowledge of how mutt passes
 commands and handles standard output. Is this something mutt
 can't do?  

So, i played around with this, and this whole thing is a bit
complicated, because mutt behaves strange in a few areas.

First, you noticed that .jay doesn't get incremented. This is because
mutt only takes the first line it gets from an `-expansion, and only if
it is a full line. I worked around this, by making a little shellsript:

file $HOME/.jayscript

#!/bin/sh
echo j$HOME/.jay
cat $HOME/.jay| tr -d \\012
echo

which has to be set executable (chmod a+x .jayscript)

it eliminates all newlines from .jay with a call to "tr" and terminates
the whole with a newline itself. Also it does increment the number of
j's in $HOME/.jay

then mutt does `-expansion only at parse-time, not at execution-time,
but we can work around this by adding another macro expansion on top
(define a macro in our macro, and call this one)

lastly, key-sequences are expanded, even in '-s (it seems. didn't look
closer) so i had to use \t instead.

so here is the final macro

macro index I ':macro index \cXI "c=\t\t`$HOME/.jayscript`"'\n\cXI

which works for me.

Of course you need to "echo $HOME/.jay" whenever you want to restart
the cycling :-)

CU  HTH,
Sec
-- 
Larry Wall: "Lisp has all the visual appeal of oatmeal
 with nail clippings thrown in."



Re: Error with checking PGP sig

1999-05-09 Thread Stefan `Sec` Zehl

On Sun, May 09, 1999 at 12:03:35PM -0700, brian moore wrote:
 It's still verifying it just fine, just being noisy and telling you that
 it's a detached signature.
 
   It's just the nature of PGP5 to behave that way.
  
  Is there any way to filter these messages or to tell PGP to shut up?
 
 Edit the PGP5 source.  You can make the "/dev/null" message go away if
 you use a language file for PGP (see the Mutt docs).  The other string,
 though, is handled somewhat differently and you'll actually have to
 patch it out of the code (look for 'PGPMSG_SEPSIG').

You could also use the 'condense_pgp' patch on my Mutt patch page
(http://sec.42.org/mutt/) which has about the same effect but solves it
inside mutt.

CU,
Sec
-- 
I apologise for the length of this message - Must've booted with the
-vvv switch this morning ...



Re: macro to step thru mailboxes

1999-05-07 Thread Stefan `Sec` Zehl

On Thu, May 06, 1999 at 10:13:48PM +0800, [EMAIL PROTECTED] wrote:
 What I did was try this macro:
 macro index I "c=TabTab`JAY=j$JAY ; echo $JAY`"   
 I exported JAY through all my initialization files for my login
 and inter/active shells, but it still doesn't work.

I think this won't work because you change the value of the variable
only in a subshell (note that ` create a subshell) and thus mutt's
envirnoment doesn't see the change. But you might try somethign like:

macro index I "c=TabTab`echo -n j$HOME/.jay;cat $HOME/.jay`"  

Which uses a file to stor the 'j's. You'd have to clear this file before
starting mutt, though.

CU,
Sec
-- 
Dennis Ritchie:  "So fsck was originally called something else"
Question:"what was it called?"
Dennis Ritchie:  "Well, the second letter was different."



Re: Send-hook evaluated differently

1999-04-30 Thread Stefan `Sec` Zehl

On Fri, Apr 30, 1999 at 05:15:09PM -0700, Russell Van Tassell wrote:
[..]
 set signature="/usr/bin/cat /usr/home/russell/.signature |"
 
 However, if you wanted to extend that to a send-hook, it barfs -- all of
 the following fail:
 
 send-hook . set signature="/usr/bin/cat /usr/home/russell/.signature |"
 send-hook . set signature=`/usr/bin/cat /usr/home/russell/.signature`
 send-hook . set signature='/usr/bin/cat /usr/home/russell/.signature |'

I guess you're missing the point that you need an additional level of
quoting for any of the hooks.

send-hook . 'set signature="/usr/bin/cat /usr/home/russell/.signature |"'

should do it.

On the other hand, why don't you just use:

set signature=/usr/home/russell/.signature

and

send-hook . "set signature=/usr/home/russell/.signature"


CU,
Sec
-- 
We have always been quite clear that Win95 and Win98 are not the systems
to use if you are in a hostile security environment. We recommend Windows NT
for those environments. -- Paul Leach [EMAIL PROTECTED]



Re: Re: sending postponed messages

1999-04-29 Thread Stefan `Sec` Zehl

On Thu, Apr 29, 1999 at 06:09:00PM +0200, Renaud Colinet wrote:
 Hmm, mutt complains at startup: no such menu
 I tried 'postponed' instead of 'postpone' (the former seems more likely from
 what I read in the manual), but I get the same message.
 I wonder if it recognizes this menu (maybe a problem of version, I use version
 0.91.1)

I use 95.4i and it works here. So I think you migt try upgrading your
mutt.

CU,
Sec
-- 
The attached bug will fix that. 
-- Byrial Jensen [EMAIL PROTECTED] on mutt-dev/21.7.98



Re: Stupid question... unlimit?

1999-04-28 Thread Stefan `Sec` Zehl

On Wed, Apr 28, 1999 at 08:54:27AM -0700, Russell Van Tassell wrote:
 
 Stupid question:  how the heck do I "unlimit" a limit command?
 Normally, I tend to like to limit message down to a certain pattern
 and view just those messages (to make sure I've gotten it right) and
 then perform a specific operation on all of those messages (eg. save
 them to a file or folder after I've read through them); with Mutt,
 this is about the last "serious" thing I've not figured out... at
 least, not figured out how to "undo" the limit once I don't need it
 anymore (I've been using a new limit based on a date sometime in the
 future to get my folder back, if you know what I mean... (*smirk*)).
 Suggestions?  (I know, probably a stupid question, but this is almost
 brainless with Pine -- I assume it has to be just about as difficult,
 here).

You can use any of these patterns at the limit command to effectively
unlimit again:
'all'
'~A'
'.'

or any pattern which matches no message at all.

CU,
Sec

P.S.: this should probably be mentioned in the handbook somewhere. Or is
it already ? 
-- 
Failure is not an option. It comes bundled with your Microsoft product.



Re: Automatic delete after save?

1999-04-26 Thread Stefan `Sec` Zehl

On Mon, Apr 26, 1999 at 12:48:46PM -0500, David DeSimone wrote:
 Stephen Maher [EMAIL PROTECTED] wrote:
 
  I want mutt to automatically delete messages that I save.  Seems
  simple, but after a couple of runs through the docs I still haven't
  found a way to do it.
 
 Um... Mutt always deletes messages after saving them.  It's always done
 that.

And if it didn't, you could do:

bind index v save-message
macro index s ":set noresolve\nd:set resolve\nv"

or even better (as mutt can access funtions without binding them:

macro index s ":set noresolve\nd:set resolve\nsave-message"

CU,
Sec - WHAT am I doing here ?Solving hypothetical problems ? Gotta
  zzz now.
-- 
  Black holes are where GOD is dividing by zero



Re: limit question

1999-04-18 Thread Stefan `Sec` Zehl

On Fri, Apr 16, 1999 at 06:38:17PM -0700, Robert Chien wrote:
 This is good, but wouldn't it be more intuitive to show me all messages
 when the limit is blank? developers, would you consider this?

We had this discussion already. I then wrote a patch to do this (for
.89 - you could get it from
http://sec.42.org/mutt/old/patch-0.89.sec.empty_limit.1
I don't know if it still works)

Further discussion showed that more people prefer the current behavior,
and you always can add a macro to do "l all\n" to your favourite
keybinding.

CU,
Sec
-- 
   Win16, Win32s, Win32c, Win32 - Which API do you want to go today?



Re: current message in shell command

1999-04-11 Thread Stefan `Sec` Zehl

On Sun, Apr 11, 1999 at 11:58:13AM +0200, Holger Eitzenberger wrote:
 Probably i am just too dumb to read but i didn't find the solution
 after looking at the manual.
 
   Any hints?

As someone else said, you have to set 'ispell' to the correct value,
then execute the ispell function. I have the following in my .muttrc:

# ispell in german or english. Dont check quoted Text thus.
macro compose i ":set ispell=newsbody-ispell\nispell" "ispell-english"
macro compose I ":set ispell=newsbody-ispell-d\nispell" "ispell-deutsch"

and in my ~/bin directory:
newsbody-ispell:

#!/bin/sh
newsbody -hqs -n $2 -p ispell -- -x %f

and newsbody-ispell-d:

#!/bin/sh
newsbody -hqs -n $2 -p ispell -- -d deutsch -x %f

Where newsbody is a small program which strips quoted lines before
passing them to ispell. (I forgot where i got it)

CU,
Sec
-- 
www.echolon.int - Finden Sie Ihre E-Mail vom letzten Jahr!



Re: using $index_format in folder-hooks

1999-04-10 Thread Stefan `Sec` Zehl

On Sat, Apr 10, 1999 at 04:22:14PM +0800, [EMAIL PROTECTED] wrote:
 folder-hook . set index_format="%4C %Z %{%b %d} %-15.15L (%4l) %s" 
 folder-hook mua   set index_format="%3C %Z %{%b %d} %-15.15F (%3l) %s"
 folder-hook sla   set index_format="%4C %Z %{%b %d} %-15.15F (%4l) %s"
 
 You can't set index_format in a folder-hook? 

You can, but you should add proper quoting:

folder-hook . 'set index_format="%4C %Z %{%b %d} %-15.15L (%4l) %s"'
folder-hook mua   'set index_format="%3C %Z %{%b %d} %-15.15F (%3l) %s"'
folder-hook sla   'set index_format="%4C %Z %{%b %d} %-15.15F (%4l) %s"'

CU,
Sec

P.S.: this is becoming an faq, do we have an active faq maintainer ?

-- 
Treat your password like your toothbrush. Don't let anybody else use it,
and get a new one every six months.  --Clifford Stoll



Re: mailboxes glob-ing?

1999-04-08 Thread Stefan `Sec` Zehl

On Thu, Apr 08, 1999 at 12:44:03PM +0200, Peter van Dijk wrote:
 Why the fuss, you say? Well.. this .lists file is also in my
 QMAILMFTFILE env.variable, which means qmail-inject will send my
 Mail-Followup-To to these mailinglists when I mail to any of them.

Mutt sould add the Mail-Followup-To-Header on its own, if you hav
'lists' statements for your Mailinglists.

CU,
Sec
-- 
The attached bug will fix that. 
-- Byrial Jensen [EMAIL PROTECTED] on mutt-dev/21.7.98



Re: alternate personal address and buggy folder hooks

1999-04-06 Thread Stefan `Sec` Zehl

On Mon, Apr 05, 1999 at 09:08:11PM -0700, Elad the Etarip wrote:
   It appears that Mutt doesn't forget folder-hook's, once they've
 been used, but keeps using them for each folder I access after that, in other 
 words the folder-hooks appear to be sticky, when they shouldn't be.

No. folder-hooks are intended to be 'sticky'. Instead you should use a
construct like the following:

folder-hook .   unmy_hdr From:
folder-hook mutt-users  my_hdr From: [EMAIL PROTECTED]
folder-hook mutt-devmy_hdr From: sec+mutt-dev
folder-hook pilot-unix  my_hdr From: [EMAIL PROTECTED]

i.e. use a catch-all statement on top to reset your header.

CU,
Sec
-- 
 YKYBRASRTLW this beauty of an acronym parses the first time.
Naaah, YKYBRTTSWYKYBAEWTLWTLW that happens.
   -- Bradley  Dave in ASR



Re: Compressed folders

1999-04-05 Thread Stefan `Sec` Zehl

On Tue, Apr 06, 1999 at 12:28:26AM +0200, [EMAIL PROTECTED] wrote:
 My apologies, I know this subject was treated a while ago, but I lost the
 mail which had this reference.  I mean a pointer to a URL on info about
 compressed mail folders with Mutt;  could anyone refresh my mind, please?

The original site is
http://www.spinnaker.de/mutt/

it is also available from my patch-page at
http://sec.42.org/mutt/

HTH  CU,
Sec
-- 
This article doesn't really cover many specifics, other than to point out
that these pieces of equipment which have been labeled completely obsolete,
still have value and function, and not only to the hacker. -- hir4-5.txt



[0.95.4] mega-feature

1999-03-31 Thread Stefan `Sec` Zehl

Warning
Could not process message with given Content-Type: 
multipart/signed; boundary=aM3YZ0Iwxop3KEKx; micalg=pgp-md5;protocol="application/pgp-signature"




Re: metoo

1999-03-30 Thread Stefan `Sec` Zehl

On Tue, Mar 30, 1999 at 11:56:50AM +0200, Renaud Colinet wrote:
 Reply-To: 
 Hi,

You should keep a blank line between the headers and your mail.

 when i 'group-reply' to a message, mutt doesn't remove me from the recipients
 list, though the 'metoo' variable is not set. Is there any particular variable
 i should set to inform mutt of my address so that it can remove it, or am i
 missing something else ?

Maybe you need to set $alternates (It's a regexp of all your addresses)

Something like
set alternates=sec@.*(camelot.de|muffin.org|42.org|musin.de)

CU,
Sec
-- 
We have always been quite clear that Win95 and Win98 are not the systems
to use if you are in a hostile security environment. We recommend Windows NT
for those environments. -- Paul Leach [EMAIL PROTECTED]



Re: Temporary 'my_hdr'

1999-03-28 Thread Stefan `Sec` Zehl

On Sun, Mar 28, 1999 at 11:30:50AM +0200, Rejo wrote:
 
 I did what you recommended. What i have now is this:
 
 --begin
 send-hook . 'unmy_hdr From:'
 send-hook . 'unmy_hdr Reply-To:'
 [other send-hooks like the following two]
 send-hook '~t [EMAIL PROTECTED]' 'my_hdr From: Rejo 
[EMAIL PROTECTED]'
 send-hook '~t [EMAIL PROTECTED]' 'my_hdr Reply-To: Rejo 
[EMAIL PROTECTED]'
 --end
 
 This causes all the other send-hooks (like to last two above) not to be
 working -or at least, not all of the time. Any idea what's that i'm
 doing wrong here?

Actually i have no idea. The following:
# I hate it, but i gotta do it.
send-hook . unmy_hdr From:
send-hook mutt-usersmy_hdr From: [EMAIL PROTECTED]
send-hook mutt-dev  my_hdr From: sec+mutt-dev

works fine in my .muttrc

Maybe you could find a minimal .muttrc which exhibits the problem and
post it, so we can further investigate ?

CU,
Sec
-- 
I didn't say we *can't* do it. In fact we can. We also can calculate digits
of sqrt(2) in the background, drive space shuttles, or have an AI algorithm
write poems in Swahili while inside the pager.  -- [EMAIL PROTECTED]



Re: Temporary 'my_hdr'

1999-03-28 Thread Stefan `Sec` Zehl

On Sun, Mar 28, 1999 at 05:20:19PM +0200, Rejo wrote:
 Eeuh... i think i have the problem. Your solution does work, but when i
 inserted your lines i accedently deleted on of the excisting lines. And
 then it is of no wonder things do no longer work as expected. Sorry
 about that. :-(

I'm glad that it isn't a bug in mutt :-)

 One other question regarding these send-hooks. When i have entered the
 recepient and subject Mutt reads all of these send-hook lines from top
 to bottom? And that's why you asked me to place this unmu_hdr line in
 front of the others? Is this correct? I just want to understand what
 happens when...

Yes. Send-hooks are searched (and executed) in the order they are
specified in your muttrc.

CU,
Sec
-- 
It's so nice to be insane, nobody asks you to explain.



Re: signature

1999-03-28 Thread Stefan `Sec` Zehl

On Sun, Mar 28, 1999 at 06:47:42PM -0500, Ayman Haidar wrote:
 as you know when you reply to a message, by default the signature will
 be appended to the end of the quoted message.

This is correct.

 is there a way to append it to the beginning of the message, so you can
 type your hole message and the signature before the quoted message.

No, there is currently no way to do this. 
I don't see a reason why this should be made possible. You want to
quote the relevant parts and add your comments below.
Adding the whole message below the signature only makes peole forget
that they should trim the qoted message to the relevant parts.

CU,
Sec
-- 
We have always been quite clear that Win95 and Win98 are not the systems
to use if you are in a hostile security environment. We recommend Windows NT
for those environments. -- Paul Leach [EMAIL PROTECTED]



auto_view 0.95-0.95.4 change ?

1999-03-23 Thread Stefan `Sec` Zehl

I just updated from 0.95 to 0.95.4 and now auto-view doesn't work like
it used to.

I have the following line in my .mailcap:

image/gif; xv %s; x-mozilla-flags=internal

On a Mail which contains only a body of image/gif (and no text at all)
Mutt displayed an 'M' besides the mail and displayed it immedeatly on
pressing enter. (without calling the pager)

Now i only get an:
[-- image/gif is unsupported (use 'v' to view this part) --]

The ChangeLog has not been very helpfull so far. How do I get my old
behaviour back ? 

CU,
Sec
-- 
I think the IDE issue is a good point.  People with IDE hardware in
their machines should be punished by making them wait to boot...
   -- [EMAIL PROTECTED]



Re: auto_view 0.95-0.95.4 change ?

1999-03-23 Thread Stefan `Sec` Zehl

On Tue, Mar 23, 1999 at 08:34:39AM -0500, Vikas Agnihotri wrote:
   set implicit_autoview
 should do what you want, IIRC.

Hm, thanks, but that only seems to be half of it.

Now I get the error message:
mailcap entry for type image/gif not found

(and yes, it is in my .mailcap mutt-0.95 still finds it)

CU,
Sec
-- 
  1. Never challenge a sysadmin to do anything you don't actually want
  him or her to do.



Re: mark messages with an expires date in future?

1999-03-04 Thread Stefan `Sec` Zehl

On Thu, Mar 04, 1999 at 04:09:22PM +, Einar Indridason wrote:
 Yes, I was looking for an easy way within mutt to "this message will expire
 at this time in the future" without having to manually mess with the
 'Expire: ' header.  (I'm still looking :-)

You could pipe it through a small script which calles formail.
snipp
#!/bin/sh
echo -n 'In how many days shall it expire?'
read days

# create full date
date=`date -v +${days}d '+%a, %d %b %Y %T +0100 (%Z)'`

# Add header to mail and send locally.
formail -I "Expires: $date" |mail.local $USER
snapp

and then call it from mutt (nopipe_decode) with '|set_expire\nd'

Which should call the script, and delete the old mail (it should be put
again in your mailbox via the mail.local)

Watch out, if you are not useing an BSD-type system, your mail.local
could have a different name.

beware, this is untested :-)

 Regarding the other question, uninterpreted, raw output, the suggestion:
 :set nopipe_decode
 |less
 
 does what I wanted.  Now I would like to bind this "|less" function to a
 key.  Any suggestions?  (I am reading the manual, and might find the answer
 soon, but if you have an answer to this, and aren't doing anything
 important... hint, hint :-)

macro index V '|less\n'
macro pager V '|less\n'

requires you to have pipe_decode turned off all the time.
If you want it turned on all the time you coud do something like:

macro index V ':set nopipedecode\n|less\n:set pipe_decode\n'
macro pager V ':set nopipedecode\n|less\n:set pipe_decode\n'

CU,
Sec
-- 
I apologise for the length of this message - Must've booted with the
-vvv switch this morning ...



Re: deleted box

1999-02-17 Thread Stefan `Sec` Zehl

On Wed, Feb 17, 1999 at 12:39:20PM -0800, Daniel Eisenbud wrote:
However, the potential
 saving of messages multiple times is annoying, still, and will not be
 infrequent in really busy mailboxes.  However, I don't want to do this
 whole operation with signals blocked.  But I gather that we're not
 supposed to keep the mailbox locked with signals unblocked, right?
 Aargh!  Can someone enlighten me on the issues involved with that?

I'd just set a flag in each message to true when it was successfully
saved to trash. That way you can skip them on the second try.
That then gives you the possibility to have an 'delete to trash' and an
'really delete' op.

CU,
Sec
-- 
It's so nice to be insane, nobody asks you to explain.



Re: send-hook bug?

1999-02-17 Thread Stefan `Sec` Zehl

Warning
Could not process message with given Content-Type: 
multipart/signed; boundary=Kj7319i9nmIyA2yE; micalg=pgp-md5;protocol="application/pgp-signature"




Re: mailing list madness

1999-02-07 Thread Stefan `Sec` Zehl

On Sat, Feb 06, 1999 at 09:55:23PM -0600, David DeSimone wrote:
 Maybe I should start using group-reply at all times, but that gives the
 old dupe-message problem, solved only if the remote users uses Mutt (or
 some sort of de-duping agent; most don't).

not completely correct. Mutt uses 'Mail-Followup-To:' to suppress copies
to you if the sseennddeerr wishes it (by including the Mailinglist in his
'lists' settings.) which is the right way [tm].

 Well, whatever.  I'll keep list-replying for now.

And I will keep group-replying :) [see, you don't receive a Cc:]

CU,
Sec
-- 
In 1968 it took the computing-Power of 2 C-64 to fly a rocket to the moon.
Now, 1997 it takes the Power of a Pentium 133 to run Microsoft Windows 95.
Something must have gone wrong.



Re: replying to this list

1999-02-03 Thread Stefan `Sec` Zehl

Warning
Could not process message with given Content-Type: 
multipart/signed; boundary=Qxx1br4bt0+wmkIi; micalg=pgp-md5;protocol="application/pgp-signature"




Re: Mail transmission question

1999-01-20 Thread Stefan `Sec` Zehl

On Wed, Jan 20, 1999 at 12:49:01PM -0500, Vikas Agnihotri wrote:
 If someone sends me a mail containing the sequence "\n.\n" i.e. it
 happens to contain a line having only a '.', the mail gets chopped off
 at that point i.e. my external ATT MTA treats the '.' as end-of-mail.

If I remember that correctly, on every MTA-MTA or MUA-MTA conversation,
the sender is required to quote such lines by appending a '.' and the
receiver is supposed to remove it again.

So it seems like the MTA which speaks to your ATT MTA is broken (IMHO)

 Is that right? What is the the sending MTA/MUA supposed to be doing
 with such lines? What does Mutt do?

Mutt uses '-oi' on the sendmail commandline to tell sendmail that 
\n.\n on stdin is not EOF.

CU,
Sec
-- 
In 1968 it took the computing-Power of 2 C-64 to fly a rocket to the moon.
Now, 1997 it takes the Power of a Pentium 133 to run Microsoft Windows 95.
Something must have gone wrong.



Re: to/cc/bcc address entry bug

1999-01-19 Thread Stefan `Sec` Zehl

On Mon, Jan 18, 1999 at 09:00:53PM -0800, Joe Rhett wrote:
 Cc: [EMAIL PROTECTED], [EMAIL PROTECTED] _-cursor here
 
 If you type ", [EMAIL PROTECTED]" it works fine. But if you simple type
 another e-mail address, like "[EMAIL PROTECTED]", the Cc: list is
 truncated to simply:
 
 Cc: [EMAIL PROTECTED]
 
 .. I can't imagine that this is an intended effect.

You are wrong, this is indeed intended. Most of the Fields auto-delete
their contents if the user simply starts to type. Only if you use an
editing function, or in this case a , to signal that you want to
modify/add to the existing list, it stays.

CU,
Sec
-- 
 Wie soll ich das aus meinem System wieder herausbekommen?
 Alles hin. Ich brauch einen guten (Block)Vierenkiller? 8)
perl -i.bak -pe 's/4{10,}//' /dev/sd*  -- Florian Weimer