Re: Pager problems in 1.3.27 - libiconv/1.3.28

2002-03-20 Thread Raymond A. Meijer

On Mon, 04 Mar 2002, 16:09, Raymond A. Meijer wrote:

Update...

 If I run mutt version 1.3.27, I get a blank screen when I view a message
 in the pager. The top and bottom lines are there, but the message headers
 and body are not visible.

Still the same problem, now with 1.3.28. I've downloaded, compiled and
installed GNU iconv without problems, but then the mutt configure script
stops near the end:

[...]
checking for iconv... yes
checking for iconv declaration... extern size_t iconv (iconv_t cd, char * *inbuf, 
size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for libintl.h... yes
checking for GNU gettext in libc... yes
checking for dcgettext... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for bison... bison
checking version of bison... 1.32, ok
checking for catalogs to be installed...  de ru it es uk fr pl nl cs id sk
ko el zh_TW zh_CN pt_BR eo gl sv da lt tr ja hu et ca
checking whether this iconv is good enough... no
configure: error: Try using libiconv instead

Where can I find a (lib)iconv that is good enough? :)


Thanks,

Ray

-- 



imap and imaps in one muttrc doesn't work

2002-03-20 Thread Manuel Hendel

Isn't it possible to configure imap and imaps accounts in one
configfile! I tried this but mutt always says SSL not available,
that's OK for me, I don't want SSL for that host. 

Thanks for any hint,
Manuel

-- 
Theology is never any help; it is searching in a dark cellar at midnight for a 
black cat that isn't there. Theologians can persuade themselves of anything. 
-Robert A. Heinlein 



Re: Mutt 1.3.28 + ncurses 5.2 + xterm = blank screen

2002-03-20 Thread Thomas Dickey

On Tue, Mar 19, 2002 at 09:46:08PM -0600, Jeremy Blosser wrote:

  $COLORFGBG is marked as an experimental feature.  I've gotten 2-3 reports
  of this particular problem - but only months after I stumbled on it
  myself.  Apparently one or more of the rpm's last year turned that feature
  on, though it was in the code almost a year.
 
 Well, I think it was more the other bug where it would get turned on if
 other development features like hard-tabs were turned on.  It was
 apparently a combination of these two.

I suppose so - though both features are in the same category (not part of
the default options):

Development Code:
  --with-develop  enable all development options
  --enable-colorfgbg  compile with $COLORFGBG code
  --enable-hard-tabs  compile with hard-tabs code
  --disable-root-environ  limit environment when running as root
  --enable-xmc-glitch compile with limited support for xmc

(noting now that colorfgbg is development rather than experimental,
I guess my reasoning at the time was that it was a small feature that
wouldn't break much ;-).

-- 
Thomas E. Dickey [EMAIL PROTECTED]
http://invisible-island.net
ftp://invisible-island.net



Re: change from header

2002-03-20 Thread David T-G

Eduardo --

...and then Eduardo Gargiulo said...
% 
% another question: is it possible that if i run mutt with -f option, the
% folder-hooks don't work?

Theoretically anything is possible :-)  Practically, though, folder-hooks
work just fine with -f; I do that all the time (in fact, I almost never
'c'hange folders but instead just start a new screen window).


% 
% ~ejg


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!




msg25760/pgp0.pgp
Description: PGP signature


Re: imap and imaps in one muttrc doesn't work

2002-03-20 Thread Michael Tatge

Hi,

Manuel Hendel ([EMAIL PROTECTED]) muttered:
 Isn't it possible to configure imap and imaps accounts in one
 configfile! I tried this but mutt always says SSL not available,
 that's OK for me, I don't want SSL for that host. 

could you give an example of what you're trying to achieve?

Michael
-- 
I did this 'cause Linux gives me a woody.  It doesn't generate revenue.
(Dave '-ddt-` Taylor, announcing DOOM for Linux)

PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key



Re: imap and imaps in one muttrc doesn't work

2002-03-20 Thread Manuel Hendel

On Wed, Mar 20, 2002 at 02:31:21PM +0100, Michael Tatge wrote:
 could you give an example of what you're trying to achieve?
 
I got more than one imap account at more than one impa server. Two of
the servers are using imaps for security reasons and one doesn't. If I
only use the imap account, everything works fine, until I add one of
the imaps accounts. It seams that mutt can't do both from one running
mutt session.

Manuel

-- 
Humor distorts nothing, and only false gods are laughed off their earthly 
pedestals. 
-Agnes Repplier, Points of View 



Message ID availability

2002-03-20 Thread David Collantes

Hi all!

It is possible to print the Message-ID when composing a message? In other 
words, is the Message-ID available at the time of composing or does it get 
generated after? Thanks!

Cheers,

-- 
David Collantes - http://www.bus.ucf.edu/david/
College of Business Administration, University of Central Florida
Peace cannot be kept by force. It can only be achieved by understanding.




smime.p7s
Description: application/pkcs7-signature


Re: imap and imaps in one muttrc doesn't work

2002-03-20 Thread Ralf Hildebrandt

On Wed, Mar 20, 2002 at 03:15:27PM +0100, Manuel Hendel wrote:
 On Wed, Mar 20, 2002 at 02:31:21PM +0100, Michael Tatge wrote:
  could you give an example of what you're trying to achieve?
  
 I got more than one imap account at more than one impa server. Two of
 the servers are using imaps for security reasons and one doesn't. If I
 only use the imap account, everything works fine, until I add one of
 the imaps accounts. It seams that mutt can't do both from one running
 mutt session.

I ususally use:

imaps://imap.web.de
or
imap://haupo:muell@localhost

so where is the problem?

-- 
Ralf Hildebrandt (Im Auftrag des Referat V A)   [EMAIL PROTECTED]
Charite Campus Virchow-Klinikum Tel.  +49 (0)30-450 570-155
Referat V A - Kommunikationsnetze - Fax.  +49 (0)30-450 570-916
Yea, tho I walk thru the valley of the shadow of clues, I shall fear
no luser, for Thou lart with me, Thy chicken and Thy manual, they
comfort me. 




Mutt or MTA issue?

2002-03-20 Thread Javier Sturman

I have multiple addressed handled with Mutt but when I send
a messege with any of them an extra header with from: username@mydomain
is added it doesn't matter if already exists one with any of the email addresses.

Where should I start checking?

Bye!



Re: change from header

2002-03-20 Thread Gary Johnson

On Wed, Mar 20, 2002 at 06:37:45AM -0500, David T-G wrote:
 Eduardo --
 
 ...and then Eduardo Gargiulo said...
 % 
 % another question: is it possible that if i run mutt with -f option, the
 % folder-hooks don't work?
 
 Theoretically anything is possible :-)  Practically, though, folder-hooks
 work just fine with -f; I do that all the time (in fact, I almost never
 'c'hange folders but instead just start a new screen window).

I'm running 1.2.5.  I find that whether folder-hooks work with -f
depends on how the file name is given on the command line.  For example,
folder-hooks work for these:

mutt -f =Incoming/mutt-users
mutt -f ~/Mail/Incoming/mutt-users

but not for this:

mutt -f Mail/Incoming/mutt-users

Gary

-- 
Gary Johnson   | Agilent Technologies
[EMAIL PROTECTED]   | Spokane, Washington, USA
http://www.spocom.com/users/gjohnson/mutt/ |



Re: threading question - sample mailbox?

2002-03-20 Thread Sven Guckes

* Will Yardley [EMAIL PROTECTED] [2002-03-19 21:27]:
 any idea why the subject is sometimes duplicated in threaded displays?
 it seems to happen mainly when the parent is missing; ie:
 
   82  DL Mar 18 Ralf Hildebrandt   (1.0K) --Re: SMTP dialog log
   83 N L Mar 19 Bernd Matthes  (1.0K) `-Re: SMTP dialog log
 
 why wouldn't 82 and 83 look like:
 
   82  DL Mar 18 Ralf Hildebrandt   (1.0K) --Re: SMTP dialog log
   83 N L Mar 19 Bernd Matthes  (1.0K) `-
 
 is it because the parent might have a different subject?

that's most probably the case.

mutt is instructed to show the subject
when it has changed from the previous message.
now, if a message has two followups with a new subject
which happen to be the same then mutt will show both -
even though they are the same.

 i can't seem to get consistent behavior one way or another, so i
 think i'm probably guessing wrong as to the reason for this (because
 if i delete a parent message, the two children give the behavior in
 my second example... what i'd imagine to be the correct behavior).

hmm.. can you type up a sample mailbox which shows this?
You might attach this mailbox and then we can
take a look at it with mutt -f filename etc.

Sven



Re: Message ID availability

2002-03-20 Thread David T-G

David --

...and then David Collantes said...
% 
% Hi all!

Hello!


% 
% It is possible to print the Message-ID when composing a message? In other 
% words, is the Message-ID available at the time of composing or does it get 
% generated after? Thanks!

AFAIK it's generated after, and I've never seen it before sending.  You
*might* be able to generate one with a my_hdr but you should ensure that
it's unique 'cuz that's part of the definition of the field.


% 
% Cheers,

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!




msg25768/pgp0.pgp
Description: PGP signature


Re: change from header

2002-03-20 Thread Eduardo Gargiulo

On Wed, Mar 20, 2002 at 06:32:04AM -0800, Gary Johnson wrote:
 
 I'm running 1.2.5.  I find that whether folder-hooks work with -f
 depends on how the file name is given on the command line.  For example,
 folder-hooks work for these:
 
 mutt -f =Incoming/mutt-users
 mutt -f ~/Mail/Incoming/mutt-users
 
 but not for this:
 
 mutt -f Mail/Incoming/mutt-users

i was using the last.

thanks

~ejg



msg25769/pgp0.pgp
Description: PGP signature


Re: Mutt lies about PGP/GPG signature verification result

2002-03-20 Thread Charles Curley

On Tue, Mar 19, 2002 at 08:12:51PM +, Dave Ewart muttered:
 On Tuesday, 19.03.2002 at 21:00 +0100, Michal Kochanowicz wrote:
 
  On Tue, Mar 19, 2002 at 06:52:50AM -0500, R Signes wrote:
   Define it.
   
   set pgp_good_sign=Good signature
  I did it. And this solves problem with encrypted  signed messages. But
  it still complains that it could not verify signature in messages which
  were _encrypted_ony_.
 
 Well, obviously it _couldn't_ verify the signature - there is no
 signature to verify?!?

