How to pipe attachment to netscape?

2002-01-18 Thread Charles Jie

Previously I have this in my .mailcap:

text/html; netscape -remote openfile\\(%s\\)

But I change to use this for speed:

text/html; lynx %s; nametemplate=%s.html

* I still want to view the attachment with netscape as an alternative if
  it's worth the effort. I plan to have a macro to do it. But could I
  use pipe? (I see the problem with %s.) Is there any trick for it?

* And strange, now my lynx just show the source content of html instead
  of the previous formated view. What's
  wrong? :-(

best,
charlie



Re: Configure

2002-01-18 Thread René Clerc

* Igor Pruchanskiy [EMAIL PROTECTED] [18-01-2002 11:35]:

 On Fri 18 Jan 2002, Jyothi wrote:
  Hi,
  
  How to Configure the outgoing mail server in mutt and where should I do
  it?. I am able to receive mails from outside. For that I use command c
 
 Mutt does not do smtp. So no, you can not.

Not without Michael Elkins' patch ;)

-- 
René Clerc  - ([EMAIL PROTECTED])

The advantage of a classical education is that it enables you to despise
the wealth which it prevents you from achieving.
-Russell Green



msg23272/pgp0.pgp
Description: PGP signature


Configuration of sendmail

2002-01-18 Thread Jyothi

Hi,

Can anyone send me the configuration details of sendmail ??. Bascially
the /etc/mail/sendmail.cf file, which is sending mail outside domain

Thanks,
Jyothi.




rejected mail

2002-01-18 Thread Todd Kokoszka

Hi,

My mail is being rejected by a receiver's mail server
for policy reasons. Is there anything I can change
with mutt to stop this from happening?

Thanks,
Todd

Here's the transcript:

From: Mail Delivery Subsystem
[EMAIL PROTECTED]
Date: Fri, 18 Jan 2002 12:22:26 +0100
Subject: Returned mail: see transcript for details
To: [EMAIL PROTECTED]
Auto-Submitted: auto-generated (failure)

[-- Attachment #1 --]
[-- Type: text/plain, Encoding: 7bit, Size: 0.5K --]

The original message was received at Fri, 18 Jan 2002
12:22:22 +0100
from kokoszka@localhost

   - The following addresses had permanent fatal
errors -
[EMAIL PROTECTED]
(reason: 554 Mail from [EMAIL PROTECTED]
rejected for policy reasons.)

   - Transcript of session follows -
... while talking to mail-exchange.domino.iht.com.:
 MAIL From:[EMAIL PROTECTED] SIZE=392
 554 Mail from [EMAIL PROTECTED] rejected
for policy reasons.
554 5.0.0 [EMAIL PROTECTED] Service unavailable

[-- Attachment #2 --]
[-- Type: message/delivery-status, Encoding: 7bit,
Size: 0.3K --]

Reporting-MTA: dns; pineau.local
Arrival-Date: Fri, 18 Jan 2002 12:22:22 +0100

Final-Recipient: RFC822; [EMAIL PROTECTED]
Action: failed
Status: 5.0.0
Diagnostic-Code: SMTP; 554 Mail from
[EMAIL PROTECTED] rejected for policy reasons.
Last-Attempt-Date: Fri, 18 Jan 2002 12:22:26 +0100

[-- Attachment #3 --]
[-- Type: message/rfc822, Encoding: 7bit, Size: 0.7K
--]

From: Todd Kokoszka [EMAIL PROTECTED]
Date: Fri, 18 Jan 2002 12:22:22 +0100
Subject: email
X-Authentication-Warning: pineau.local: kokoszka set
sender to [EMAIL PROTECTED] using -f
To: [EMAIL PROTECTED]
User-Agent: Mutt/1.2.5i

hey girl -- your email server is rejecting my emails
for policy reasons -- let me know if you get this



=
Todd Kokoszka
25, rue Richard Lenoir
75011 Paris
Tel. 01.43.72.77.08

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/



Re: Configuration of sendmail

2002-01-18 Thread Ralf Hildebrandt

On Fri, Jan 18, 2002 at 04:50:44PM +0530, Jyothi wrote:
 Hi,
 
 Can anyone send me the configuration details of sendmail ??. Bascially
 the /etc/mail/sendmail.cf file, which is sending mail outside domain

If sendmail's too tricky for you, go for www.postfix.org

-- 
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
Applying computer technology is simply finding the right wrench to
pound in the correct screw. 




Re: Altering an attachment

2002-01-18 Thread David T-G

Michael --

...and then Michael Montagne said...
% 
% On 17/01/02, from the brain of Nicolas Rachinsky tumbled:
% 
%  On Thu, Jan 17, 2002 at 01:29:31PM -0800, Michael Montagne [EMAIL PROTECTED] 
wrote:
%   I need to modify an attachment (delete a hyphen) and then reattach it to
...
%   them to the original recipient, without changing the To: or From:
%   headers.
%   Can it be done?
%  
%  I would try e, delete the hyphen, b.
...
% 
% Very simple with manual intervention.  But how do I automate the
% process?  Can I use procmail to route to a script, then bounce to the
% original recipient?  If so, can someone help me with that?

I was going to recommend exactly that but was beaten to it.

I agree with the concerns of using munpack and mpack instead of just
using sed on the input file -- unless, perhaps, the hyphen you want to
remove is always in a given place like a name= header.

Anyway, here's a little perl hack I whipped up to send email to my
pager based on some conditions.  The top part declares how to send to
qmail (which you can twist around for sendmail or whatever you have)
and the bottom part does the reinjecting with an added anti-loop header
(to avoid sending bounces of bounces when the pager's server is down);
you can pretty much ignore everything in the middle.


% -- 
% Michael Montagne
% [EMAIL PROTECTED]
% http://www.boora.com


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




mail-by-pager.pl
Description: Perl program


msg23276/pgp0.pgp
Description: PGP signature


Re: rejected mail

2002-01-18 Thread Dave Smith

On Fri, Jan 18, 2002 at 03:20:41AM -0800, [EMAIL PROTECTED] wrote:
 Hi,
 
 My mail is being rejected by a receiver's mail server
 for policy reasons. Is there anything I can change
 with mutt to stop this from happening?

Either your mail address, your ISP, or an SMTP server on the route have
probably been blacklisted for SPAM, or maybe you sent something naughty
to her in the past?

I suggest you mail the administrator (POSTMASTER@) to find out what
policy is rejecting your mail.  Without that knowledge, there's probably
not much you can do.

-- 
David Smith   Tel: +44 (0)1454 462380 (direct)
STMicroelectronicsFax: +44 (0)1454 617910
1000 Aztec WestTINA (ST only): (065) 2380
Almondsbury  Home: 01454 616963
BRISTOLMobile: 07932 642724
BS32 4SQ   Work Email: [EMAIL PROTECTED]
   Home Email: [EMAIL PROTECTED]



Re: rejected mail

2002-01-18 Thread David T-G

Todd --

...and then Todd Kokoszka said...
% 
% Hi,
% 
% My mail is being rejected by a receiver's mail server
% for policy reasons. Is there anything I can change
% with mutt to stop this from happening?

First find out what the policy reasons are.  At the top it mentions a
localhost address, but that doesn't appear to be the problem farther
down.  You seem to know someone on the inside; get the information and
*then* figure out what to fix :-)


% 
% Thanks,
% Todd

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!




msg23278/pgp0.pgp
Description: PGP signature


Re: virus

2002-01-18 Thread David T-G

Prahlad --

...and then Prahlad Vaidyanathan said...
% 
...
% ps. Is there a mutt port running on Windows ? In which case (s)he might
% be an innocent mutt-user :-)

There is, I hear, though I haven't tried it yet.  I'd be quite surprised,
though, if such a machine would spread the virus -- there's no LookOut!
address book available :-)


% 
% -- 
% Prahlad Vaidyanathan [EMAIL PROTECTED]
% 
% Old age is always fifteen years old than I am.
%   -- B. Baruch


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




msg23279/pgp0.pgp
Description: PGP signature


statistics

2002-01-18 Thread Francis A. Holop


hello,

no links on mutt.org for mailing list archives
so i'll just ask my question...

i was thinking about counting every single
mail i send and get.  kind of silly statistics
that could amaze me when i'm 70.

one way i was thinking to do this was:
for the incoming mail use procmail and
a generic all matching rule which would
than increase a variable somewhere.

the outgoing mail could be counted somehow
using mutt's capabilities and that's why
i am here  any ideas?  (not necessarily
a source change)

-f
-- 
There is an exception to every rule, except this one.



Question marks in PGP headers?

2002-01-18 Thread John Perry

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ive started running the latest version of Mutt and have noticed
something odd. Whenever a PGP signed/encrypted message is displayed I
get a ? between lines. Here's an example:

[-- PGP output follows (current time: Fri 18 Jan 2002 06:27:03 AM CST)
- --]
gpg: Signature made Fri 18 Jan 2002 06:21:38 AM CST using DSA key ID
164BDBAE
gpg: Good signature from John A. Perry [EMAIL PROTECTED]
gpg: aka John A. Perry [EMAIL PROTECTED]

[-- End of PGP output --]
?
[-- BEGIN PGP SIGNED MESSAGE --]
?

1.2.5 didn't do this. Is there any way to correct this? It looks bad.
Maybe a fix could be provided in the next release?

- -- 
 John Perry [EMAIL PROTECTED] PGP-encrypted e-mail welcome!
 http://www.jpunix.com
 PGP/GPG key 164BDBAE
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8SBWG7YSEAxZL264RAsvZAKD+brHVeYkutA9BxWeKqFX8VFQZywCg/Hu0
w1YG/QR3yisM/+PZAHGmP44=
=Qfne
-END PGP SIGNATURE-



Re: statistics

2002-01-18 Thread David T-G

Fred --

...and then Francis A. Holop said...
% 
% hello,

Hi!


% 
% no links on mutt.org for mailing list archives
% so i'll just ask my question...
% 
% i was thinking about counting every single
% mail i send and get.  kind of silly statistics
% that could amaze me when i'm 70.

Tee hee :-)


% 
% one way i was thinking to do this was:
% for the incoming mail use procmail and
% a generic all matching rule which would
% than increase a variable somewhere.

Sounds good.  If you use the backup method, you'll even get a sequential
count in your backup directory.  I find that I'm up to 266951 myself in
less than two years (since that's when I moved onto this server).


% 
% the outgoing mail could be counted somehow
% using mutt's capabilities and that's why
% i am here  any ideas?  (not necessarily
% a source change)

You could wrap $sendmail and have your wrapper inc a counter file as it
sends the message, for one...


% 
% -f
% -- 
% There is an exception to every rule, except this one.

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!




msg23282/pgp0.pgp
Description: PGP signature


Re: statistics

2002-01-18 Thread Gerhard Siegesmund

 i was thinking about counting every single
 mail i send and get.  kind of silly statistics
 that could amaze me when i'm 70.

Take a look at mail2clf which creates a log-file of mail-messages it
gets. So you could pipe all incoming mails through it to get a log of
the incoming messages. And if you save all outgoing messages to
sent-mail, you could start a cronjob every night to pipe them through
mail2clf (with another logfile) and save them to another file (so as not
to count them twice). And when you are 70 and you still have your
maillogs, you can run those statistic-tools over this files to create
statistics, from whom you got mail, when you wrote most of your mails
and so on...

Just a suggestion. CLF btw are Common Log Files normally written by
webservers to get the hits on your server. But just take a look at it.
Works great for me... :)

http://www.merten-home.de/FreeSoftware/mail2clf/

-- 
cu
  --== Jerri ==--
Homepage: http://www.jerri.de/   ICQ: 54160208



msg23283/pgp0.pgp
Description: PGP signature


Re: Question marks in PGP headers?

2002-01-18 Thread Bruno Postle

On Fri 18-Jan-2002 at 06:31:02AM -0600, John Perry wrote:
 Ive started running the latest version of Mutt and have noticed
 something odd. Whenever a PGP signed/encrypted message is displayed I
 get a ? between lines.

It's fixed for me in mutt-1.3.26 (just released).

-- 
Bruno



Re: [Announce] Mutt-1.3.26 has been released.

2002-01-18 Thread John Perry

On Fri, Jan 18, 2002 at 01:44:02PM +0100, Thomas Roessler wrote:
 I have just released mutt-1.3.26 to ftp://ftp.mutt.org/pub/mutt/. 
 Consider this the next BETA, with several bug fixes against the 
 latest version.
 
 Have a nice week-end,
 -- 
 Thomas Roessler[EMAIL PROTECTED]

Anyone have any ideas as to when the patch for compressed
folders might be updated? The patch that works on 1.3.25 doesn't apply
to 1.3.26?

-- 
 John Perry [EMAIL PROTECTED] PGP-encrypted e-mail welcome!
 http://www.jpunix.com
 PGP/GPG key 164BDBAE



Re: Controlling when new mail appears in boxes?

2002-01-18 Thread Nicolas Rachinsky

On Fri, Jan 18, 2002 at 08:14:05AM +0100, Nick Wilson [EMAIL PROTECTED] wrote:
 Yeah! I like that idea, I also find this to be a pain. I don't want to
 comment/uncomment lines in my muttrc depending on the time of day but
 the 'new mail in' message is such a distraction when I should be doing
 outher things.

I would like something like an unmailboxes command, to disable some
of my mailboxes, without having to restart mutt.

Nicolas



S/MIME in the main tree?

2002-01-18 Thread Pete Toscano

Hello,

Does anyone know if/when the S/MIME patch will become part of the main
mutt tree?  I've been using Oliver Ehli's S/MIME patch for
quite a while now and, for most things, it works fine.  The most
recent patch is for 1.3.23 and more and more rej files are being
produced with every new devel version.  It's running with 1.3.25.

S/MIME support for a mail reader is a make or break thing for me and
it's one (of the many) things that make mutt really stand out vs so many
of those other mail readers.

Thanks,
pete

-- 
Pete Toscano[EMAIL PROTECTED]703.948.3364



Re: [Announce] Mutt-1.3.26 has been released.

2002-01-18 Thread David T-G

John --

...and then John Perry said...
% 
%   Anyone have any ideas as to when the patch for compressed

Whenever Roland gets a chance, I'm sure.  It usually doesn't take long,
but we'll have to wait for his announcement.


% folders might be updated? The patch that works on 1.3.25 doesn't apply
% to 1.3.26?

So I've found.  I'm waiting right along with you :-)  I've also found
some others in my cocktail that don't apply cleanly, but I'm happy to
report that most do.


% 
% -- 
%  John Perry [EMAIL PROTECTED] PGP-encrypted e-mail welcome!
%  http://www.jpunix.com
%  PGP/GPG key 164BDBAE


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




msg23289/pgp0.pgp
Description: PGP signature


Re: Controlling when new mail appears in boxes?

2002-01-18 Thread David T-G

Nicolas, et al --

...and then Nicolas Rachinsky said...
% 
% On Fri, Jan 18, 2002 at 08:14:05AM +0100, Nick Wilson [EMAIL PROTECTED] wrote:
%  Yeah! I like that idea, I also find this to be a pain. I don't want to
%  comment/uncomment lines in my muttrc depending on the time of day but
%  the 'new mail in' message is such a distraction when I should be doing
%  outher things.
% 
% I would like something like an unmailboxes command, to disable some
% of my mailboxes, without having to restart mutt.

That's a pretty neat idea.

An option that might work well without a source code change would be to
have your mailboxes in =lists or such and have a symlink =sometimes
pointing in there as well, and then specifically craft your mailboxes
line to use the symlink for some (unless you intend for all!) and then
you can move and unmove the symlink with a cron job or some other
trigger.


% 
% Nicolas

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!




msg23290/pgp0.pgp
Description: PGP signature


What about Plugins or Modules?