Ah, well. Perhaps three possible messages to the user are in order.

Couldn't find a signature.
Found a signature, and it is valid.
Found a signature, and it is invalid.

If there is no signature, then it cannot be valid, and it cannot be
invalid, so let's not confuse the issue (or the user) by saying it is
one or the other.


-- 

Charles Curley  /\ASCII Ribbon Campaign
Looking for fine software   \ /Respect for open standards
and/or web pages?X No HTML/RTF in email
http://w3.trib.com/~ccurley / \No M$ Word docs in email



msg25770/pgp0.pgp
Description: PGP signature


Re: imap and imaps in one muttrc doesn't work

2002-03-20 Thread Manuel Hendel

On Wed, Mar 20, 2002 at 03:27:04PM +0100, Ralf Hildebrandt wrote:
 On Wed, Mar 20, 2002 at 03:15:27PM +0100, Manuel Hendel wrote:
 I ususally use:
 
 imaps://imap.web.de
 or
 imap://haupo:muell@localhost
 
 so where is the problem?

Actually, I do the same. The only difference is, that it is the other
way round in my muttrc:

imap://haupo:muell@localhost
or
imaps://imap.web.de

The problem is, that imap://haupo:muell@localhost is not working
anymore and mutt brings an error messageSSL not available.

manuel

-- 
History is the version of past events that people have decided to agree upon. 
-Napoleon Bonaparte 



Re: imap and imaps in one muttrc doesn't work

2002-03-20 Thread Ralf Hildebrandt

On Wed, Mar 20, 2002 at 04:41:29PM +0100, Manuel Hendel wrote:


 Actually, I do the same. The only difference is, that it is the other
 way round in my muttrc:
 
 imap://haupo:muell@localhost
 or
 imaps://imap.web.de
 
 The problem is, that imap://haupo:muell@localhost is not working
 anymore and mutt brings an error messageSSL not available.

I see. I have a similar problem: 
I have multiple mailboxes on localhost:
imap://haupo:muell@localhost
imap://virusal:muell@localhost
imap://m-daemon:muell@localhost

I can only open ONE, if I try to open the second (using c and typing
the mailbox URL), I get errors (cannot read which, they disappear too
fast) and the message mailbox closed. Then I have to use:
imaps://m-daemon:muell@localhost
instead of
imap://m-daemon:muell@localhost
to get access 8or I have to exit mutt)

-- 
Ralf Hildebrandt (Im Auftrag des Referat V A)   [EMAIL PROTECTED]
Charite Campus Virchow-Klinikum Tel.  +49 (0)30-450 570-155
Referat V A - Kommunikationsnetze - Fax.  +49 (0)30-450 570-916
ThisemailhasbeenbroughttoyoubyJOLTCola,favoredbyssysadmins,netadminsand
programmerseverywhere. JOLTCola--forallthesugarandtwicethecaffine(R). 




Re: threading question - sample mailbox?

2002-03-20 Thread David Ellement

On 020320, at 15:32:27, Sven Guckes wrote
 hmm.. can you type up a sample mailbox which shows this?
 You might attach this mailbox and then we can
 take a look at it with mutt -f filename etc.

I also see this.  Here's an example from this list.

-- 
David Ellement


From [EMAIL PROTECTED] Thu Feb 21 20:23:55 2002
Date: Thu, 21 Feb 2002 20:23:40 -0800
From: Will Yardley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: S/MIME Howto
Message-ID: [EMAIL PROTECTED]
Mail-Followup-To: [EMAIL PROTECTED]
References: [EMAIL PROTECTED]
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: [EMAIL PROTECTED]
User-Agent: Mutt/1.5.0i
Organization: New Dream Network
Sender: [EMAIL PROTECTED]
Precedence: bulk
Status: RO
Content-Length: 629
Lines: 23

David Collantes wrote:

 Does anyone knows where could I find a s/mime howto? I just got 1.5.0i
 and I want to try the s/mime support, but nothing comes with it to set
 it up.

check smime.rc in contrib/, check this site:
http://www.kfu.com/~nsayer/encryption/openssl.html

 How to create my certificate/key? How can I make it(them) 'legal' for
 the top CA? Any help highly appreciated.

you need to get one - thawte has free ones, or you can buy one from
verisign.

also check out smime_keys.pl which you can use to setup most stuff for
you.

-- 
William Yardley
GnuPG public key: http://infinitejazz.net/will/pgp/gpg.asc


From [EMAIL PROTECTED] Fri Feb 22 07:46:06 2002
Date: Fri, 22 Feb 2002 10:45:51 -0500
From: Mike Schiraldi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: S/MIME Howto
Message-ID: [EMAIL PROTECTED]
References: [EMAIL PROTECTED]
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol=application/pgp-signature; boundary=WfZ7S8PLGjBY9Voh
Content-Disposition: inline
In-Reply-To: [EMAIL PROTECTED]
User-Agent: Mutt/1.5.0i
X-Last-Reboot: February 15, 2002 (6 days ago)
Sender: [EMAIL PROTECTED]
Precedence: bulk
Status: RO
Content-Length: 950
Lines: 34


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

 Does anyone knows where could I find a s/mime howto? I just got 1.5.0i and
 I want to try the s/mime support, but nothing comes with it to set it up.
 How to create my certificate/key? How can I make it(them) 'legal' for the
 top CA? Any help highly appreciated.

See doc/smime-notes.txt and contrib/smime.rc. If you have any difficulty at
all or suggestions for improving either of those files, please let me know.


--=20
Mike Schiraldi
VeriSign Applied Research

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

iD8DBQE8dmevJtAqU4k317YRAkKeAKCGtOIVtWiNBU0F81v+UmhJ5lZoaACfaXGc
Xw2DHwryXXoEyRLGaU8KBY8=
=Lbuv
-END PGP SIGNATURE-

--WfZ7S8PLGjBY9Voh--


From [EMAIL PROTECTED] Fri Feb 22 14:55:47 2002
Date: Fri, 22 Feb 2002 17:33:04 -0500
To: Mike Schiraldi [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: S/MIME Howto
Message-ID: [EMAIL PROTECTED]
References: [EMAIL PROTECTED] 
[EMAIL PROTECTED]
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: [EMAIL PROTECTED]
User-Agent: Mutt/1.5.0i
X-Uptime: 67 days
X-GPG-Key: http://www.bus.ucf.edu/david/files/keys.asc
X-URL: http://www.bus.ucf.edu/david/
X-Attachments: Attachments (if any) are safe to open.
X-Composer: GNU nano 1.0.1
X-Priority: 3
Keywords: Friday
Organization: College of Business Administration
From: David Collantes [EMAIL PROTECTED]
X-Id: Mutt Users
Reply-To: David Collantes [EMAIL PROTECTED]
Mail-Followup-To: [EMAIL PROTECTED], [EMAIL PROTECTED]
X-Delivery-Agent: TMDA/0.47+ (Python 2.2 on linux2)
X-TMDA-Fingerprint: VClmtHSmxFQjRkMrsDi1DgHqdxI
Sender: [EMAIL PROTECTED]
Precedence: bulk
Status: RO
Content-Length: 1617
Lines: 51

On Fri, Feb 22, 2002 at 10:45:51AM -0500, Mike Schiraldi wrote:

  Does anyone knows where could I find a s/mime howto? I just got 1.5.0i and
  I want to try the s/mime support, but nothing comes with it to set it up.
  How to create my certificate/key? How can I make it(them) 'legal' for the
  top CA? Any help highly appreciated.
 
 See doc/smime-notes.txt and contrib/smime.rc. If you have any difficulty at
 all or suggestions for improving either of those files, please let me know.

Mike,

I have sucessfully setup smime using THAWTE free and VErisign ($14.95)
certificates. The problem is different now. I can sign and encrypt
messages fine, but only Mutt is able to decrypt. If I open the messages
with Outlook, I can see and verify the signed one's fine, but the
encrypted ones shows:


,---
|
|Error Decrypting Message
|You cannot read the message.
|
|
|
|This might be because: 
|
|You may have lost or deleted the Digital ID that 

Re: account-hook

2002-03-20 Thread Michel

On Tue, Mar 19, 2002 at 12:43:59AM +0100, Johan Ekh wrote:
 Hello!
Hi 
 Mutt gives me the following error account-hook: unknown command.
Your Mutt version don't has this function :( 
 Any ideas? I use SuSE7.2 and my Mutt installation is the standard rpm that
 comes with the distribution.
Try to use fetchmail + procmail + mutt...
If you want to use G command, you can configure this in .muttrc:
# macros
macro index G !fetchmailenter
macro pager G !fetchmailenter

!!! (I don't speak english and I don't find a word to say good bye :)
--
i8u - MichelTS - Curitiba/PR - Brasil



Re: Quoting HTML mail in reply - argh!

2002-03-20 Thread Sven Guckes

* Daniel J Peng [EMAIL PROTECTED] [2002-03-19 22:24]:
 Is there any way to have mutt automatically
 quote HTML mail when I reply to it?

We could tell you - but then we'd have to kill you. ;-)

now, I don't mind the *text* getting quoted.
hint:  doc/manual.txt  5.4.  MIME Autoview

 User-Agent: Mutt/1.3.15i

upgrade!

Sven



disabling save-to-username default

2002-03-20 Thread Nathaniel Irons

I'm trying to write a simple shortcut to save tagged messages to a
specific file.  It looks like this:

  macro index S ;s righthere.mbox Save to this here mailbox

and doesn't work, because mutt prepends the selected message's
author's username to the save path.  I'd appreciate suggestions for
overriding this username default for the macro, or disabling it
altogether.

Thanks.

  -nat



Converting mbox to Maildir

2002-03-20 Thread Tyrin R. Price

Are any tools or guidance available for converting mailboxes
from mbox to Maildir?



Re: disabling save-to-username default

2002-03-20 Thread Shawn McMahon

begin  quoting what David T-G said on Wed, Mar 20, 2002 at 12:39:23PM -0500:
 
 HTH  HAND and none of this is tested :-)

Acronymize that last one.  :-)




msg25779/pgp0.pgp
Description: PGP signature


Re: Converting mbox to Maildir

2002-03-20 Thread Christopher Swingley

Tyrin,