2002-01-18 Thread Gerhard Siegesmund

 % Anyone have any ideas as to when the patch for compressed
 Whenever Roland gets a chance, I'm sure.  It usually doesn't take long,

 some others in my cocktail that don't apply cleanly, but I'm happy to
 report that most do.

Was it ever considered to make some sort of plugin-api for mutt. It
seems there are a lot of patches out there (mostly usefull ones), which
always have to be patched in. Seems horrible to me to administrate
something like that. And if you are just a user you always have to use
the normal buildin things if you don't know the sysadmin really good...

Can't most of the patches be thought of as plugins? Or modules? Or was
this already canceled a long time ago?

Like the hooks I could imagine places where the plugins would be called.
I mean imagine display plugins, or sent-plugins. With this type of
configuration you could just pick out the privacy-plugin with which to
send your mail. Imagine s/mime-plugin, mime/pgp-plugin, asciipgp-plugin
and so on and so on and so on...

Is this a dumb idea???

Just a question... :)

-- 
cu
  --== Jerri ==--
Homepage: http://www.jerri.de/   ICQ: 54160208



msg23291/pgp0.pgp
Description: PGP signature


Re: Configuration of sendmail

2002-01-18 Thread Derek D. Martin

At some point hitherto, Jyothi hath spake thusly:
 Hi,
 
 Can anyone send me the configuration details of sendmail ??. Bascially
 the /etc/mail/sendmail.cf file, which is sending mail outside domain

Sendmail is designed to be extremely flexible and tends to be very
complicated because of that.  There's some documentation that comes
with the source, that you may find in /usr/doc/sendmail* on your
system, and of course there's the man page.  Another source of
information about configuring sendmail is the website,
http://www.sendmail.org.


-- 
Derek Martin   [EMAIL PROTECTED]
-
I prefer mail encrypted with PGP/GPG!
GnuPG Key ID: 0x81CFE75D
Retrieve my public key at http://pgp.mit.edu
Learn more about it at http://www.gnupg.org



msg23292/pgp0.pgp
Description: PGP signature


Re: a little OT...

2002-01-18 Thread Nick Wilson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


and a little addition to that, it's now changing all the colors when I
view messages in the pager.

- -- 

Nick Wilson

Tel:+45 3325 0688
Fax:+45 3325 0677
Web:www.explodingnet.com



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE8SElyHpvrrTa6L5oRAs81AKCbiikN0IljfFTlpPb8bOtobuc2GgCgpvwT
IRfZbeR+35McKNekjPHUYlo=
=1TvO
-END PGP SIGNATURE-



Re: What about Plugins or Modules?

2002-01-18 Thread Mike Schiraldi

 Was it ever considered to make some sort of plugin-api for mutt.

I've been thinking along the same lines. Quite a lot of work, though, since
those patches do all kinds of things to mutt -- there would have to be all
kinds of hooks throughout the code. 

But maybe the majority of the patches could be serviced by just a few hooks
-- one which allows you to create new commands would be a big help, for
instance.


-- 
Mike Schiraldi
VeriSign Applied Research



smime.p7s
Description: application/pkcs7-signature


Re: a little OT...

2002-01-18 Thread David T-G

Nick --

...and then Nick Wilson said...
% 
% and a little addition to that, it's now changing all the colors when I
% view messages in the pager.

That says it's not vim, unless you have a very peculiar pager setting.
Have fun debugging :-)


% 
% -- 
% 
% Nick Wilson
% 
% Tel:  +45 3325 0688
% Fax:  +45 3325 0677
% Web:  www.explodingnet.com
% 


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




msg23296/pgp0.pgp
Description: PGP signature


Re: a little OT...

2002-01-18 Thread Nick Wilson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


* On 18-01-02 at 17:50 
* David T-G said

 Nick --
 
 ...and then Nick Wilson said...
 % 
 % and a little addition to that, it's now changing all the colors when I
 % view messages in the pager.
 
 That says it's not vim, unless you have a very peculiar pager setting.
 Have fun debugging :-)

Nah, definately vim, I ended up turning off syntax highlighting and all
is well in the Wilson camp once more.
Seems that it was treating quoted text as code comments!

Thanks :)


- -- 

Nick Wilson

Tel:+45 3325 0688
Fax:+45 3325 0677
Web:www.explodingnet.com



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE8SFrOHpvrrTa6L5oRAlvDAJ9aGUrZTP3NwU4v/d5LKgofiariygCcCK04
4LDNNvCVqD8MVBifwAfiwhs=
=R2XG
-END PGP SIGNATURE-



Re: statistics

2002-01-18 Thread darren chamberlain

Francis A. Holop [EMAIL PROTECTED] said something to this effect on 01/18/2002:
 no links on mutt.org for mailing list archives
 so i'll just ask my question...

[-- snip --]

 the outgoing mail could be counted somehow
 using mutt's capabilities and that's why
 i am here  any ideas?  (not necessarily
 a source change)

How about:

$ grep -c '^From ' $sentmail

Where $sentmail is your sentmail folder.

(darren)

-- 
Great spirits have always found violent opposition from mediocrities.
The latter cannot understand it when a man does not thoughtlessly
submit to hereditary prejudices but honestly and courageously uses his
intelligence.
-- Albert Einstein



new mail in folders

2002-01-18 Thread Carl B. Constantine

At home, I can use the change-folder command to cycle through folders
with new Mail. I'm using this mailbox command:

mailboxes ! +lists
mailboxes `for file in /home/cconstan/Mail/lists/*; do echo -n
+lists/$(basename $file) ; done`

I'm using the same command here at work and it does not work. Now, a
little more detail...

At home, I have a self contained Linux box. Here at work, my mail spool
is accessed over NFS as is my $HOME, my account is in our NIS and not on
my local machine.

When compiling mutt here at work, I made sure to use --enable-nfs-fix
and --enable-buffy-size so that I could be sure this command works, but
it doesn't. 

I have my .forward calling procmail to deliver mail and mutt-users goes
into it's own folder in ~/Mail/lists/mutt-users