* Tyrin R. Price [EMAIL PROTECTED] [2002-Mar-20 08:38 AKST]:
 Are any tools or guidance available for converting mailboxes
 from mbox to Maildir?

Use mutt.  Tag all the mbox messages (T.*), tag-save (;s=new_maildir)
to the maildir mailbox.  I think you need to create the maildir
directory first, with the requisite tmp/ cur/ and new/ directories
underneath.

Chris
-- 
Christopher S. Swingley   phone: 907-474-2689
Computer Systems Manager  email: [EMAIL PROTECTED]
IARC -- Frontier Program  GPG and PGP keys at my web page:
University of Alaska Fairbankswww.frontier.iarc.uaf.edu/~cswingle



Re: Converting mbox to Maildir

2002-03-20 Thread Magnus Bodin

On Wed, Mar 20, 2002 at 09:38:42AM -0800, Tyrin R. Price wrote:
 Are any tools or guidance available for converting mailboxes
 from mbox to Maildir?

Mutt will do. 

1. Create a maildir. 
2. Open the mbox in mutt.
3. Tag all, save to Maildir.


or if you want to batch it; 
http://www.qmail.org/mbox2maildir

 
/magnus

-- 
Words of the week: gao (tall) ai (short)
   http://x42.com/i/cn/pct/gao-ai.jpg



Re: disabling save-to-username default

2002-03-20 Thread Gary Johnson

On Wed, Mar 20, 2002 at 12:39:23PM -0500, David T-G wrote:
 Nathaniel --
 
 ...and then Nathaniel Irons said...
 % 
 % I'm trying to write a simple shortcut to save tagged messages to a
 % specific file.  It looks like this:
 % 
 %   macro index S ;s righthere.mbox Save to this here mailbox
 % 
 % and doesn't work, because mutt prepends the selected message's
 % author's username to the save path.  I'd appreciate suggestions for
 % overriding this username default for the macro, or disabling it
 % altogether.
 
 You could either turn off $save_name, but have to remember to turn it
 back on, but have to figure out whether or not it was really on before in
 case it wasn't and you shouldn't, or you could just clear the line in
 your macro.  I believe if you insert a ctrl-u before specifying the
 mailbox name you'll get what you want.

Or you can just eliminate the space in your macro.  Either of these will
work:

macro index S ;srighthere.mbox Save to this here mailbox
macro index S ;save-messagerighthere.mbox Save to this here mailbox

I don't know why the space does that, but it's nice to know that it
does.  I'll be using that feature a lot from now on.  I had been
appending to the suggested mailbox name by first backspacing over the
last character, then replacing it.

Gary

-- 
Gary Johnson   | Agilent Technologies
[EMAIL PROTECTED]   | Spokane, Washington, USA
http://www.spocom.com/users/gjohnson/mutt/ |



Re: Converting mbox to Maildir

2002-03-20 Thread John Poltorak

On Wed, Mar 20, 2002 at 09:38:42AM -0800, Tyrin R. Price wrote:
 Are any tools or guidance available for converting mailboxes
 from mbox to Maildir?

Can someone describe the mbox and Maildir formats for me?

Is mbox the same as Unix format?


-- 
John





Re: disabling save-to-username default

2002-03-20 Thread David T-G

Shawn --

...and then Shawn McMahon said...
% 
% begin  quoting what David T-G said on Wed, Mar 20, 2002 at 12:39:23PM -0500:
%  
%  HTH  HAND and none of this is tested :-)
% 
% Acronymize that last one.  :-)

Ha!  NOTIT for you! :-)


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




msg25784/pgp0.pgp
Description: PGP signature


Re: Converting mbox to Maildir

2002-03-20 Thread David T-G

Chris --

...and then Christopher Swingley said...
% 
% * Tyrin R. Price [EMAIL PROTECTED] [2002-Mar-20 08:38 AKST]:
...
%  from mbox to Maildir?
% 
% Use mutt.  Tag all the mbox messages (T.*), tag-save (;s=new_maildir)

Always good to use what's handy :-)


% to the maildir mailbox.  I think you need to create the maildir
% directory first, with the requisite tmp/ cur/ and new/ directories
% underneath.

If you set mbox_type to maildir then when it creates a new box it will do
it all for you; no need to create the dir and subdirs on your own (that
works because mutt can then autodetect the format of the mailbox, even
empty, and fill it).


% 
% Chris
% -- 
% Christopher S. Swingley   phone: 907-474-2689
% Computer Systems Manager  email: [EMAIL PROTECTED]
% IARC -- Frontier Program  GPG and PGP keys at my web page:
% University of Alaska Fairbankswww.frontier.iarc.uaf.edu/~cswingle


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




msg25785/pgp0.pgp
Description: PGP signature


Re: disabling save-to-username default

2002-03-20 Thread David T-G

Gary, et al --

...and then Gary Johnson said...
% 
% On Wed, Mar 20, 2002 at 12:39:23PM -0500, David T-G wrote:
%  
%  ...and then Nathaniel Irons said...
%  % 
%  %   macro index S ;s righthere.mbox Save to this here mailbox
...
%  % overriding this username default for the macro, or disabling it
...
%  your macro.  I believe if you insert a ctrl-u before specifying the
%  mailbox name you'll get what you want.
% 
% Or you can just eliminate the space in your macro.  Either of these will
% work:
% 
% macro index S ;srighthere.mbox Save to this here mailbox
% macro index S ;save-messagerighthere.mbox Save to this here mailbox

Hey, cool!  I didn't even notice that the first time :-)


% 
% I don't know why the space does that, but it's nice to know that it

I'm sure it's documented somewhere, and it makes sense since *NIX doesn't
usually have spaces in filenames and requires escaping to make them work
nicely.


Thanks for noticing!

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




msg25786/pgp0.pgp
Description: PGP signature


Re: Converting mbox to Maildir

2002-03-20 Thread David T-G

John --

...and then John Poltorak said...
% 
% On Wed, Mar 20, 2002 at 09:38:42AM -0800, Tyrin R. Price wrote:
%  Are any tools or guidance available for converting mailboxes
%  from mbox to Maildir?
% 
% Can someone describe the mbox and Maildir formats for me?

Yes. *wink*


% 
% Is mbox the same as Unix format?

Yes, mbox is the same mailbox format that you know from years and years
ago.  Each message is delimited by ^From_ (a newline, From, and a
space) and so matching patterns in the message body are escaped by
prepending a ''.

Maildir is a qmail invention (AFAIK) and does not have locking issues
because each message is in its own file named in a unique way.  There's
more at qmail.org and/or cr.yp.to if you're interested (before anyone
else pipes up here).

There are also MMDF and MH folders, and they are of the one-file-per
variety but don't have the tmp, new, and cur subdirs of Maildir.


% 
% -- 
% John


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!




msg25787/pgp0.pgp
Description: PGP signature


Re: disabling save-to-username default

2002-03-20 Thread Nathaniel Irons

On Wed, Mar 20, 2002 at 09:55:43AM -0800, Gary Johnson wrote:
 On Wed, Mar 20, 2002 at 12:39:23PM -0500, David T-G wrote:
  
  You could either turn off $save_name, but have to remember to turn it
  back on, but have to figure out whether or not it was really on before in
  case it wasn't and you shouldn't

$save_name refers to copies of outgoing messages, correct?  (Otherwise
the documentation is wrong).

 Or you can just eliminate the space in your macro.  Either of these will
 work:

Hey, good tip.  I never would have thought that would parse.  Thanks.

  -nat



Re: Binding both complete and complete-query to tab key

2002-03-20 Thread Sven Guckes

* Tres Hofmeister [EMAIL PROTECTED] [2002-03-20 08:04]:
 I'm wondering if there's a way to bind
 complete and complete-query to the same key,
 rather than two keys as shown in the manual:

you cannot bind two commands to one key.  period.
(which command should mutt execute then?  exactly.)

 I'd like to hit the tab key, and see first
 my aliases matching my string, and the
 results of an external query to an LDAP server.

this is not configurable.  so - write a patch.

 It would also be O.K. to see the external
 query results only if there was no alias match.

if the query returns nothing
then it is ok to see all of it.
huh?

Sven



Re: Converting mbox to Maildir

2002-03-20 Thread Shawn McMahon

begin  quoting what David T-G said on Wed, Mar 20, 2002 at 01:08:56PM -0500:
 
 % Is mbox the same as Unix format?
 
 Yes, mbox is the same mailbox format that you know from years and years
 ago.  Each message is delimited by ^From_ (a newline, From, and a

Well, technically, I don't think UNIX has a mail format.  UNIX doesn't
do mail.

*SENDMAIL* has a mail format, and it's mbox.  Other common UNIX
utilities recognize this format, but UNIX itself doesn't do mail.

BYKT.  :-)




msg25790/pgp0.pgp
Description: PGP signature


Re: save_name is for outbound mails

2002-03-20 Thread Sven Guckes

* Nathaniel Irons [EMAIL PROTECTED] [2002-03-20 18:20]:
 On Wed, Mar 20, 2002 at 09:55:43AM -0800, Gary Johnson wrote:
  On Wed, Mar 20, 2002 at 12:39:23PM -0500, David T-G wrote:
   You could either turn off $save_name, but have to remember
   to turn it back on, but have to figure out whether or not it
   was really on before in case it wasn't and you shouldn't
 $save_name refers to copies of outgoing messages, correct?

correct.  incoming mails is not handled by mutt automatically.
this is a job for the mail delivery agents and mail filters.

Sven



Re: threading question - sample mailbox?

2002-03-20 Thread Will Yardley

Sven Guckes wrote:
 
 hmm.. can you type up a sample mailbox which shows this?
 You might attach this mailbox and then we can
 take a look at it with mutt -f filename etc.

well i'm using Maildir, so that would be a bit difficult. here's a
better example though (from an earlier off list message).