Anyone have ideas on how to get this to work? (NOTE: my home machine
uses BASH and I'm using tcsh here at work if that makes any difference).

-- 
Carl B. Constantine University of Victoria
Programmer Analyst  http://www.uvic.ca
UNIX System Administrator   Victoria, BC, Canada
[EMAIL PROTECTED]



Re: mutt + vim + abook

2002-01-18 Thread Carl B. Constantine

* Brian Medley ([EMAIL PROTECTED]) wrote:
 Hi,
 
 I am trying to make abook work better (for me) within vim.  I am doing
 this because I have 'autoedit' and 'edit_headers' set in mutt.  This
 means I would like to have easy access to my abook addressbook (from
 within the editor).
 
 To accomplish this I have written a vim plugin (it will need vim 6.0)
 and have patched abook.  Both are included.  The patch is against abook
 0.4.13.

Have these patches/plugins been updated at all? I use VIM with mutt as
well and am interested in recent developments.

-- 
Carl B. Constantine University of Victoria
Programmer Analyst  http://www.uvic.ca
UNIX System Administrator   Victoria, BC, Canada
[EMAIL PROTECTED]



Re: statistics

2002-01-18 Thread Michael Elkins

Francis A. Holop wrote:
 no links on mutt.org for mailing list archives
 so i'll just ask my question...

http://groups.yahoo.com/group/mutt-users/

Jeremy, perhaps this could be added to the web site?



Re: S/MIME in the main tree?

2002-01-18 Thread Michael Elkins

Pete Toscano wrote:
 Does anyone know if/when the S/MIME patch will become part of the main
 mutt tree?  I've been using Oliver Ehli's S/MIME patch for
 quite a while now and, for most things, it works fine.  The most
 recent patch is for 1.3.23 and more and more rej files are being
 produced with every new devel version.  It's running with 1.3.25.

I believe this is on the list of items for the 1.5-development tree.



Re: statistics

2002-01-18 Thread Gary Johnson

On Fri, Jan 18, 2002 at 10:21:32AM -0800, Michael Elkins wrote:
 Francis A. Holop wrote:
  no links on mutt.org for mailing list archives
  so i'll just ask my question...
 
 http://groups.yahoo.com/group/mutt-users/
 
 Jeremy, perhaps this could be added to the web site?

But it's already there, and has been for as long as I can remember:

http://www.mutt.org/#discuss

The link says mutt-users Archive (Egroups) but it brings you right to

http://groups.yahoo.com/group/mutt-users/

Gary

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



Re: Configuration of sendmail

2002-01-18 Thread Will Yardley

Jyothi wrote:
 
 Can anyone send me the configuration details of sendmail ??. Bascially
 the /etc/mail/sendmail.cf file, which is sending mail outside
 domain

you should generate your sendmail.cf file from a sendmail.mc file on
your system. you shouldn't tamper with the sendmail.cf file directly, or
copy one from someone else.

there is good documentation on sendmail available online (and check the
sendmail newsgroup's faq).

that said, the suggestion to try postfix isn't a bad one :

w



Re: [OT] MTA for home network

2002-01-18 Thread 2sheds

On þÔ×, ñÎ× 17, 2002 at 03:49:09 -0800, Will Yardley wrote:
 Thomas Roessler wrote:
 
  If you are familiar with postfix anyway, you could just as well
  install a postfix with minimal configuration on your working machine.
 
 i think there's a pretty good example setup for a null client with
 postfix on www.postfix.org as well.

Thnx to all you guys, you were really helpful! I decided to stick with
postfix.

-- 
Oleg Kourapov | Linux user #245698 http://counter.li.org
Moscow, RU| LFS user #1212 http://www.linuxfromscratch.org
  --
Yesterday is a memory.
Tomorrow is the unknown.
Now is the knowing.
  --

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GTW d- s+: a-- C UL++ P+ L+++ E--- W+++ N++ o-- K++ w-- 
O M- V- PS+ PE+++ Y+ PGP++ t 5++ X++ R tv- b+++ DI+ D 
G e* h! r y? 
--END GEEK CODE BLOCK--



msg23305/pgp0.pgp
Description: PGP signature


getmail bug reported: failed to work with procmail or maildrop

2002-01-18 Thread Charles Jie

(I post it to mutt-users, too, because I called for help here first and I
realize many mutt users want getmail very much to assist mutt, like me.)

SYMPTOM

getmail always reports things like below in logfile:

retrieved message 3939610e6c2e596fee8bbb94d4c03a54
new message [EMAIL PROTECTED]: from #@[]
Aborting... (command /usr/bin/procmail -m /home/jie/.procmail-filter 
returned -1 ())

and you'll repeately receive the same mail in your mailbox, while
ignoring the rest mails in remote pop server.

ANALYSYS

1. I can not blame procmail because it finished delivery, it has no
   error in its log, and it exits with 0 if I run it from bash(1).

2. I check procmail mailing list archive: 2001-12/msg00036:

   Re: Procmail returning -1 (trace of procmail spawned from getmail)

   which concluded:

   That getmail is seeing a different exit status would seem to
   indicate that there's a bug in getmail...

3. I recalled and checked bash(1) that exit values range only from 0
   to 255. The 'returned -1' is strange.

4. I looked into getmail.py and identified where the message from.
   It appears like:

cmd = popen2.Popen3 (command, 1, bufsize=-1)
...

r = cmd.poll ()
if err or r:
raise getmailDeliveryException, 'command %s returned %i (%s)' \
 % (command, r or 0, err)

5. I searched in Web for what's poll (I have no idea about
   Python.) and get:

class Popen3
  Class representing a child process.  Normally instances are
  created by the factory functions popen2() and popen3().


poll(self)
Return the exit status of the child process if it has finished,
or -1 if it hasn't finished yet.
wait(self)
Wait for and return the exit status of the child process.


6. Now it's clear that getmail.py using 'poll' is responsible for
   the early aborting. getmail should not quit the game just because
   his team member can not work as fast as him. ;-)

   That 'poll' returns -1 doesn't indicate an error. It's just the
   case the child process has not yet finished. It's not an exit
   value of child process, either.

ACTION

Fix the bug by replacing the 'poll' with 'wait' in /usr/lib/getmail/getmail.py.

Now my getmail does a good job.

best regards,
charlie

P.S.

I've tried to use maildrop other than procmail, while having the
following log message:

Aborting... (command /usr/bin/maildrop ~/.maildroprc returned 19200 (maildrop: 
signal 0x06))

I can not explain the 'returned 19200'. For someone's exercise. ;-)




Re: S/MIME patch for Mutt-1.3.26

2002-01-18 Thread Pete Toscano

Works well for me.  The patches didn't apply without some offsets, but
they all applied with no rejs.

Thanks,
pete

On Fri, 18 Jan 2002, Schiraldi, Mike wrote:

 Attached is a version of the S/MIME patch that will work with
 mutt-1.3.26. (Or at least it appears to work -- let me know if you have any
 problems) If this is your first time using the S/MIME patch, visit the
 project page at http://elmy.myip.org/mutt/smime.html and download the
 smime-keys.pl script so you can import your keys.
 
 Also attached are two patches you can optionally apply afterward. They work
 best together:
 
 color4.patch adds a new pattern, ~V, which returns true if the message has a
 verified signature (i.e. shows up with an S in the index). This works for
 both PGP and S/MIME.
 
 I suggest using it with the following .muttrc lines:
 
 color index yellow  default ~g
 color index green   default ~V
 
 
 indicator.patch changes the behavior of the indicator bar when it is defined
 as mono indicator reverse (the default).
 
 Usually it would always make the indicator bar have
 
 a foreground that is set to the default background color and
 a background that is set to the default foreground color.
 
 With this patch, the indicator bar, when set to reverse, will have
 
 a foreground color set to the background color that the current message
 would have if it were not selected, and
 a background color set to the foreground color that the current message
 would have if it were not selected.
 
 In summary, if you apply all three patches and add those two lines to your
 .muttrc, you'll see signed messages in yellow and verified messages in
 green. The indicator bar will also turn these colors to reflect the status
 of the currently selected message.
 
 If you use pager_index_lines to keep part of the index onscreen while
 reading messages, you'll be able to clearly see, by looking at the indicator
 bar, whether or not the message you are currently reading is signed, and
 whether or not that signature is valid.


-- 
Pete Toscano[EMAIL PROTECTED]703.948.3364



Re: Handling high volume mailing lists - looking for ideas

2002-01-18 Thread Prahlad Vaidyanathan

Hi,

On Fri, 18 Jan 2002 Cameron Simpson spewed into the ether:
[-- snip --]
 I keep my mail in MH folders, so I can find old messages by
 
   find folder-dir -mtime +7 -print
 
 I roll a couple of folders nightly into folder-old with cron.
 
 Obviously this doesn't work so well for the other folder types.

Yup. Me use mbox. Anyway, it's just a matter of using some funky pattern
matching. Will do it tonight, I 'spose.

pv.
-- 
Prahlad Vaidyanathan [EMAIL PROTECTED]

A king's castle is his home.



msg23309/pgp0.pgp
Description: PGP signature


Re: grepm

2002-01-18 Thread Prahlad Vaidyanathan

Hi,

On Thu, 17 Jan 2002 Michael Montagne spewed into the ether:
 I was just reading about grepmail and was led to a wrapper for it
 specifically for mutt called grepm.  Sounds like something that might be
 neat. After installing the software, how do I implement it in mutt?  
 thanks.

I have this in my muttrc :

macro generic f7 shell-escape~/.mutt/grepm.sh 

So, when I hit f7, it waits for a pattern. Once I enter the pattern,
and hit enter, it dumps all matching messages into a temporary
mailbox, and calls mutt on that mailbox. 

It's a beauty, IMHO :-)

pv.
-- 
Prahlad Vaidyanathan [EMAIL PROTECTED]

You just wait, I'll sin till I blow up!
-- Dylan Thomas



msg23310/pgp0.pgp
Description: PGP signature


Re: MTA for home network

2002-01-18 Thread Prahlad Vaidyanathan

Hi,

On Fri, 18 Jan 2002 [EMAIL PROTECTED] spewed into the ether:
 I've just finished setting up my a server for my home network. 
 Fetchmail downloads all messages from pop3 server of my ISP - postfix
 sends received data to maildrop - finally messages got to my courier
 IMAP server. That's my server mail delivery scheme.
 On my workstation I recompiled mutt with imapssl support. Reading mail
 is fine, but when I want to send a message mutt shows me error 127 - from
 my previous experience it means that sendmail binary is not found (and
 that's absolutely correct, it's not installed :) )
 I need your advice: what MTA shall I install for that easy task of sending
 outgoing mail to postfix running on my local server? Sure thing, I don't
 want any sendmail/qmail/postfix for that, but I've seen several
 minimalistic servers on freshmeat - perhaps someone could gimme a piece
 of advice on that issue?

I've recently hacked up a bunch of python scripts which I use to queue
all out-going mails and send them through my ISP's smart-host. If you
are interested, let me know, and I'll put it up somewhere for you.

This, of course, works for my single-user home machine connecting to the
net through a dial-up link.

pv.
-- 
Prahlad Vaidyanathan [EMAIL PROTECTED]

I went to the museum where they had all the heads and arms from the
statues that are in all the other museums.
-- Steven Wright



msg23311/pgp0.pgp
Description: PGP signature


Re: MTA for home network