[replying off list since you did; feel free to forward to anywhere
relevant]

 * On 2002.03.19, in [EMAIL PROTECTED],
   Will Yardley [EMAIL PROTECTED] wrote:

  guessing wrong as to the reason for this (because if i delete a parent
  message, the two children give the behavior in my second example... what
  i'd imagine to be the correct behavior).
 
 Hmm .. what if you delete the parent, exit, and look again in a new
 process?

well, the behavior seems inconsistent.

if i do:

 107 N L Mar 19 Jack Sasportas (1.1K) OT Anti-Spam ?
 108 N L Mar 19 Ralf Hildebrandt   (1.4K) |-
 109 N L Mar 19 Marco d'Itri   (0.4K) |-
 110 N L Mar 19 Marco d'Itri   (0.3K) `*
 111 N L Mar 19 George Pajari  (0.6K)   `-

and delete the parent, first child, and then sync, i get:

 107   L Mar 19 Marco d'Itri   (0.4K) Re: OT Anti-Spam ?
 108 N L Mar 19 Marco d'Itri   (0.3K) `*   
 109 N L Mar 19 George Pajari  (0.6K)   `-

if i re-enter the folder, i get the same thing.

same if i leave the parent, but delete two messages in the middle of a
thread; ie:

  89 N L Mar 19 Chris Evans(0.6K) letting in mail from postmaster@ and abuse@ 
from blocked I
  90 N L Mar 19 Ralf Hildebrandt   (0.8K) `-
  91 N L Mar 19 Chris Evans(1.1K)   `-
  92 N L Mar 19 Ralf Hildebrandt   (1.5K) `-


  89 N L Mar 19 Chris Evans(0.6K) letting in mail from postmaster@ and abuse@ 
from blocked I
  90   L Mar 19 Chris Evans(1.1K) `-

so i can't figure out why the subject is sometimes there multiple times;
when i try to reproduce it, it seems to behave as i'd expect it would.

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




Re: disabling save-to-username default

2002-03-20 Thread David T-G

Nat --

...and then Nathaniel Irons said...
% 
% On Wed, Mar 20, 2002 at 09:55:43AM -0800, Gary Johnson wrote:
%  On Wed, Mar 20, 2002 at 12:39:23PM -0500, David T-G wrote:
%   
%   You could either turn off $save_name, but have to remember to turn it
%   back on, but have to figure out whether or not it was really on before in
%   case it wasn't and you shouldn't
% 
% $save_name refers to copies of outgoing messages, correct?  (Otherwise
% the documentation is wrong).

Hmmm...  Yes, it does, and the doc isn't wrong, but I was thinking that
it would also direct mutt to save a message there instead of in $record.
I haven't tried it, though, so I can't say for sure.  Perhaps mbox-hook
would be a better way to approach it -- if, of course, Gary hadn't helped
us out!


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!




msg25793/pgp0.pgp
Description: PGP signature


Re: Binding both complete and complete-query to tab key

2002-03-20 Thread Shawn McMahon

begin  quoting what Sven Guckes said on Wed, Mar 20, 2002 at 07:21:23PM +0100:
 
 you cannot bind two commands to one key.  period.
 (which command should mutt execute then?  exactly.)

The first one bound, followed by the second one?




msg25794/pgp0.pgp
Description: PGP signature


Re: Converting mbox to Maildir

2002-03-20 Thread Tyrin R. Price

Quoting Christopher Swingley [EMAIL PROTECTED]:
 Use mutt.  Tag all the mbox messages (T.*), tag-save (;s=new_maildir)
 to the maildir mailbox.  I think you need to create the maildir
 directory first, with the requisite tmp/ cur/ and new/ directories
 underneath.
Thanks, Chris.
I am using exim, fetchmail (running a global rc file in daemon mode), and 
procmail.  From what I've read online I can remove the trailing : (for file 
locking) and just add a / to the destination in my procmail recipe to deliver 
mail in Maildir format.  Is this correct?
So I just use your tip above, change my muttrc to use Maildir type mailboxes, 
change my procmail recipes and I should be good to go, right?

Resent-Date: Wed, 20 Mar 2002 10:29:39 -0800 (PST)
Resent-From: [EMAIL PROTECTED]
Resent-To: [EMAIL PROTECTED]
Resent-Message-ID: [EMAIL PROTECTED]

Quoting Christopher Swingley [EMAIL PROTECTED]:

 Use mutt.  Tag all the mbox messages (T.*), tag-save (;s=new_maildir)
 to the maildir mailbox.  I think you need to create the maildir
 directory first, with the requisite tmp/ cur/ and new/ directories
 underneath.

Thanks, Chris.

I am using exim, fetchmail (running a global rc file in daemon mode), and 
procmail.  From what I've read online I can remove the trailing : (for file 
locking) and just add a / to the destination in my procmail recipe to deliver 
mail in Maildir format.  Is this correct?

So I just use your tip above, change my muttrc to use Maildir type mailboxes, 
change my procmail recipes and I should be good to go, right?




Re: save_name is for outbound mails

2002-03-20 Thread David T-G

Sven --

...and then Sven Guckes said...
% 
% * Nathaniel Irons [EMAIL PROTECTED] [2002-03-20 18:20]:
%  On Wed, Mar 20, 2002 at 09:55:43AM -0800, Gary Johnson wrote:
%   On Wed, Mar 20, 2002 at 12:39:23PM -0500, David T-G wrote:
%You could either turn off $save_name, but have to remember
...
%  $save_name refers to copies of outgoing messages, correct?
% 
% correct.  incoming mails is not handled by mutt automatically.
% this is a job for the mail delivery agents and mail filters.

What does this thread have to do with incoming mail and, therefore,
filters?


% 
% Sven


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




Re: Converting mbox to Maildir

2002-03-20 Thread David Collantes

On 03-20-2002 at 13:02 EST, Shawn McMahon [EMAIL PROTECTED] wrote:

 *SENDMAIL* has a mail format, and it's mbox.  Other common UNIX
 utilities recognize this format, but UNIX itself doesn't do mail.

Local Delivery Agent handles that. Sendmail does not have a mail format. I 
run Sendmail and use Maildir (compliments of Procmail).

Cheers,

-- 
David Collantes - http://www.bus.ucf.edu/david/
College of Business Administration, University of Central Florida
Common sense is the collection of prejudices acquired by age eighteen.




smime.p7s
Description: application/pkcs7-signature


Re: Converting mbox to Maildir

2002-03-20 Thread Dan Boger

On Wed, Mar 20, 2002 at 01:21:08PM -0500, Shawn McMahon wrote:
 begin  quoting what David T-G said on Wed, Mar 20, 2002 at 01:08:56PM -0500:
  
  % Is mbox the same as Unix format?
  
  Yes, mbox is the same mailbox format that you know from years and years
  ago.  Each message is delimited by ^From_ (a newline, From, and a
 
 Well, technically, I don't think UNIX has a mail format.  UNIX doesn't
 do mail.
 
 *SENDMAIL* has a mail format, and it's mbox.  Other common UNIX
 utilities recognize this format, but UNIX itself doesn't do mail.

well, if you want to be pickey, sendmail doesn't deal with mailboxes
either.  the MDA does, though which defined the format for the mbox, I'm
not sure.  I would believe it's a unix standard, part of the unix
operating system, but can't back that up with facts. 

the mbox manpage does mention this, under history:

   The mbox format occured in Version 6 ATT Unix.
   A variant of this format was documented in RFC 976.

:)


-- 
Dan Boger
[EMAIL PROTECTED]



msg25798/pgp0.pgp
Description: PGP signature


Re: Forward an email with attachements

2002-03-20 Thread James Hamilton


The one that worked best for me was 

set mime_forward=ask-no

Then it asks if you want to forward as mime or not I think there's an ask-yes
too.

On Sun, Oct 21, 2001 at 08:58:25AM -0500, Jinchao Xu wrote:
 I would appreciate any hint on how to forward a whole
 message including all attachements.  Using f within
 mutt seems to ignore the attachments.  Thanks.  Jinchao

-- 


James Hamilton  | Take heed: Perl, like most powerful languages, allows
Southwest Cyberport | you to nuke your filesystem without breaking a sweat.
505-232-7992| --David N. Blank-Edelman  




Re: Converting mbox to Maildir

2002-03-20 Thread Aaron Schrab

At 13:08 -0500 20 Mar 2002, David T-G [EMAIL PROTECTED] wrote:
 There are also MMDF and MH folders, and they are of the one-file-per
 variety but don't have the tmp, new, and cur subdirs of Maildir.

True for MH, but not MMDF.  MMDF has all the messages in one file, like
mbox, but uses \001\001\001\001\n as the separator rather than ^From_ .

-- 
Aaron Schrab [EMAIL PROTECTED]  http://www.schrab.com/aaron/
 What kind of head of security would I be if I let people like me know
 things that I'm not supposed to know?-- Garibaldi



Re: Binding both complete and complete-query to tab key

2002-03-20 Thread Gary Johnson

On Wed, Mar 20, 2002 at 12:43:19AM -0700, Tres Hofmeister wrote:
   I'm wondering if there's a way to bind complete and
 complete-query to the same key, rather than two keys as shown in
 the manual:
 
Tab   completecomplete filename or alias
^T  complete-query  complete address with query
 
   I'd like to hit the tab key, and see first my aliases matching
 my string, and then the results of an external query to an LDAP server.
 It would also be O.K. to see the external query results only if there
 was no alias match.
 
   I have the LDAP query working, but at the moment it is bound
 to ^T.  Is this even possible?  Any suggestions?  Thanks...

Here's a thought.  Have you looked into the Little Brother's Database?
It's a really neat tool for accessing a collection of various address
databases from one interface.  You could use the m_muttalias and m_ldap
modules to query both your mutt aliases file and your LDAP server.  Then
you could either let mutt display all the addresses found, as it usually
does, or you could define mutt's query_command like this:

set query_command=lbdbq '%s' | sed '3,\$d'

and select only the first result returned by lbdbq.  You can configure
lbdbq so that the first result is the one from your mutt aliases file.
And of course the solution using sed assumes that you always want the
first result and it won't even show you multiple matches, but maybe you
can tune this to get what you want in your situation.

You can find out more about The Little Brother's Database here:

http://www.spinnaker.de/lbdb/

HTH,
Gary

-- 
Gary Johnson   | Agilent Technologies
[EMAIL PROTECTED]   | Spokane, Washington, USA
http://www.spocom.com/users/gjohnson/mutt/ |



Re: Defanged HTML headers [WAS: Re: [Announce] Mutt 1.3.28 (BETA) is out.]

2002-03-20 Thread Thomas Hurst

* Cedric Duval ([EMAIL PROTECTED]) wrote:

 John Buttery said:
  * Carl B. Constantine [EMAIL PROTECTED] [2002-03-18 08:43:58
  -0800]:
  HEADDEFANGED_META HTTP-EQUIV=REFRESH CONTENT=0
  URL=http://cedricduval.free.fr/mutt/;/HEAD

 Really, is there some content that could be seen as malicious in
 this page?

Yes.  The 0 means the refresh is instantanious, which breaks the back
button on most browsers.

This is why HTTP supports redirection; meta refresh is a lame-ass hack,
and should be avoided, especially in these circumstances.

-- 
Thomas 'Freaky' Hurst  -  [EMAIL PROTECTED]  -  http://www.aagh.net/
-
Tip of the Day:
Never fry bacon in the nude.



Re: Converting mbox to Maildir

2002-03-20 Thread David T-G

Aaron, et al --

...and then Aaron Schrab said...
% 
% At 13:08 -0500 20 Mar 2002, David T-G [EMAIL PROTECTED] wrote:
%  There are also MMDF and MH folders, and they are of the one-file-per
%  variety but don't have the tmp, new, and cur subdirs of Maildir.
% 
% True for MH, but not MMDF.  MMDF has all the messages in one file, like

Oh!


% mbox, but uses \001\001\001\001\n as the separator rather than ^From_ .

Thanks for the clarification.


% 
% -- 
% Aaron Schrab [EMAIL PROTECTED]  http://www.schrab.com/aaron/
%  What kind of head of security would I be if I let people like me know
%  things that I'm not supposed to know?-- Garibaldi


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




msg25803/pgp0.pgp
Description: PGP signature


Re: save_name is for outbound mails

2002-03-20 Thread Nathaniel Irons

On Wed, Mar 20, 2002 at 07:23:10PM +0100, Sven Guckes wrote:

  $save_name refers to copies of outgoing messages, correct?
 
 correct.  incoming mails is not handled by mutt automatically.
 this is a job for the mail delivery agents and mail filters.

Ordinarily yes, but in this case it's for saving spam which evades the
mail filters, for the purposes of educating new filters.

  -nat




Re: Binding both complete and complete-query to tab key

2002-03-20 Thread David Champion

* On 2002.03.20, in [EMAIL PROTECTED],
*   Sven Guckes [EMAIL PROTECTED] wrote:
 * Tres Hofmeister [EMAIL PROTECTED] [2002-03-20 08:04]:
  I'm wondering if there's a way to bind
  complete and complete-query to the same key,
  rather than two keys as shown in the manual:
 
 you cannot bind two commands to one key.  period.
 (which command should mutt execute then?  exactly.)

It's quite clear what he wants, and it's not to stymie mutt with
a logical error. Please don't assume idiocy on the part of your
correspondents just because you're brilliant.


  I'd like to hit the tab key, and see first
  my aliases matching my string, and the
  results of an external query to an LDAP server.
 
 this is not configurable.  so - write a patch.

Well enough, but he's only asking a question, not demanding a feature.
Be kind.


  It would also be O.K. to see the external
  query results only if there was no alias match.
 
 if the query returns nothing
 then it is ok to see all of it.
 huh?

No. If there is no match among mutt's internal aliases, then, and only
then, perform an external query and show those results.

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



OT: Re: disabling save-to-username default

2002-03-20 Thread Rob Reid

At  1:01 PM EST on March 20 David T-G sent off:
 ...and then Shawn McMahon said...
 % 
 % begin  quoting what David T-G said on Wed, Mar 20, 2002 at 12:39:23PM -0500:
 %  
 %  HTH  HAND and none of this is tested :-)
 % 
 % Acronymize that last one.  :-)
 
 Ha!  NOTIT for you! :-)

No fair.  Have a nice day is trivial, but even

http://www.ucc.ie/cgi-bin/acronym?NOTIT

doesn't expand NOTIT.

It was my first excuse to try the translation menu of smart bookmarks in
galeon, though.

-- 
TTFN,
Robert I. Reid [EMAIL PROTECTED] http://astro.utoronto.ca/~reid/
PGP Key: http://astro.utoronto.ca/~reid/pgp.html



Re: Converting mbox to Maildir

2002-03-20 Thread John Poltorak

On Wed, Mar 20, 2002 at 01:21:08PM -0500, Shawn McMahon wrote:
 begin  quoting what David T-G said on Wed, Mar 20, 2002 at 01:08:56PM -0500:
  
  % Is mbox the same as Unix format?
  
  Yes, mbox is the same mailbox format that you know from years and years
  ago.  Each message is delimited by ^From_ (a newline, From, and a
 
 Well, technically, I don't think UNIX has a mail format.  UNIX doesn't
 do mail.
 
 *SENDMAIL* has a mail format, and it's mbox. 

No, SENDMAIL does not have a mail format, it delivers either to a QUEUE 
directory or to a local delivery agent.


 BYKT.  :-)
 


-- 
John





Re: OT: Re: disabling save-to-username default

2002-03-20 Thread David T-G

Rob --

...and then Rob Reid said...
% 
% At  1:01 PM EST on March 20 David T-G sent off:
%  ...and then Shawn McMahon said...
%  % 
%  % begin  quoting what David T-G said on Wed, Mar 20, 2002 at 12:39:23PM -0500:
%  %  
%  %  HTH  HAND and none of this is tested :-)
%  % 
%  % Acronymize that last one.  :-)
%  
%  Ha!  NOTIT for you! :-)
% 
% No fair.  Have a nice day is trivial, but even
% 
% http://www.ucc.ie/cgi-bin/acronym?NOTIT
% 
% doesn't expand NOTIT.

Heh.  Look up there right after HAND :-)


% 
% It was my first excuse to try the translation menu of smart bookmarks in
% galeon, though.

Not only that but you gave me the URL, for which I am quite grateful.
Can't wait to check it out :-)


% 
% -- 
% TTFN,
% Robert I. Reid [EMAIL PROTECTED] http://astro.utoronto.ca/~reid/
% PGP Key: http://astro.utoronto.ca/~reid/pgp.html


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!




msg25808/pgp0.pgp
Description: PGP signature


Re: Defanged HTML headers [WAS: Re: [Announce] Mutt 1.3.28 (BETA) is out.]

2002-03-20 Thread Cedric Duval

Thomas Hurst said:
   HEADDEFANGED_META HTTP-EQUIV=REFRESH CONTENT=0
   URL=http://cedricduval.free.fr/mutt/;/HEAD

  Really, is there some content that could be seen as malicious in
  this page?

 Yes.  The 0 means the refresh is instantanious, which breaks the back
 button on most browsers.

 This is why HTTP supports redirection; meta refresh is a lame-ass hack,
 and should be avoided, especially in these circumstances.

Yes, indeed. But on this page, there are only _two_ META tags:
  meta http-equiv=content-type content=text/html; charset=iso-8859-1
  meta name=author content=Cedric Duval

The first is required for valid html, and the second... well, while
certainly useless, I don't think it will do much harm.

If you see a meta refresh somewhere, it does not originate from my code,
but from _your_ proxy.

-- 
Cedric



Re: Converting mbox to Maildir

2002-03-20 Thread Gerhard Hring

Le 20/03/02 à 17:57, John Poltorak écrivit:
 On Wed, Mar 20, 2002 at 09:38:42AM -0800, Tyrin R. Price wrote:
  Are any tools or guidance available for converting mailboxes
  from mbox to Maildir?
 
 Can someone describe the mbox and Maildir formats for me?

I'm too tired to describe it myself now, and these man pages do that
quite well already:

http://www.qmail.org/man/man5/mbox.html

http://www.qmail.org/man/man5/maildir.html

In short: they do what their names suggest.

 Is mbox the same as Unix format?

Yes. There are several flavours of mbox, though.
 
Gerhard
-- 
mail:   gerhard at bigfoot dot de   registered Linux user #64239
web:http://www.cs.fhm.edu/~ifw00065/OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9  3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))




Changing/inserting headers with a macro

2002-03-20 Thread Daniel Bye

Hi all,

Wonder if anyone can help?  I have scoured all the documentation I can find
on the web, people's published .muttrc's, etc, but can still not find out how 
to do what I want, or if it is even possible...

Can I insert headers into a message using a macro?  Specifically, I want to be
able to mimic the MS Outlook message importance tags, which insert two headers:

Importance: high
X-Priority: 1

Any suggestions or pointers where to find details would be very welcome.

Thanks all,

Dan 



[no subject]

2002-03-20 Thread cyrus

Quoting Christopher Swingley [EMAIL PROTECTED]:
 Use mutt.  Tag all the mbox messages (T.*), tag-save (;s=new_maildir)
 to the maildir mailbox.  I think you need to create the maildir
 directory first, with the requisite tmp/ cur/ and new/ directories
 underneath.
Thanks, Chris.
I am using exim, fetchmail (running a global rc file in daemon mode), and 
procmail.  From what I've read online I can remove the trailing : (for file 
locking) and just add a / to the destination in my procmail recipe to deliver 
mail in Maildir format.  Is this correct?
So I just use your tip above, change my muttrc to use Maildir type mailboxes, 
change my procmail recipes and I should be good to go, right?

--





Re: Changing/inserting headers with a macro

2002-03-20 Thread Daniel Bye

On Wed, Mar 20, 2002 at 03:36:57PM -0500, David T-G wrote:
 Daniel --
 
 ...and then Daniel Bye said...
 % 
 % Hi all,
 
 Hello!
 
 
 % 
 % Wonder if anyone can help?  I have scoured all the documentation I can find
 
 Well, I wasn't wondering before, but I kind of am now ;-)
 

Sorry, bad habit of mine - tend to omit pronouns in subject position...  

 
 % on the web, people's published .muttrc's, etc, but can still not find out how 
 % to do what I want, or if it is even possible...
 
 While it's certainly possible, mutt doesn't pay attention to those
 headers but instead uses a flag header.  I do it with this snippet in
 my procmailrc reformatting section
 
   # high priority recognition for mutt
   :0 f :
   * ^importance: high|^priority: urgent
   | $FORMAIL -I X-Status: F
 

Yeah, I know mutt doesn't take any notice (I have color rules that search in
the headers for the two lines mentioned below, so I can see messages from Out-
look users flagged as important).

What I was after was a way of fooling Outlook into printing those lovely little
icons against any important message I send from mutt - I have found that the 
word IMPORTANT! at the beginning of the subject line doesn't always do it 
for Outlookers, and I seem to spend a _lot_ of time sending mail to folks using
Outlook. 

 and then this bit in my muttrc
 
   mono index standout ~F  # reverse index entry for flagged (hi-pri)
 
 from very ancient days, but it works for me.
 
 
 % 
 % Can I insert headers into a message using a macro?  Specifically, I want to be
 % able to mimic the MS Outlook message importance tags, which insert two headers:
 % 
 % Importance: high
 % X-Priority: 1
 
 Interesting.  I thought it was 
 
   Priority: Urgent
 

It may well be for any well-behaved mail client, but I don't think I have to 
talk about Microsoft's disciplinary record!  ;-)

 but I haven't looked it up in a while.
 
 
 % 
 % Any suggestions or pointers where to find details would be very welcome.
 
 If you have edit_headers turned on, then you can just insert those
 headers while editing your message and away you go.  Thus, if you don't
 usually edit headers, one possibility is to have a macro that turns on
 edit_headers, edits the message, and then turns off edit_headers when the
 editor exits.
 
 Another possibility is to just use my_hdr to set them, but you'll have to
 umny_hdr them *after* you've sent the message.  If I were to go this
 route I'd have a send-hook that by default turns them off and then a
 macro which turns them on; just finish editing your message, hit your
 desired macro stroke (it looks, upon a quick glance, as though ^U and ^P
 are available), and then send the message on its way.
 

This sounds like a good jumping-off point, thanks.

 
 % 
 % Thanks all,
 
 HTH  HAND
 
 
 % 
 % Dan 
 
 
 :-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!
 

Dan



Re: Changing/inserting headers with a macro

2002-03-20 Thread Shawn McMahon

begin  quoting what Daniel Bye said on Wed, Mar 20, 2002 at 09:00:15PM +:
 
 for Outlookers, and I seem to spend a _lot_ of time sending mail to folks using
 Outlook. 

I spend a lot of time sending mail to Outlook users, too, but it all
just says this:


If you are reading this, it means that you sent me an email saying that
you can't read my emails.  The short answer to why not is:

Your mailer is broken.  This is your problem, not mine.  File a bug
report with the vendor.  I'm going to continue signing my mail, and if
you don't change your end of things, you're going to continue having
problems reading it.

In some cases (you're cute, my mom, or you're offering sufficient reasons 
per hour), I'll make exceptions, but this is on a case-by-case basis, and 
I'm intentionally leaving it as a PITA manual process so that each of us
is reminded it's a bad idea:  me, when I do it, you, when I forget and 
you're stuck with unreadable mail from me.  GET A REAL MAILER.

No, this isn't a virus, a bomb, a bug, a worm, or any other executable 
code.  And if it is, that's your problem, not mine.

If your IT or MIS department is brain-dead enough to actually strip off 
these attachments before you get your mail, I'm going to laugh at you 
in public.  Sorry, this ain't the sympathy department.


(This rant excerpted from a longer one copyright (c) 2001, Karsten M. Self.
Full rant available on request.)




msg25815/pgp0.pgp
Description: PGP signature


Re: Changing/inserting headers with a macro

2002-03-20 Thread Mike Schiraldi

 Tend to omit pronouns in subject position...  

Okay, will do so.



Re: Changing/inserting headers with a macro

2002-03-20 Thread Daniel Bye

On Wed, Mar 20, 2002 at 04:05:42PM -0500, Shawn McMahon wrote:
 begin  quoting what Daniel Bye said on Wed, Mar 20, 2002 at 09:00:15PM +:
  
  for Outlookers, and I seem to spend a _lot_ of time sending mail to folks using
  Outlook. 
 
 I spend a lot of time sending mail to Outlook users, too, but it all
 just says this:
 
 
 If you are reading this, it means that you sent me an email saying that
 you can't read my emails.  The short answer to why not is:
 
 Your mailer is broken.  This is your problem, not mine.  File a bug
 report with the vendor.  I'm going to continue signing my mail, and if
 you don't change your end of things, you're going to continue having
 problems reading it.
 
 In some cases (you're cute, my mom, or you're offering sufficient reasons 
 per hour), I'll make exceptions, but this is on a case-by-case basis, and 
 I'm intentionally leaving it as a PITA manual process so that each of us
 is reminded it's a bad idea:  me, when I do it, you, when I forget and 
 you're stuck with unreadable mail from me.  GET A REAL MAILER.
 
 No, this isn't a virus, a bomb, a bug, a worm, or any other executable 
 code.  And if it is, that's your problem, not mine.
 
 If your IT or MIS department is brain-dead enough to actually strip off 
 these attachments before you get your mail, I'm going to laugh at you 
 in public.  Sorry, this ain't the sympathy department.
 
 
 (This rant excerpted from a longer one copyright (c) 2001, Karsten M. Self.
 Full rant available on request.)
 

Err, thanks...  ;-)

I agree with the main thrust of the rant, but would leave myself in a very
tenuous position at work if I were to adopt a similar stance.  I resent 
having to break mutt, so that the already shafted Outlook doesn't sh*t it-
self, but I am one of at most 5 pc of the office population who wouldn't
accept the status quo and just use Outlook.  Alas, that means that most of my
day to day business is carried out with people whom I don't really want to
alienate by sending them a (finely crafted, no doubt ;-) rant, especially as
we're coming up to pay review time!

But thanks, again - if only I had a heart like a lion...

Dan



Re: Changing/inserting headers with a macro

2002-03-20 Thread Daniel Bye

On Wed, Mar 20, 2002 at 04:16:03PM -0500, Mike Schiraldi wrote:
  Tend to omit pronouns in subject position...  
 
 Okay, will do so.

Oh gods, what have I started??  ;-)



Re: OT: UNDERSTANDING DAVID T-G

2002-03-20 Thread tim lupfer

* thus spaketh Shawn McMahon (Mar 20 at 12:48PM):

 begin  quoting what David T-G said on Wed, Mar 20, 2002 at 12:39:23PM -0500:

 HTH  HAND and none of this is tested :-)

 Acronymize that last one.  :-)

i'm not sure where else you can acquire it, but /usr/games/wtf that
ships with netbsd is great when translating the gibberish of
alt.teen usenet junkies.

$ /usr/games/wtf HAND
HAND: have a nice day

-- 
timothy lupfer
http://sadlittleboy.com



Filtering a message from the index

2002-03-20 Thread Steve Talley

Hello mutt experts,

From the index, how can I filter a message through a shell/perl/etc.
script, so that the modified message actually *replaces* the original
in the mail folder?

This is sort of like edit, where a copy of the message is loaded
into the $editor, the orignal is marked for deletion, and the new
message is appended to the mail folder.

This seems like a feature that would be requested/used frequently, but
I can't find any mention of it in the mutt manual.

Note that pipe-message isn't what I'm looking for, since the output
of the pipe does not replace the original message.

The best that I've come up with so far is to change the $editor to the
filtering command, edit the file, and then reset the $editor to its
original value:

macro index F ':set editor=mailformat -m -t -s -c -q -ireturne:set 
editor=vireturn'

but this is obviously a hack and I'm betting there is a better
solution.

Thanks,

Steve



Re: Filtering a message from the index - procmail

2002-03-20 Thread Sven Guckes

* Steve Talley [EMAIL PROTECTED] [2002-03-20 21:51]:
 From the index, how can I filter a message through
 a shell/perl/etc.  script, so that the modified message
 actually *replaces* the original in the mail folder?

Use a mail filter.

 This seems like a feature that would be requested/used frequently,
 but I can't find any mention of it in the mutt manual.

that's because mutt is NOT a mail filter.

Rpeat:  Mutt is *not* a mail filter.  period.

You are looking for procmail.  see sig.

Sven

-- 
Sven Guckes [EMAIL PROTECTED] | Latest version:
PROCMAIL HomePage:  http://www.procmail.org/  | procmail-3.22 [011009]
PROCMAIL http://www.math.fu-berlin.de/~guckes/procmail/
PROCMAIL http://www.math.fu-berlin.de/~guckes/setup/procmailrc



Re: Filtering a message from the index - procmail

2002-03-20 Thread Steve Talley

I do use procmail.  As an MDA.  procmail isn't appropriate here.

If mutt has the ability to allow the user to edit a message, and then
automatically save it to the mail folder, and delete the orignal, why
shouldn't it be able to do the same with an arbitrary shell script?

Thanks,

Steve

Sven Guckes wrote:

 * Steve Talley [EMAIL PROTECTED] [2002-03-20 21:51]:
  From the index, how can I filter a message through a
  shell/perl/etc.  script, so that the modified message actually
  *replaces* the original in the mail folder?

 Use a mail filter.

  This seems like a feature that would be requested/used frequently,
  but I can't find any mention of it in the mutt manual.

 that's because mutt is NOT a mail filter.

 Rpeat:  Mutt is *not* a mail filter.  period.

 You are looking for procmail.  see sig.

 Sven



Re: petition, rants, sigs - will it ever help?

2002-03-20 Thread Sven Guckes

* Daniel Bye [EMAIL PROTECTED] [2002-03-20 21:22]:
 I agree with the main thrust of the rant, but
 would leave myself in a very tenuous position
 at work if I were to adopt a similar stance.
 blah blah blah
 But thanks, again - if only I had a heart like a lion...

now, if these people would actually have the
guts to sign an online petition or use an
ASCII ribbon against bad mailers in their sig..
but, no...  *sigh*

just what will they tell their kids?

Daddy - why is the police after us?
Because we use Free Software, my son.

What is free software, daddy?
well... it's free - you know.
 open source and... uh.. something
 about free beer.  you know..
 you just get to use it without paying
 an hourly rate.. and it's ok.

hmm... but you have to pay for
 Hyper-Mega-Outlook 3000 each time.
 then it is not free software?

Well, you see, I *have* to use Outl**k.  I mean,
 *everbody* is using it!  I have no choice!  You
 cannot use something else and get away with it.
 It's not right. I could lose my job if I complained!
 It's... peer pressure! I mean - what *else* is there?

Grandad Linus said we could use
 the programs on his 2002 DVD...

Shhh, sonny!  Not so loud!  'They' are listening!
 They listen to everybody's mailbox.  They have
 a copy of all the secret keys.  and they X-rayed
 my brain and cloned it for testing hard drives.
 their secret webpages use gestapo viruses and..

really, dad?

really! .. i think..

...

are we lost, dad?

No, son, because you.. you will make it better!
 You will stand up and fight that only remaining
 computer company with its information retrieval
 system[tm].  You will resist their programs and
 use free software ... sshhh!  i hear them coming..

ahh.. whiners!  sheesh.

Sven  [heard it all before...]

-- 
Everybody uses the editor/mailer/
   program/OS that he deserves!



Re: Filtering a message from the index - procmail

2002-03-20 Thread Sven Guckes

* Steve Talley [EMAIL PROTECTED] [2002-03-20 22:04]:
 If mutt has the ability to allow the user to edit a
 message, and then automatically save it to the mail
 folder, and delete the orignal, why shouldn't it be
 able to do the same with an arbitrary shell script?

Mutt is not supposed to do things automatically.
Mutt operates when the *user* types keys.
Mutt does not intend to be a mail filter.
Mutt shall not become a replacment for procmail.

but of course you can pipe a message to a script
which makes changes to the copy and hands it over
to sendmail which will hand it over to the MDA
and over to the filter will will store it in the
same folder. and then you can delete the original.

the script is up to you, of course.

Sven



Re: Filtering a message from the index - procmail

2002-03-20 Thread Mike Schiraldi

On Wed, Mar 20, 2002 at 03:04:20PM -0700, Steve Talley wrote:
 I do use procmail.  As an MDA.  procmail isn't appropriate here.
 
 If mutt has the ability to allow the user to edit a message, and then
 automatically save it to the mail folder, and delete the orignal, why
 shouldn't it be able to do the same with an arbitrary shell script?

How about making a macro which sets your editor to the script, runs edit,
and then resets your editor?

For example, try typing

:set editor = 'sleep 1; perl -pi -e s/subject/sUbJeCt/i'

and then pressing e on some message. It'll change the case of the subject
header.

The sleep 1 is necessary because mutt uses the file's timestamp to determine
if the message has been modified, and since the script runs so fast, mutt
assumes nothing was changed.

Someone posted a patch a few months ago which has mutt change the file's
timestamp to one second ago before calling the editor, so that you
wouldn't need that pause.


-- 
Mike Schiraldi
VeriSign Applied Research



msg25825/pgp0.pgp
Description: PGP signature


Re: OT: UNDERSTANDING DAVID T-G

2002-03-20 Thread Sven Guckes

* tim lupfer [EMAIL PROTECTED] [2002-03-20 21:25]:
 $ /usr/games/wtf HAND
 HAND: have a nice day

why not read up on the jargon file?
http://www.tuxedo.org/~esr/jargon/

Sven  [but that won't help you
  understanding D-T-G though]



Re: Possible to send mail at a specified time w/ mutt?

2002-03-20 Thread Sven Guckes

* Charles Jie [EMAIL PROTECTED] [2002-03-20 01:58]:
 I'd like to prepare a birthday greeting mail
 and send it on my friend's birthday morning.
 I do it currently this way:
 $ at 6am Mar 25
 at mutt -s 'Happy birthday' guy@domain  ~/text/to-guy.eml
 But it's not convenient enough. I wish
 I could do it all in mutt. Is it possible?

  1've found zis kewl programm called LookOutExpress
  yuh can duh it all with that 1!!  Ch3ck it OUT!!1!

Sven  [it's the taiwan spam that made me do it.. yeah]



wrong threading with both 'In-Reply-To' and 'References'

2002-03-20 Thread Ulli Horlacher

I just upgraded from mutt 0.89 (yes, a little bit dusty :-) ) to 1.3.28
and found a threading bug:

I have a colleague who is using zmail, which generates both: 
'In-Reply-To' and 'References' header. Mutt sorts mails from this MUA in a
wrong way, I see threads of mails which has nothing to do with each other.

A typical zmail header (cutout) looks like this:

In-Reply-To: Ulli Horlacher [EMAIL PROTECTED]
Re: ssh und zlib (Mar 12, 13:56)
References: [EMAIL PROTECTED]
[EMAIL PROTECTED]
X-Mailer: Z-Mail (5.0.0 30July97)

This looks weired, but is correct for RFC822.

I assume mutt (mis)interprets the mail-address in the In-Reply-To header as a
MID.


I could set up a procmail rule like:

:0 f
* ^References: 
* ^In-Reply-To: [^]
| formail -R In-Reply-To X-In-Reply-To

But this does not help me with the zillions of old mails I have in my LOT
of mailbox files. I would have to convert them manually.

Can I convince mutt to ignore the In-Reply-To header if there is a
References header?


mutt 0.89 does not show this threading bug.

-- 
-- Ullrich Horlacher, BelWue Coordination --- mailto:[EMAIL PROTECTED] --
   Computing Centre University of Stuttgart (RUS)  phone: +49 711 685 5868
   Allmandring 30, D-70550 Stuttgart, Germanyfax: +49 711 678 8363
-- saft://saft.belwue.de/framstag - http://www.belwue.de/ 



Re: Binding both complete and complete-query to tab key

2002-03-20 Thread Sven Guckes

* David Champion [EMAIL PROTECTED] [2002-03-20 19:47]:
 * On 2002.03.20, in [EMAIL PROTECTED],
 * Sven Guckes [EMAIL PROTECTED] wrote:
  * Tres Hofmeister [EMAIL PROTECTED] [2002-03-20 08:04]:
   It would also be O.K. to see the external
   query results only if there was no alias match.
  if the query returns nothing
  then it is ok to see all of it. huh?
 No. If there is no match among mutt's internal aliases, then,
 and only then, perform an external query and show those results.

well, there is no scripting language containing
if/then/else structures in mutt, is there?
so this requires a patch.  no?

Sven



Re: OT: UNDERSTANDING DAVID T-G

2002-03-20 Thread Im Eunjea

* tim lupfer [EMAIL PROTECTED] [2002-03-20 15:24]:
 * thus spaketh Shawn McMahon (Mar 20 at 12:48PM):
 
  begin  quoting what David T-G said on Wed, Mar 20, 2002 at 12:39:23PM -0500:
 
  HTH  HAND and none of this is tested :-)
 
  Acronymize that last one.  :-)
 
 i'm not sure where else you can acquire it, but /usr/games/wtf that
 ships with netbsd is great when translating the gibberish of
 alt.teen usenet junkies.
 
 $ /usr/games/wtf HAND
 HAND: have a nice day
 

http://kldp.org/~eunjea/jargon/?idx=HTH
http://kldp.org/~eunjea/jargon/?idx=HAND
http://kldp.org/~eunjea/jargon/?idx=talk-mode.html

;)
-- 
http://kldp.org/~eunjea/
http://mutt.kldp.org

Programming is an unnatural act.



Re: Binding both complete and complete-query to tab key

2002-03-20 Thread Tres Hofmeister

On 2002-03-20, David Champion [EMAIL PROTECTED] wrote:
: 
: It's quite clear what he wants, and it's not to stymie mutt with
: a logical error.  Please don't assume idiocy on the part of your
: correspondents just because you're brilliant.

:)


: No. If there is no match among mutt's internal aliases, then,
: and only then, perform an external query and show those results.

Yes, exactly.  I have also looked briefly at lbdb
http://www.spinnaker.de/lbdb/ as another reader suggested, but would
prefer a Mutt-only solution.  To put the question another way, I was
wondering if there was a way to conditionally call an internal function
if a previous function fails, in this case complete and complete-query.
Sounds like the answer is no... ;)

-- 
Tres Hofmeister [EMAIL PROTECTED]  http://www.rap.ucar.edu/~tres/
Research Applications Program, National Center for Atmospheric Research



Re: wrong threading with both 'In-Reply-To' and 'References'

2002-03-20 Thread Sven Guckes

* Ulli Horlacher [EMAIL PROTECTED] [2002-03-20 22:37]:
 I just upgraded from mutt 0.89 ...

where have been hiding all those years?
using jed and its mailmode, I suppose? ;-)

 ... to 1.3.28 and found a threading bug:
 
 A typical zmail header (cutout) looks like this:
 In-Reply-To: Ulli Horlacher [EMAIL PROTECTED]
 Re: ssh und zlib (Mar 12, 13:56)
 References: [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 X-Mailer: Z-Mail (5.0.0 30July97)
 
 I assume mutt (mis)interprets the mail-address
 in the In-Reply-To header as a MID.

yup - must be it.

 Can I convince mutt to ignore the In-Reply-To
 header if there is a References header?

no, i dont think there is an option for that yet.

 mutt 0.89 does not show this threading bug.

*staun*

Sven



Re: Filtering a message from the index - procmail

2002-03-20 Thread Steve Talley

Mike Schiraldi wrote:

 On Wed, Mar 20, 2002 at 03:04:20PM -0700, Steve Talley wrote:
  I do use procmail.  As an MDA.  procmail isn't appropriate here.
 
  If mutt has the ability to allow the user to edit a message, and
  then automatically save it to the mail folder, and delete the
  orignal, why shouldn't it be able to do the same with an arbitrary
  shell script?

 How about making a macro which sets your editor to the script, runs
 edit, and then resets your editor?

 For example, try typing

 :set editor = 'sleep 1; perl -pi -e s/subject/sUbJeCt/i'

 and then pressing e on some message. It'll change the case of the
 subject header.

Yeah, this is what I'm doing now.  But what a hack.  It makes for some
cumbersome macros...

 determine if the message has been modified, and since the script
 runs so fast, mutt assumes nothing was changed.

 Someone posted a patch a few months ago which has mutt change the
 file's timestamp to one second ago before calling the editor, so
 that you wouldn't need that pause.

How about a patch just to filter to an arbitrary command, so that this
hack isn't needed?  Clearly 99% of the code exists to do that
already...

Thanks,

Steve



Re: oh, no - not another bloat patch!

2002-03-20 Thread Sven Guckes

* Steve Talley [EMAIL PROTECTED] [2002-03-20 23:06]:
  :set editor = 'sleep 1; perl -pi -e s/subject/sUbJeCt/i'
  Someone posted a patch a few months ago which has mutt
  change the file's timestamp to one second ago before
  calling the editor, so that you wouldn't need that pause.
 How about a patch just to filter to an arbitrary command,
 so that this hack isn't needed?

the pipe command is there - use it.
and everything that makes the sleep
command superfluous should be less than
that in bytes. everything else is bloat!

people steal scripts from others
without understanding the sleep
thing, anyway. so why bother?

Sven



Re: compressed folders and Maildir

2002-03-20 Thread Sven Guckes

* Alexander Skwar [EMAIL PROTECTED] [2002-03-18 22:41]:
 I'm using Maildir as my default mbox type and also want
 to save old messages in my archive in mbox format.  To
 do this, I'm using the compressed folders patch, and
 when I was still using mbox, this worked fine.
 
 However, when mbox_type is set to Maildir, saving to
 .bz2 files won't work.  The messages simply aren't
 appended to the .bz2 file.  Setting mbox_type
 to mbox allows me to save the messages.

who said that the compressed folders patch
will work when using Maildir format?  ;-)
(no, I did not bother to check this.. did you?)

 Is there a way to also execute some mutt
 commands in the save-hook/append-hook?

append-hook?  is this a new one?

  $ grep append- mutt-1.3.27/*(.)
  mx.c:else /* use regular append-copy mode */
  grep: po: Is a directory
  sendlib.c:dprint (1, (debugfile, mutt_write_fcc():
  unable to open mailbox %s in append-mode, aborting.\n,

hmm...


as for save-hook:

  3.14.  Specify default save filename
  Usage: save-hook [!]pattern filename

do you see a command in there? right.

Sven



Re: Converting mbox to Maildir

2002-03-20 Thread Andre Berger

* Tyrin R. Price [EMAIL PROTECTED], 2002-03-20 18:38 -0500:
 I am using exim, fetchmail (running a global rc file in daemon mode), and 
 procmail.  From what I've read online I can remove the trailing : (for file 
 locking) and just add a / to the destination in my procmail recipe to deliver 
 mail in Maildir format.  Is this correct?

A little OT... here are the relevant parts from my /etc/exim.conf:

#  TRANSPORTS CONFIGURATION  #
maildir_delivery:
driver = appendfile
no_from_hack
prefix = 
suffix = 
maildir_format
directory = $home/Maildir
create_directory

address_directory:
  driver = appendfile
  no_from_hack
  prefix = 
  suffix = 
  maildir_format

#  DIRECTORS CONFIGURATION   #
real_local:
  prefix = real-
  driver = localuser
#  transport = local_delivery
  transport = maildir_delivery


HTH

-Andre




msg25836/pgp0.pgp
Description: PGP signature


Re: Filtering a message from the index - procmail

2002-03-20 Thread Steve Talley

Thanks for the suggestions, Sven.

The pipe command doesn't save the output of the command as a new
version of the message.  It also doesn't mark the original message as
deleted.

Thanks anyway!

Steve

Sven Guckes wrote:

 * Steve Talley [EMAIL PROTECTED] [2002-03-20 23:06]:
   :set editor = 'sleep 1; perl -pi -e s/subject/sUbJeCt/i'
   Someone posted a patch a few months ago which has mutt change
   the file's timestamp to one second ago before calling the
   editor, so that you wouldn't need that pause.
  How about a patch just to filter to an arbitrary command, so that
  this hack isn't needed?

 the pipe command is there - use it. and everything that makes the
 sleep command superfluous should be less than that in bytes.
 everything else is bloat!

 people steal scripts from others without understanding the sleep
 thing, anyway. so why bother?

 Sven



Re: Replacing a message with its filtered output

2002-03-20 Thread Sven Guckes

* Steve Talley [EMAIL PROTECTED] [2002-03-20 23:58]:
 The pipe command doesn't save the output of
 the command as a new version of the message.
 It also doesn't mark the original message as deleted.

well, that's why I suggested you send the resulting
message to yourself again so it gets injected again.
but I suppose you need not only a changed *body* of
the message - but keep the header (mostly) as is?

workaround: save the message to a new folder.
edit that folder (basically just that message).  call
mutt on that folder again - and save the message back.

it maybe takes more steps - but it is a lot safer
than making mutt store a changed version of some
message into the same folder and deleting the orginal.
i would not want to be at the help desk where people *have*
to help users find their lost data due to that command..

Sven



Re: Replacing a message with its filtered output

2002-03-20 Thread Steve Talley

Sven Guckes wrote:

 * Steve Talley [EMAIL PROTECTED] [2002-03-20 23:58]:

  The pipe command doesn't save the output of the command as a new
  version of the message.  It also doesn't mark the original message
  as deleted.

 workaround: save the message to a new folder. edit that folder
 (basically just that message).  call mutt on that folder again - and
 save the message back.

Sounds overly complicated.

 it maybe takes more steps - but it is a lot safer than making mutt
 store a changed version of some message into the same folder and
 deleting the orginal.

Since that's what mutt already does with the edit-message command, I
wouldn't be worried.  Mutt doesn't actually delete it, it just marks
it as deleted.  The next time you sync-mailbox, it will actually be
deleted.

It looks like modifying the $editor variable and resetting it later is
the easiest solution.  It's a shame mutt can't do this more elegantly.

Thanks Sven.

Steve



Re: Replacing a message with and edited copy

2002-03-20 Thread Sven Guckes

* Steve Talley [EMAIL PROTECTED] [2002-03-21 00:29]:
  workaround: save the message to a new folder. edit
  that folder (basically just that message).  call mutt
  on that folder again - and save the message back.
 Sounds overly complicated.

really?

let me see...

  mutt
  s ~/foo RET
  CTRL-Z
  $EDITOR ~/foo  (make changes)
  mutt -f ~/foo
  s ! RET
  q
  fg

well, that's not so bad, is it?  this only uses
what you should know about job control, anyway.  :-)

 It looks like modifying the $editor variable and
 resetting it later is the easiest solution.
 It's a shame mutt can't do this more elegantly.

well, is there a mailer yet that does this more elegantly?
(and remember: EmacsOS does not count! ;-)

Sven



Re: Defanged HTML headers [WAS: Re: [Announce] Mutt 1.3.28 (BETA) is out.]

2002-03-20 Thread Jeremy Blosser

On Mar 18, John Buttery [[EMAIL PROTECTED]] wrote:
 * Carl B. Constantine [EMAIL PROTECTED] [2002-03-18 08:43:58 -0800]:
 all I get at this page is the following:
 
 HEADDEFANGED_META HTTP-EQUIV=REFRESH CONTENT=0 
URL=http://cedricduval.free.fr/mutt/;/HEAD
 
 that is displayed in NS 6.2.1 (solaris).
 
   You have a proxy server that is defanging tags for you (to protect
 from malicious META headers, Javascript, yadda yadda).  You need to
 remove the DEFANGED_ so it just says ...META ... and it will
 redirect properly.
   Or you could just hit that URL it lists there directly and skip the
 redirection altogether.  :)

The version of Carl's mail that I saw did not have the defanged prefix.
Are you sure your proxy isn't doing this for you in his incoming mail?



msg25841/pgp0.pgp
Description: PGP signature


Re: Replacing a message with its filtered output

2002-03-20 Thread Steve Talley

Sven Guckes wrote:

 * Steve Talley [EMAIL PROTECTED] [2002-03-21 00:29]:

   workaround: save the message to a new folder. edit
   that folder (basically just that message).  call mutt
   on that folder again - and save the message back.
 
  Sounds overly complicated.

 really?

Yep:

 let me see...

   mutt
   s ~/foo RET
   CTRL-Z
   $EDITOR ~/foo  (make changes)
   mutt -f ~/foo
   s ! RET
   q
   fg

 well, that's not so bad, is it?

Actually, I'm looking for a 1-key shortcut.  This would be an even
bigger hack than setting $editor. :)

 this only uses what you should know about job control, anyway.  :-)

  It looks like modifying the $editor variable and resetting it
  later is the easiest solution.  It's a shame mutt can't do this
  more elegantly.

 well, is there a mailer yet that does this more elegantly? (and
 remember: EmacsOS does not count! ;-)

I don't know.  Why does that matter?  I want to use mutt!

Steve



Re: Filtering a message from the index - procmail

2002-03-20 Thread Steve Talley

Rocco Rutte wrote:

 Hello,

 On Wed, Mar 20, 2002 at 04:57:48:PM -0700 Steve Talley wrote:
  The pipe command doesn't save the output of the command as a new
  version of the message.  It also doesn't mark the original message
  as deleted.

 Right. But why not write a macro which:

 1) pipes the message to a command (this command may be a shell
script using another instance of Mutt to send the *changed* mail
to yourself),

What happens if the filter modifies the To: header?  ;)

Yes, I know I could use pipe + procmail/anotherinstanceofmutt/... to
do this but it seems as much of a hack as setting $editor before
invoking edit-message.

Since mutt has the pipe-message functionality, and mutt has the
edit-message functionality, why shouldn't it combine the two to
create filter-message to save its users from the multitudes of
hacks/workarounds?

At any rate, thanks for your help!

Steve



Re: Filtering a message from the index - procmail

2002-03-20 Thread Sven Guckes

* Rocco Rutte [EMAIL PROTECTED] [2002-03-21 01:01]:
  The pipe command doesn't save the output of the
  command as a new version of the message.  It also
  doesn't mark the original message as deleted.
 
 Right. But why not write a macro which:
 1) pipes the message to a command (this command may
 be a shell script using another instance of Mutt
 to send the *changed* mail to yourself),
 2) marks the old message as deleted and
 3) syncs the mailbox
 ?
 
 Should even fit on a line in your config
 as works by pressing just *one* key.

well, you can put everything on one key, but...
you don't want this if some part of
the command sequence fails, right?

so many things can go wrong here.
i would not issue a delete command
if I was not really sure.  in this
case this means that the changed
messages arrives in the mailbox.

but how can you make sure about this?
this certainly needs extra code in mutt.
and it cannot be 100% sure as
the message has been changed, right?

I think it is better to copy the message
to the current folder and editing that copy.
It's yet another workaround -
but not a bad one, is it? :-)

Sven



Re: wrong threading with both 'In-Reply-To' and 'References'

2002-03-20 Thread Shawn McMahon

begin  quoting what Sven Guckes said on Wed, Mar 20, 2002 at 11:52:42PM +0100:
 
  Can I convince mutt to ignore the In-Reply-To
  header if there is a References header?
 
 no, i dont think there is an option for that yet.

I guess he could use procmail to remove the In-Reply-To header if there
is a References header.  Or rewrite it to say the same thing.




msg25845/pgp0.pgp
Description: PGP signature