2002-01-18 Thread QuoteMstr - Danny Colascione

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sat, Jan 19, 2002 at 12:57:44AM +, Prahlad Vaidyanathan wrote:
 Hi,
 
 On Fri, 18 Jan 2002 [EMAIL PROTECTED] spewed into the ether:
  I've just finished setting up my a server for my home network. 
  Fetchmail downloads all messages from pop3 server of my ISP - postfix
  sends received data to maildrop - finally messages got to my courier
  IMAP server. That's my server mail delivery scheme.
  On my workstation I recompiled mutt with imapssl support. Reading mail
  is fine, but when I want to send a message mutt shows me error 127 - from
  my previous experience it means that sendmail binary is not found (and
  that's absolutely correct, it's not installed :) )
  I need your advice: what MTA shall I install for that easy task of sending
  outgoing mail to postfix running on my local server? Sure thing, I don't
  want any sendmail/qmail/postfix for that, but I've seen several
  minimalistic servers on freshmeat - perhaps someone could gimme a piece
  of advice on that issue?
 
 I've recently hacked up a bunch of python scripts which I use to queue
 all out-going mails and send them through my ISP's smart-host. If you
 are interested, let me know, and I'll put it up somewhere for you.

So you made a Python implementation of ssmtp?

- -- 
For all sad words
of tounge or pen,
the saddest are these:
It might have been.

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

iD8DBQE8SMdsDtFkzqOHwVgRAsHFAJ48btIUkIAE20WwqudWyVZeXCglgACfUdqU
jU3qaRaFgodFtKUUP7qf7iM=
=btaY
-END PGP SIGNATURE-



Re: How to pipe attachment to netscape?

2002-01-18 Thread Prahlad Vaidyanathan

Hi,

On Fri, 18 Jan 2002 Charles Jie spewed into the ether:
 Previously I have this in my .mailcap:
 
 text/html; netscape -remote openfile\\(%s\\)
 
 But I change to use this for speed:
 
 text/html; lynx %s; nametemplate=%s.html
 
 * I still want to view the attachment with netscape as an alternative if
   it's worth the effort. I plan to have a macro to do it. But could I
   use pipe? (I see the problem with %s.) Is there any trick for it?

Not sure about netscape, but I have this in my mailcap :

text/html; konqueror %s; test=runningX.sh
text/html; lynx -force_html %s
text/html; w3m -S -F -dump -T text/html %s; copiousoutput

 * And strange, now my lynx just show the source content of html instead
   of the previous formated view. What's
   wrong? :-(

Maybe the -force_html flag is required ?

pv.
-- 
Prahlad Vaidyanathan [EMAIL PROTECTED]

Economists state their GNP growth projections to the nearest tenth of a
percentage point to prove they have a sense of humor.
-- Edgar R. Fiedler



msg23313/pgp0.pgp
Description: PGP signature


Re: statistics

2002-01-18 Thread Prahlad Vaidyanathan

Hi,

On Fri, 18 Jan 2002 Francis A. Holop spewed into the ether:
 
 hello,
 
 no links on mutt.org for mailing list archives
 so i'll just ask my question...
 
 i was thinking about counting every single
 mail i send and get.  kind of silly statistics
 that could amaze me when i'm 70.

*grin*

This isn't a mutt solution, but if you use procmail it is kinda nifty.

Put the following into your .procmailrc :
LOGFILE=/path/to/logfile

Any ol' procmail should come with a program called 'mailstat'. Running
this :

$ mailstat -k /path/to/logfile

should show you what you want. It also shows you which mails have been
filtered into which boxes by procmail, and a final total.

 one way i was thinking to do this was:
 for the incoming mail use procmail and
 a generic all matching rule which would
 than increase a variable somewhere.

Well, apparently you _are_ using procmail ...

 the outgoing mail could be counted somehow
 using mutt's capabilities and that's why

Well, as David pointed out, you could just increment a counter, but I
prefer mailstat's output, as it shows me what procmail has been upto
behind my back ;-)

pv.
-- 
Prahlad Vaidyanathan [EMAIL PROTECTED]

pediddel:
A car with only one working headlight.
-- Sniglets, Rich Hall  Friends



msg23314/pgp0.pgp
Description: PGP signature


Re: a little OT...

2002-01-18 Thread Prahlad Vaidyanathan

Hi,

On Fri, 18 Jan 2002 Nick Wilson spewed into the ether:
 Hi everyone.
 
 A little oddity for you;
 I just upgraded the editor I use to Vim6 and 15mins ago it appeared to
 be coloring my messages (putting the text to a ghastly purple). as I
 wrote them.
 However, as I started to write this one it stopped. 
 
 Does anyone know what might be going on?

No, but this might help. Here is a function by Chip Campbell, which can
tell you the colour 'type' (don't know what you call it in Vim-speak) of
a the cword.

function! HiCheck()
let i = hi
let i = i . synIDattr(synID(line(.),col(.),1),name)
let i = i .  trans
let i = i . synIDattr(synID(line(.),col(.),0),name)
let i = i .  lo
let i = i . synIDattr(synIDtrans(synID(line(.),col(.),1)),name)
let i = i . 
:echo i
endfunction

I have this in my .vimrc :

nmap F6:call HiCheck()CR

So, you could just put the cursor under the offending word, hit f6,
and voila!, you know what syntax region it's part of. Then, you could
find your way through $VIMRUNTIME/syntax/mail.vim, and figure out why
the said regexp is being matched.

You could, optionally, cook up your own syntax file, and use that
instead, so you don't have to go through such rude shocks ;-)

Ok, this was waaay OT, so I should stop now before I get kicked off the
list :-)

pv.
-- 
Prahlad Vaidyanathan [EMAIL PROTECTED]

The farther you go, the less you know.
-- Lao Tsu, Tao Te Ching



msg23315/pgp0.pgp
Description: PGP signature


Re: rejected mail

2002-01-18 Thread Aaron Schrab

At 03:20 -0800 18 Jan 2002, Todd Kokoszka [EMAIL PROTECTED] wrote:
 ... while talking to mail-exchange.domino.iht.com.:
  MAIL From:[EMAIL PROTECTED] SIZE=392
  554 Mail from [EMAIL PROTECTED] rejected
 for policy reasons.

At 01:39 + 19 Jan 2002, Prahlad Vaidyanathan [EMAIL PROTECTED] wrote:
 On Fri, 18 Jan 2002 Todd Kokoszka spewed into the ether:
 [-- snip --]
  The original message was received at Fri, 18 Jan 2002
  12:22:22 +0100
  from kokoszka@localhost
 ^
 
 Maybe that is the reason.

No, that's just his local MTA listing where it got the message from.
There's likely no way to change the value there, since it would likely
always use the login name of the invoking user, and localhost since
it's getting the message from a pipe rather than via SMTP.

This value would not be passed to the recipient's mail server in anyway.
Actually, it might be sent in a Received: header, but the message is
rejected before the local MTA has a chance to send any of the headers.

 Try setting 'envelope_from' in your muttrc.

The envelope from is already being set fine (at least it's not obiously
wrong, and is in a domain that exists).  See the MAIL From: line
quoted in the original message.

-- 
Aaron Schrab [EMAIL PROTECTED]  http://www.execpc.com/~aarons/
 The data for most coffee URIs contain no caffeine.  -- RFC 2324



how to keep threads collapsed, in a mailbox index, when mail arrives?

2002-01-18 Thread parv

can anybody tell me how to keep threads collapsed when new mail 
arrives in a mailbox?

say, i am looking at the mailbox index.  all the threads are
collapsed.  as soon as new mail arrives,  the thread receiving the
new mail gets un-collapsed ... which is highly annoying.

i am using mutt 1.3.25i on freebsd 4.5-prerelease.  below is some of
the muttrc, hopefully w/ least of the irrelevant portion...


# threading options
set duplicate_threads=yes
set hide_missing=yes
set thread_received=no
#
set strict_threads=no
set collapse_unread=yes
set uncollapse_jump=yes

# sorting
set sort_alias=alias
set sort_browser=reverse-date
set sort=threads
#set sort=reverse-threads
set sort_aux=last-date-received
set sort_re=yes
...
# collapse all threads in any folder
folder-hook . 'push \eV'


thanks much.

  - parv

-- 
 



[OT] Exit status (was Re: getmail bug reported: failed to work with procmail or maildrop)

2002-01-18 Thread Derek D. Martin

At some point hitherto, Charles Jie hath spake thusly:
   Aborting... (command /usr/bin/maildrop ~/.maildroprc returned 19200 (maildrop: 
signal 0x06))
  
   I can not explain the 'returned 19200'. For someone's exercise. ;-)
 
  It's the exit code and the signal, encoded in a standard format.  It's
  not just the exit code.
 
 Really? That's beyond my knowledge. Pleae cite me for further info.

Well, I haven't seen the code, but it's probably the status field of
the wait(2) system call.  For details, see man 2 wait.  Here's a
little program that will give you a breakdown:

=

 #include stdio.h
 #include sys/types.h
 #include sys/wait.h
 
 main(){
 
 printf(status (in hex) = %x\n, 19200);
 printf(WIFEXITED = %x\n, WIFEXITED(19200) );
 printf(WEXITSTATUS = %x\n, WEXITSTATUS(19200) );
 printf(WIFSIGNALED = %x\n, WIFSIGNALED(19200) );
 printf(WTERMSIG = %x\n, WTERMSIG(19200) );
 printf(WIFSTOPPED = %x\n, WIFSTOPPED(19200) );
 printf(WSTOPSIG = %x\n, WSTOPSIG(19200) );
 
 }

=

Here's the output:

  status (in hex) = 4b00
  WIFEXITED = 1
  WEXITSTATUS = 4b
  WIFSIGNALED = 0
  WTERMSIG = 0
  WIFSTOPPED = 0
  WSTOPSIG = 4b

Assuming this is what we're dealing with, it should mean that the
program exited normally (WIFEXITED = 1) and that the exit status was
0x4b, or 60 decimal.  It was not killed by a signal (WIFSIGNALED = 0),
nor was it stopped (WIFSTOPPED = 0).  The value 4b associated with the
WSTOPSIG macro is meaningless, because WIFSTOPPED is false.  There's
also a good discussion of this in W. Richard Stevens, Advanced
Programming in the Unix Environment if you're interested.


-- 
Derek Martin   [EMAIL PROTECTED]
-
I prefer mail encrypted with PGP/GPG!
GnuPG Key ID: 0x81CFE75D
Retrieve my public key at http://pgp.mit.edu
Learn more about it at http://www.gnupg.org



msg23319/pgp0.pgp
Description: PGP signature


separate thread collapse uncollapse functions

2002-01-18 Thread parv

does anybody know if there is/are patch/es so that thread could be
collapsed  uncollapsed unconditionally?  currently, collapse-all
( collapse-thread) is only a toggle.

are these functions going to be on the main source tree any time soon?

 
-- 
 



Re: how to keep threads collapsed, in a mailbox index, when mail arrives?

2002-01-18 Thread Knute

On Sat, 19 Jan 2002, parv wrote:

 can anybody tell me how to keep threads collapsed when new mail 
 arrives in a mailbox?

 say, i am looking at the mailbox index.  all the threads are
 collapsed.  as soon as new mail arrives,  the thread receiving the
 new mail gets un-collapsed ... which is highly annoying.

 i am using mutt 1.3.25i on freebsd 4.5-prerelease.  below is some of
 the muttrc, hopefully w/ least of the irrelevant portion...

...
 set collapse_unread=yes
...
 thanks much.

   - parv

Change the above to :  set collapse_unread=no

According to the manual,  that's the option that prevents mutt from
collapsing threads with new mail in them.