[PATCH] extending pgp-hook

2000-06-08 Thread Bardur Arantsson

Hi all,

I have made a small (2K) patch against mutt-1.2i to extend pgp-hook
to allow multiple keys to be used:

pgp-hook pattern keyID1,keyID2,keyID3,...

This will make mutt use the keys keyID1,keyID2,keyID3, etc.
to encrypt messages whose To:,Bc: or Bcc: headers matches
the pattern.

There is also a new option

php_hook_confirm

which is set by default. When set, mutt will confirm each keyID
which is expanded (which is similar to the unpatched behavior).
When unset mutt will skip this confirmation of each of the listed
keyIDs key. This can be very useful if there are a lot of keyIDs
in the list, and you are sure that they are correct.
The default behavior should be completely backward compatible.

The patch has some rough edges, but it seems useful for my
purposes, so I thought I'd share it with the rest of you.
I've attached the patch to this post. Your mileage may vary.

-- 
Bardur Arantsson
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>

-- In the beginning the Universe was created. This has made a lot
   of people very angry and been widely regarded as a bad move.
 -- Douglas Adams


diff -ur mutt-1.2.pristine/init.h mutt-1.2/init.h
--- mutt-1.2.pristine/init.hWed Apr 26 09:32:40 2000
+++ mutt-1.2/init.h Thu Jun  8 22:58:24 2000
@@ -1086,6 +1086,12 @@
   { "pgp_entry_format", DT_STR,  R_NONE, UL &PgpEntryFormat, UL "%4n %t%f %4l/0x%k 
%-4a %2c %u" },
   /*
   ** .pp
+  ** If set (the default), ask for confirmation on keys expanded by
+  ** \fIpgp_hook\fP.
+  */
+  { "pgp_hook_confirm",DT_BOOL, R_NONE, OPTPGPHOOKCONFIRM, 1 },
+  /*
+  ** .pp
   ** This variable allows you to customize the PGP key selection menu to
   ** your personal taste. This string is similar to ``$$index_format'', but
   ** has its own set of printf()-like sequences:
diff -ur mutt-1.2.pristine/mutt.h mutt-1.2/mutt.h
--- mutt-1.2.pristine/mutt.hWed Apr 26 09:32:40 2000
+++ mutt-1.2/mutt.h Thu Jun  8 22:59:14 2000
@@ -360,6 +360,7 @@
 #ifdef HAVE_PGP
   OPTPGPAUTOSIGN,
   OPTPGPAUTOENCRYPT,
+  OPTPGPHOOKCONFIRM,
   OPTPGPLONGIDS,
   OPTPGPREPLYENCRYPT,
   OPTPGPREPLYSIGN,
diff -ur mutt-1.2.pristine/pgp.c mutt-1.2/pgp.c
--- mutt-1.2.pristine/pgp.c Fri Mar  3 11:10:11 2000
+++ mutt-1.2/pgp.c  Thu Jun  8 23:31:00 2000
@@ -1159,6 +1159,7 @@
   ADDRESS *p, *q;
   int i;
   pgp_key_t *k_info, *key;
+  char *keyID_list = NULL;
 
   const char *fqdn = mutt_fqdn (1);
   
@@ -1182,18 +1183,32 @@
 
   tmp = mutt_remove_duplicates (tmp);
   
-  for (p = tmp; p ; p = p->next)
+  for (p = tmp; p ; )
   {
 char buf[LONG_STRING];
 
 q = p;
 k_info = NULL;
 
-if ((keyID = mutt_pgp_hook (p)) != NULL)
-{
+/* any keys listed in pgp_hook? */
+if ((keyID_list==NULL) && ((keyID_list = mutt_pgp_hook (p)) != NULL))
+  ;
+
+/* expanding keys from pgp_hook? */
+if (keyID_list) 
+  {
+  /* proceed to next key in list */
+  if ((keyID = strsep(&keyID_list,",")) != NULL) 
+   {
+  /* confirm usage of each key in the list */
   int r;
   snprintf (buf, sizeof (buf), _("Use keyID = \"%s\" for %s?"), keyID, 
p->mailbox);
-  if ((r = mutt_yesorno (buf, M_YES)) == M_YES)
+  
+  if (option (OPTPGPHOOKCONFIRM) == 0) 
+   r = M_YES; /* auto-confirm */
+
+  if (r == M_YES ||
+ (r = mutt_yesorno (buf, M_YES)) == M_YES)
   {
/* check for e-mail address */
if ((t = strchr (keyID, '@')) && 
@@ -1212,7 +1229,11 @@
rfc822_free_address (&addr);
return NULL;
   }
-}
+   }
+  else
+   keyID_list = NULL;
+};
+
 
 if (k_info == NULL)
   pgp_invoke_getkeys (q);
@@ -1244,6 +1265,8 @@
 pgp_free_key (&key);
 rfc822_free_address (&addr);
 
+if (!keyID_list)
+  p = p->next;
   }
   rfc822_free_address (&tmp);
   return (keylist);



Re: bouncing emails from temp. domain

2000-06-08 Thread Thomas Roessler

On 2000-06-08 18:11:42 -0500, Andrew Eichmann wrote:

> my_hdr Reply-to: [EMAIL PROTECTED]

I'd rather do this:

set from="[EMAIL PROTECTED]"
set envelope_from

> set hostname="enteract.com"

>  I used to run pine, and didn't have this problem after
> I forced the header to say [EMAIL PROTECTED]

-- 
http://www.guug.de/~roessler/



Re: How do I make pop support do polling?

2000-06-08 Thread Suresh Ramasubramanian

Timothy Ball proclaimed on mutt-users that: 

>Fetchmail is frowned upon because of the fact that fetchamil basically
>runs as a deamon.

Not by default.  If you call it with fetchmail -d  then yes ...

Instead, run it using a cronjob at required intervals, or make it a
shellscript.

http://www.tuxedo.org/~esr/fetchmail/Fetchmail-FAQ.html has a lot you can
use.


-- 
Suresh Ramasubramanian + [EMAIL PROTECTED]
However, never daunted, I will cope with adversity in my traditional
manner ... sulking and nausea.
-- Tom K. Ryan



Re: save-hook question

2000-06-08 Thread David T-G

Adahma --

...and then Adahma said...
% Would it be possible to setup a save-hook that would open the
% browser in a specific subdirectory so that I could easily the right
% mailbox?

It sounds like what you want is a macro, but perhaps you might want a
save-hook that changes the directory based on the message.

First, then, the macro.  You could create a macro like

  macro pager ,c "=/some/dir/"

to enter the change-folder command (bound to 'c' by default), enter
ctrl-u to erase the supplied line contents (if any), specify the path to
your desired dir, and even hit a  to list the contents for you.

Now, if you could predefine the directory somehow, like matching on the
domain name, then you could create a save hook like

  save-hook @domain.com =/domain/%O

to save in your $HOME/Mail/domain dir under mutt's 'O'riginal mailbox
name.


% 
% TIA,
% Adahma


:-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.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


Re: Mutt/Procmail/Fetchmail question NEW colour question

2000-06-08 Thread Thomas Dickey

On Thu, Jun 08, 2000 at 10:59:36PM +0200, Marius Gedminas wrote:
> On Wed, Jun 07, 2000 at 09:48:50AM -0700, Timothy Grant wrote:
> > I'm not quite sure I know how to get the colours working. I have run it
> > in both a Eterm and an rxvt session and there is no colour. Do I have to
> > do something to turn colour on, or do I need to do something to my
> > terminal settings to make it work (ls --color works in both sessions, so
> > I know my terminals both are configured for colour support)
> 
> Set $TERM to `xterm-color' and you should get colour.

comparing xterm-color to rxvt.
comparing booleans.
OTbs: T:F.
bce: F:T.
eo: F:T.
xon: F:T.
AX: F:T.
comparing numbers.
comparing strings.
acsc: '``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~', 
'``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~'.
blink: NULL, '\E[5m'.
civis: NULL, '\E[?25l'.
cnorm: NULL, '\E[?25h'.
el1: NULL, '\E[1K'.
enacs: '\E)0', '\E(B\E)0'.
flash: NULL, '\E[?5h\E[?5l'.
ich: NULL, '\E[%p1%d@'.
ich1: NULL, '\E[@'.
is1: NULL, '\E[?47l\E=\E[?1l'.
is2: '\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>', 
'\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l'.
kDC: NULL, '\E[3$'.
kEND: NULL, '\E[8$'.
kHOM: NULL, '\E[7$'.
kLFT: NULL, '\E[d'.
kNXT: NULL, '\E[6$'.
kPRV: NULL, '\E[5$'.
kRIT: NULL, '\E[c'.
ka1: NULL, '\EOw'.
ka3: NULL, '\EOy'.
kb2: NULL, '\EOu'.
kc1: NULL, '\EOq'.
kc3: NULL, '\EOs'.
kcbt: NULL, '\E[Z'.
kcub1: '\EOD', '\E[D'.
kcud1: '\EOB', '\E[B'.
kcuf1: '\EOC', '\E[C'.
kcuu1: '\EOA', '\E[A'.
kel: NULL, '\E[8\^'.
kend: NULL, '\E[8~'.
kent: NULL, '\EOM'.
khome: NULL, '\E[7~'.
op: '\E[m', '\E[39;49m'.
rmkx: '\E[?1l\E>', '\E>'.
rmso: '\E[m', '\E[27m'.
rmul: '\E[m', '\E[24m'.
rs1: NULL, '\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H'.
rs2: '\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>', 
'\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>'.
s0ds: NULL, '\E(B'.
s1ds: NULL, '\E(0'.
sgr0: '\E[m', '\E[m\017'.
smkx: '\E[?1h\E=', '\E='.
u6: '\E[%i%d;%dR', NULL.
u7: '\E[6n', NULL.
u8: '\E[?1;2c', NULL.
u9: '\E[c', NULL.
> 
> Marius Gedminas
> -- 
> Your eyes are weary from staring at the CRT.  You feel sleepy.  Notice how
> restful it is to watch the cursor blink.  Close your eyes.  The opinions
> stated above are yours.  You cannot imagine why you ever felt otherwise.

-- 
Thomas E. Dickey <[EMAIL PROTECTED]>
http://dickey.his.com
ftp://dickey.his.com



Re: save-hook question

2000-06-08 Thread Mikko Hänninen

Adahma <[EMAIL PROTECTED]> wrote on Thu, 08 Jun 2000:
> Would it be possible to setup a save-hook that would open the
> browser in a specific subdirectory so that I could easily the right
> mailbox?

I just tried this:

  save-hook "~f adahma" +foo

... and created the directory ~/Mail/foo

When I pressed s(save), I got the default prompt =foo, when I pressed
TAB, Mutt appended / to the =foo, and the second TAB took me to the
directory browser in the dir =foo/.

Is this what you're looking for?


Regards,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
If you don't use punctuation there is no point in what you write



save-hook question

2000-06-08 Thread Adahma

Would it be possible to setup a save-hook that would open the
browser in a specific subdirectory so that I could easily the right
mailbox?

TIA,
Adahma




Re: bouncing emails from temp. domain

2000-06-08 Thread Mikko Hänninen

Andrew Eichmann <[EMAIL PROTECTED]> wrote on Thu, 08 Jun 2000:
>- Transcript of session follows -
> ... while talking to mx0.gmx.de.:
> >>> MAIL From:<[EMAIL PROTECTED]> BODY=8BITMIME
> <<< 550 Cannot resolve your domain - ungueltiger Domain-Name in Adresse

...

> From: Andrew Eichmann <[EMAIL PROTECTED]>

...

> Now, it appears that it's complaining that DNS can't find
>  werich.enteract.com, which is my linux box's domain name.

Well, your From header is correct (it doesn't have the werich part), but
that is not the problem.  The rejection happens at the stage where your
sendmail is sending the envelope sender information, not the From
header.  So even though your From header is correct, the envelope sender
is still marked as [EMAIL PROTECTED]

There's (at least) two ways to fix this.

The simpler is probably to set $envelope_from in your .muttrc, this
makes Mutt pick the address from the From header and use that as the
evenlope sener.

The second approach is to customize the sendmail command (the $sendmail
Mutt variable) and set up your envelope sender address in that, with the
-f switch.  This way the envelope sender isn't dependent on the From
address, should that be an issue for you.


Hope this helps,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
Gravity is a myth, the Earth sucks!



bouncing emails from temp. domain

2000-06-08 Thread Andrew Eichmann



Hello,

I have a lunux setup and a temporary dialup connection.  Sometimes when
I try to send somebody email it gets bounced with the following complaint:


   - Transcript of session follows -
... while talking to mx0.gmx.de.:
>>> MAIL From:<[EMAIL PROTECTED]> BODY=8BITMIME
<<< 550 Cannot resolve your domain - ungueltiger Domain-Name in Adresse
554 [EMAIL PROTECTED] Service unavailable

--UAA00925.959908551/werich.enteract.com
Content-Type: message/delivery-status

Reporting-MTA: dns; werich.enteract.com
Arrival-Date: Thu, 1 Jun 2000 20:15:49 -0500

Final-Recipient: RFC822; [EMAIL PROTECTED]
Action: failed
Status: 5.0.0
Remote-MTA: DNS; mx0.gmx.de
Diagnostic-Code: SMTP; 550 Cannot resolve your domain - ungueltiger Domain-Name i
n Adresse
Last-Attempt-Date: Thu, 1 Jun 2000 20:15:51 -0500

--UAA00925.959908551/werich.enteract.com
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit

Return-Path: 
Received: (from gibby@localhost)
by werich.enteract.com (8.9.3/8.9.3) id UAA00923
for [EMAIL PROTECTED]; Thu, 1 Jun 2000 20:15:49 -0500
Date: Thu, 1 Jun 2000 20:15:49 -0500
From: Andrew Eichmann <[EMAIL PROTECTED]>
To: =?iso-8859-1?Q?Max_K=FCnemann?= <[EMAIL PROTECTED]>
Subject: Re: device busy / ZIP-drive
Message-ID: <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
References: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline




Now, it appears that it's complaining that DNS can't find
 werich.enteract.com, which is my linux box's domain name.

I have the following in my muttrc:

my_hdr Reply-to: [EMAIL PROTECTED]
set hidden_host
set hostname="enteract.com"

 I used to run pine, and didn't have this problem after I forced
the header to say [EMAIL PROTECTED]

Sorry if this has been covered; I searched the archives for ``bounce''...

Thanks,
Andy







Re: How do I make pop support do polling?

2000-06-08 Thread Mikko Hänninen

Hi there,

Timothy Grant <[EMAIL PROTECTED]> wrote on Thu, 08 Jun 2000:
> Being a Mutt newbie, I don't know what negative side effects might be caused
> by my desire. The default Mutt behaviour has the j key going to the next
> message. I think I would prefer that it go to the next unread message. I
> think I am capable of writing the macro to make that happen. However, I
> don't know what undesirable side effects that might occur should I do this.
> Is there a downside that I don't see?

No there aren't.

The only thing to watch out for is other macros which might expect that
j is bound to next-undeleted, but you presumably know of any macros that
you have defined (if you don't know of any, then there probably aren't
any...) and whether they depend on that binding or not.

Anyway, it's better to write macros which don't depend on specific keys,
by specifying  instead, just to avoid this kind of
situations.

One final note: you probably don't need a macro, just re-binding of the
j key.  Mutt already has the next-new (or maybe it was next-unread, I
forget) function.

> I
> also would love to turn off the scroll bar, but the -sb switch doesn't
> appear to work.

Experiment with +sb instead.  In many X programs some option is turned
on with - and turned off with +  (yes, it's bit backwards).


Regards,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
The only substitute for good manners is fast reflexes.



Re: How do I make pop support do polling?

2000-06-08 Thread David T-G

Tim --

...and then Timothy Grant said...
% Hi all,
% 
% Thanks for all your wonderful assistance in getting Mutt up and running. I
% haven't started Messenger all day, so your help was really useful!

Yippee! :-)


% 
% I do have a few  other questions, two of them are not *really* Mutt
% related, but one of them is, so let me start with that.

*grin*


% 
% Being a Mutt newbie, I don't know what negative side effects might be caused
% by my desire. The default Mutt behaviour has the j key going to the next
% message. I think I would prefer that it go to the next unread message. I
% think I am capable of writing the macro to make that happen. However, I
% don't know what undesirable side effects that might occur should I do this.
% Is there a downside that I don't see?

You can bind your keys any way you wish.  Since you have {J,K} bound by
default to {next,prev}-entry, along with {j,k} ({next,prev}-undeleted),
you can change  from next-new to whatever and bind {j,k} to
{next,prev}-new and take off.

Can't help you much with color, and I swear by vi[m] :-)


:-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.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


Re: How do I make pop support do polling?

2000-06-08 Thread Timothy Grant

Hi all,

Thanks for all your wonderful assistance in getting Mutt up and running. I
haven't started Messenger all day, so your help was really useful!

I do have a few  other questions, two of them are not *really* Mutt
related, but one of them is, so let me start with that.

Being a Mutt newbie, I don't know what negative side effects might be caused
by my desire. The default Mutt behaviour has the j key going to the next
message. I think I would prefer that it go to the next unread message. I
think I am capable of writing the macro to make that happen. However, I
don't know what undesirable side effects that might occur should I do this.
Is there a downside that I don't see?

Moving more off-topic. In the discussions over my getting colour working, it
was suggested that I use rxvt. I tried it and liked it very much. I'm going
to show both my X ignorance and my rxvt ignorance here. One of the things I
like about rxvt is its default fonts. I particularly like the largest font,
however, I have no idea what the font is called, nor how to automatically
start with the largest font. Any suggestions would be greatly appreciated. I
also would love to turn off the scroll bar, but the -sb switch doesn't
appear to work.

Moving even more off-topic. I'm using joe as my e-mail editor. However,
since my window defaults to 80x40, joe's display is completely mangled when
it starts. Using a ^R tends to fix most of the mangling, but not always.

Also, who is using what for an editor (I use emacs all the time, but it is
out as an e-mail editor as startup speed is too long) Other than joe, who's
using what and why.

Thanks in advance


-- 
Stand Fast,
tjg.

Timothy Grant [EMAIL PROTECTED]
Chief Technology Officer  www.exceptionalminds.com
Red Hat Certified Engineer   MIG #1433
Avalon Technology Group, Inc.   
Linux...Because rebooting isn't normal



Re: PDF viewing question

2000-06-08 Thread Associate Dean

On Thu, Jun 08, 2000 at 02:59:21PM +0200, Roland Rosenfeld wrote:
> On Thu, 08 Jun 2000, Randall Hopper wrote:
> 
> > I want to autoview PDFs, but also be able to kick off acroread.
> > Autoview works, but I can't figure out how to kick off acroread in mutt.
> 
> >application/pdf; pdf2txt %s; needsterminal; copiousoutput
> >application/pdf; acroread %s
> > 
> > The first should be used for autoview.  And the second should be
> > used for view-attach, right?  However view-attach also uses pdf2txt
> > 
> > Anyone see what I'm doing wrong?  I thought this worked at some point.
> 
> Try reversing the order of these two lines.  The mailcap is searched
> top down and the first match is used.  If you change the order of
> these two lines, view-attach will find acroread first while auto-view
> ignores acroread and uses pdf2txt because it only uses copiousoutput
> lines.
> 
> BTW: does it make sense to combine "needsterminal" and "copiousoutput"
> in one mailcap entry?  As far as I understand they are quite contrary,
> because "needsterminal" needs a terminal with user input while
> "copiousoutput" pipes the output to some kind of pipe.
> 
> So I would change the above entries to something like this:
> 
> application/pdf; acroread %s; test=test -n "$DISPLAY"
> application/pdf; pdf2txt %s; copiousoutput

I agree with Roland. That should fix it. I would like to do this too,
but I do not know about pdf2txt. Could someone please post a source for
it and perhaps add a link to the www.mutt.org pages - I do not think it
is there vut could of course be wrong.

Cheers, Brian.

> Tscho
> 
> Roland
> 
> -- 
>  * [EMAIL PROTECTED] * http://www.spinnaker.de/ *

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
  School of Biological, Environmental and Chemical Sciences, SITE,
Northern Territory University, Darwin, NT 0909, Australia.  Phone 08-89466702. 
Fax 08-89466847  http://www.smps.ntu.edu.au/school/compchem.html



Re: How do I make pop support do polling?

2000-06-08 Thread David T-G

Tim --

...and then Timothy Ball said...
% On Thu, Jun 08, 2000 at 04:47:14PM -0400, David T-G wrote:
% > How on earth is anyone getting mail now?  Can you mimic that?
% 
% Most of the ppl here use kpop (kerberos pop) support in eudora, or

Ahhh...  So they really *are* popping, then.  Ugh :-)


% outlook. I myself am adding kerberos support (again) into mutt, via a
% SASL (Simple Authentication Support Layer), it does kerberos via GSSAPI.

Well, thanks!


% The practical upshot of doing it this way is that when you POP yr mail
% the body of the message is sent encrypted... and of course kerberos

Pretty nice, even if it doesn't encrypt the headers...


% allows you to log into the pop server w/o using a passwd.

A nice bonus.


% 
% > I won't go into wondering why you can't fake it with fetchmail or the
% > like; I like Mikko's suggetsion about upgrading your higher-ups :-)
% 
% Fetchmail is frowned upon because of the fact that fetchamil basically
% runs as a deamon.

Hmmm...  What would they say if you promised to not, and then ran it from
cron every */2 or */5 minutes? :-)


% 
% > If you have access to the server, could you just read in an xterm from
% > there?  Or perhaps you could grab your mail out of /var/mail and
% > "deliver" it to $HOME somewhere...
% 
% The mail server no longer allows ssh/ktelnet access to "normal" users.

I figured that they'd have done that -- first, in fact -- but then didn't
think that any company would *really* have folks popping dwn internally...
What a backup mess!


% 
% Basically what I would like to see is POP support in mutt to be on the
% line of IMAP support, polling of mailhost and delivering it to an INBOX
% or something similiar. 

I can imagine that...  Of course, it gets back to the whole war over
which is a download method and which is a folder implementation...


% 
% Course I'm having some issues w/ pop.c. I guess it's the fact that I'm
% unfamiliar w/ the "mutt" way of doing things. One where can I add a
% ./configure option. (I am very unfamiliar w/ m4.) how do I add stuff to
% init.h, and what format should it be in. And in pop.c where does the pop
% mesgs actually get "stored" in the mailbox? Is it via the
% mx_commit_message() function near line 280?

Way outta my league :-)


% 
% --timball
% 
% -- 
% <[EMAIL PROTECTED]>

Obviously not once they get to management, it seems ;-)


:-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.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


Re: How do I make pop support do polling?

2000-06-08 Thread Timothy Ball

On Thu, Jun 08, 2000 at 04:47:14PM -0400, David T-G wrote:
> How on earth is anyone getting mail now?  Can you mimic that?

Most of the ppl here use kpop (kerberos pop) support in eudora, or
outlook. I myself am adding kerberos support (again) into mutt, via a
SASL (Simple Authentication Support Layer), it does kerberos via GSSAPI.
The practical upshot of doing it this way is that when you POP yr mail
the body of the message is sent encrypted... and of course kerberos
allows you to log into the pop server w/o using a passwd.

> I won't go into wondering why you can't fake it with fetchmail or the
> like; I like Mikko's suggetsion about upgrading your higher-ups :-)

Fetchmail is frowned upon because of the fact that fetchamil basically
runs as a deamon.

> If you have access to the server, could you just read in an xterm from
> there?  Or perhaps you could grab your mail out of /var/mail and
> "deliver" it to $HOME somewhere...

The mail server no longer allows ssh/ktelnet access to "normal" users.

Basically what I would like to see is POP support in mutt to be on the
line of IMAP support, polling of mailhost and delivering it to an INBOX
or something similiar. 

Course I'm having some issues w/ pop.c. I guess it's the fact that I'm
unfamiliar w/ the "mutt" way of doing things. One where can I add a
./configure option. (I am very unfamiliar w/ m4.) how do I add stuff to
init.h, and what format should it be in. And in pop.c where does the pop
mesgs actually get "stored" in the mailbox? Is it via the
mx_commit_message() function near line 280?

--timball

-- 
Send mail with subject "send pgp key" for public key.
pub  1024R/CFF85605 1999-06-10 Timothy L. Ball <[EMAIL PROTECTED]>
 Key fingerprint = 8A 8E 64 D6 21 C0 90 29  9F D6 1E DC F8 18 CB CD



Re: Mutt/Procmail/Fetchmail question NEW colour question

2000-06-08 Thread Marius Gedminas

On Wed, Jun 07, 2000 at 09:48:50AM -0700, Timothy Grant wrote:
> I'm not quite sure I know how to get the colours working. I have run it
> in both a Eterm and an rxvt session and there is no colour. Do I have to
> do something to turn colour on, or do I need to do something to my
> terminal settings to make it work (ls --color works in both sessions, so
> I know my terminals both are configured for colour support)

Set $TERM to `xterm-color' and you should get colour.

Marius Gedminas
-- 
Your eyes are weary from staring at the CRT.  You feel sleepy.  Notice how
restful it is to watch the cursor blink.  Close your eyes.  The opinions
stated above are yours.  You cannot imagine why you ever felt otherwise.



Re: Colors, a wish ...

2000-06-08 Thread Marius Gedminas

On Thu, Jun 08, 2000 at 10:01:42AM +0200, Gerhard den Hollander wrote:
> now what would be nce if I could do something like
> (pseudosyntax)
> 
> color index from_the_boss yellow default
> color index priority=urgent  bright default
>
> which means that normal messages are default
> message that are tagged urgent are set in the bright default color
> messages from the boss in yellow
> and urgnet messages fom the boss in bright yellow 

You can already do that:

color index yellow default '~f [EMAIL PROTECTED]'
color brightdefault default '~h "^x-priority: urgent"'# or whatever
color brightyellow default '~f boss ~h "^x-priority: urgent"' # both

Check sections 3.7 and 4.2 for complete documentation.

IIRC if multiple patterns match the last one is used.  Unfortunately
the manual is silent about this.

Marius Gedminas
-- 
"Cogito ergo I'm right and you're wrong."
-- Blair Houghton



Re: How do I make pop support do polling?

2000-06-08 Thread David T-G

Tim --

...and then Timothy Ball said...
% For reasons I can not understand (it's a job thing) My mail servers can
% neither do imap or nfs mount /var/mail. My only choice is to do pop3. How 

How on earth is anyone getting mail now?  Can you mimic that?

I won't go into wondering why you can't fake it with fetchmail or the
like; I like Mikko's suggetsion about upgrading your higher-ups :-)

If you have access to the server, could you just read in an xterm from
there?  Or perhaps you could grab your mail out of /var/mail and
"deliver" it to $HOME somewhere...


:-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.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


Re: Getting auto_view to work with lynx

2000-06-08 Thread cgreen

On Thu, Jun 08, 2000 at 05:16:46PM +0200, Thomas Roessler wrote:
> On 2000-06-08 09:54:49 -0500, [EMAIL PROTECTED] wrote:
> 
> >> text/html; /usr/bin/lynx -dump -force_html
> >> %s;nametemplate=%s.html
> 
> >> lynx really is in /usr/bin/lnyx, so what's missing?
> 
> The copiousoutput entry.
> 
> Try this instead:
> 
> text/html; lynx -force_html  %s; needsterminal ; nametemplate=%s.html
> text/html; lynx -underscore -force_html -dump %s; copiousoutput
> 
Absolutely right!  I put those lines in my .mailcap and now it works,
however I'm not clear why the line I had on the other system worked
there but not here.  Ho, hum, who cares - it works now.

Thanks!

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




Re: new option?

2000-06-08 Thread Bob Bell

On Thu, Jun 08, 2000 at 01:59:43PM -0500, David Champion <[EMAIL PROTECTED]> wrote:
> Unquoted backquotes turn all whitespace into plain spaces:
>   `ls a b c`  => a b c
> Quoted backquotes do not:
>   "`ls a b c`"=> a
> b
> c

...depending on the shell.  Moreover, quoted backspaces in my
implementation of sh and bash put each item from ls on a separate line,
even if they weren't before.  However, quotes don't have the same
effect is csh.

But this is a mutt mailing list, not a shell programming one... :)

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: new option?

2000-06-08 Thread David Champion

On 2000.06.08, in <[EMAIL PROTECTED]>,
"Lars Hecking" <[EMAIL PROTECTED]> wrote:
> 
>  In principle, yes, but it may even work without. Nevertheless,
>  echo -n is not portable.

Unquoted backquotes turn all whitespace into plain spaces:
`ls a b c`  => a b c
Quoted backquotes do not:
"`ls a b c`"=> a
b
c

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



Re: multilingual text

2000-06-08 Thread David DeSimone

Baurjan Ismagulov <[EMAIL PROTECTED]> wrote:
>
> can i create messages in two different languages using overlapping
> 8-bit charsets simultaneously?  i need, for example, mix koi8-r and
> iso-8859-9 in one message.

How about one message with two attachments, one attachment using koi8-r,
and the other using iso-8859-9?

I don't think Mutt can create any multipart type besides
multipart/mixed, though.. you might have wanted multipart/alternative?

-- 
David DeSimone   | "The doctrine of human equality reposes on this:
[EMAIL PROTECTED]   |  that there is no man really clever who has not
Hewlett-Packard  |  found that he is stupid." -- Gilbert K. Chesterson
Richardson IT|PGP: 5B 47 34 9F 3B 9A B0 0D  AB A6 15 F1 BB BE 8C 44



Re: How do I make pop support do polling?

2000-06-08 Thread Mikko Hänninen

Timothy Ball <[EMAIL PROTECTED]> wrote on Thu, 08 Jun 2000:
> For reasons I can not understand (it's a job thing) My mail servers can
> neither do imap or nfs mount /var/mail. My only choice is to do pop3. How 
> do I make pop poll the pop server? I looked through the docs and it seems 
> there is no timer functionality for the "fetch_mail" command. 

You can't.

If you can create crontab entries, you can create a cron job that runs
Mutt with some pushed keystrokes to execute the pop function.  However
you might run into problems with not having a tty for Mutt from the cron
job, but if not, then there's nothing else to stop this from working.

> (and no I can not use fetchmail, I have to have mutt do it. It sounds 
> unreasonable but that's the way the higher ups have decided to do things)

Please replace or upgrade your higher ups and try again. :-)


Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
A mind is a terrible thing to ... er ... h?



How do I make pop support do polling?

2000-06-08 Thread Timothy Ball

For reasons I can not understand (it's a job thing) My mail servers can
neither do imap or nfs mount /var/mail. My only choice is to do pop3. How 
do I make pop poll the pop server? I looked through the docs and it seems 
there is no timer functionality for the "fetch_mail" command. 

(and no I can not use fetchmail, I have to have mutt do it. It sounds 
unreasonable but that's the way the higher ups have decided to do things)

TIA,
timball

-- 
Send mail with subject "send pgp key" for public key.
pub  1024R/CFF85605 1999-06-10 Timothy L. Ball <[EMAIL PROTECTED]>
 Key fingerprint = 8A 8E 64 D6 21 C0 90 29  9F D6 1E DC F8 18 CB CD



Re: dir size in browser display?

2000-06-08 Thread Lars Hecking

jon rust writes:
> In the variable folder_format, %s is for size, but only works 
> on normal files, not directories. Is there a way to show total 
> directory size (similar to 'du -s') in the browser display?

 I don't think the overhead involved is worth it.




Re: new option?

2000-06-08 Thread Bob Bell

On Thu, Jun 08, 2000 at 11:50:10AM -0400, David T-G <[EMAIL PROTECTED]> wrote:
> % > might want to say "echo -- -a ..." there, in case echo(1) complains.
> % 
> %  echo "-a $f" should work regardless. or even echo " -a $f".
> 
> In all of this, though, shouldn't it be
> 
>   echo -n ...
> 
> followed by a final
> 
>   echo ""
> 
> to keep them all on one line?

Perhaps.  echo -n is not portable, though.  I originally quoted
the "-a $f" and then saw it worked without, too.  Basically, I just
jotted down something that worked on Tru64, and left a compatible
implementation up to the implementor :-)

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595

 PGP signature


dir size in browser display?

2000-06-08 Thread jon rust

In the variable folder_format, %s is for size, but only works 
on normal files, not directories. Is there a way to show total 
directory size (similar to 'du -s') in the browser display?

thanks,
jon



Re: new option?

2000-06-08 Thread David T-G

Lars --

...and then Lars Hecking said...
% 
% > In all of this, though, shouldn't it be
% > 
% >   echo -n ...
% 
%  In principle, yes, but it may even work without. Nevertheless,
%  echo -n is not portable.

Ah, yes; that damned SysV stuff :-)  In all of my must-be-portable shell
scripts, I have the standard "how do i not newline?" function and use
$ECHO instead of just good old echo...  *sigh*

Still, it could even be written *right* in one line ;-)


:-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.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


Re: Resending msg from outbox

2000-06-08 Thread Thomas Roessler

On 2000-06-08 16:00:11 +0100, John Poltorak wrote:

> X-Mailer: Mutt 0.94.15i

> How do I resend a msg from my outbox?

Upgrade. :-)

> Sometimes msgs get lost and I'd like to send a duplicate.
> Is there a simple way of doing this?

With your version of mutt, about all you can do is to
bounce the message to some other recipients, without
editing anything about it.  This may quite well be what
you want to do.

With the current versions, you can use the resend-message
function to - essentially - recall messages from the
current folder, just like you do it with the postponed
folder now.

-- 
http://www.guug.de/~roessler/



Re: Resending msg from outbox

2000-06-08 Thread Mikko Hänninen

John Poltorak <[EMAIL PROTECTED]> wrote on Thu, 08 Jun 2000:
> How do I resend a msg from my outbox?
> Sometimes msgs get lost and I'd like to send a duplicate.
> Is there a simple way of doing this?

Yes.  Use the b(ounce) command.

Alternatively you can do resend-message (esc-e) but that's only in
Mutt 1.2...  (Or to be precise, you could do a resend in earlier
versions too, but it was different and I forget how it worked.)


Regards,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
"I used to be indecisive, but now I'm not sure."



Re: new option?

2000-06-08 Thread Lars Hecking


> In all of this, though, shouldn't it be
> 
>   echo -n ...
> 
> followed by a final
> 
>   echo ""
> 
> to keep them all on one line?

 In principle, yes, but it may even work without. Nevertheless,
 echo -n is not portable.




Re: Getting auto_view to work with lynx

2000-06-08 Thread Thomas Roessler

On 2000-06-08 09:54:49 -0500, [EMAIL PROTECTED] wrote:

>> text/html; /usr/bin/lynx -dump -force_html
>> %s;nametemplate=%s.html

>> lynx really is in /usr/bin/lnyx, so what's missing?

The copiousoutput entry.

Try this instead:

text/html; lynx -force_html  %s; needsterminal ; nametemplate=%s.html
text/html; lynx -underscore -force_html -dump %s; copiousoutput


-- 
http://www.guug.de/~roessler/



Re: new option?

2000-06-08 Thread David T-G

Hi, folks --

...and then Lars Hecking said...
% 
% > > mutt -s 'the whole deal' [EMAIL PROTECTED] `for f in *.html;do echo -a $f;done`

I love the one-line method :-)


% > 
% > might want to say "echo -- -a ..." there, in case echo(1) complains.
% 
%  echo "-a $f" should work regardless. or even echo " -a $f".

In all of this, though, shouldn't it be

  echo -n ...

followed by a final

  echo ""

to keep them all on one line?


:-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.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


Re: Resending msg from outbox

2000-06-08 Thread Suresh Ramasubramanian

John Poltorak proclaimed on mutt-users that: 

>How do I resend a msg from my outbox?
>
>Sometimes msgs get lost and I'd like to send a duplicate.
>Is there a simple way of doing this?

escape - e to edit and resend the message.  b to bounce the message to
the guy again.

-- 
Suresh Ramasubramanian + [EMAIL PROTECTED]
Most people wouldn't know music if it came up and bit them on the ass.
-- Frank Zappa



Re: Resending msg from outbox

2000-06-08 Thread David T-G

John --

...and then John Poltorak said...
% How do I resend a msg from my outbox?
% 
% Sometimes msgs get lost and I'd like to send a duplicate.
% Is there a simple way of doing this?

I'd say that the simplest way is to select the message in the index
and then 'b'ounce it to the original recipient.  In 1.2 there is a 
new "resend-message" function, which was split out from "edit-message",
but I don't yet know how it works :-)


% 
% --
% John


:-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.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


Re: Getting auto_view to work with lynx

2000-06-08 Thread Gary Johnson

On Thu, Jun 08, 2000 at 09:46:16AM -0500, [EMAIL PROTECTED] wrote:
> I have lynx working on one system to view HTML OK but on this system
> it isn't working for some reason.
> 
> I have
> 
> auto_view text/html
> 
> in my muttrc file and I have a .mailcap file as follows:-
> 
> text/html; /usr/bin/lynx -dump -force_html %s;nametemplate=%s.html
> 
> lynx really is in /usr/bin/lnyx, so what's missing?
> 
> When I try and view HTML I just get the text/html is not supported
> message.

Perhaps the system Muttrc file or your personal .muttrc file on the
second system has redefined mailcap_path so that it doesn't include
${HOME}/.mailcap.

BTW, I think "-force_html" and "nametemplate=%s.html" are redundant.

-- 
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | RF Communications Product Generation Unit
 | Spokane, Washington, USA



Re: new option?

2000-06-08 Thread Lars Hecking


> > mutt -s 'the whole deal' [EMAIL PROTECTED] `for f in *.html;do echo -a $f;done`
> 
> might want to say "echo -- -a ..." there, in case echo(1) complains.

 echo "-a $f" should work regardless. or even echo " -a $f".




Resending msg from outbox

2000-06-08 Thread John Poltorak

How do I resend a msg from my outbox?

Sometimes msgs get lost and I'd like to send a duplicate.
Is there a simple way of doing this?

--
John




Re: Getting auto_view to work with lynx

2000-06-08 Thread cgreen

On Thu, Jun 08, 2000 at 09:46:16AM -0500, [EMAIL PROTECTED] wrote:
> I have lynx working on one system to view HTML OK but on this system
> it isn't working for some reason.
> 
> I have
> 
> auto_view text/html
> 
> in my muttrc file and I have a .mailcap file as follows:-
> 
> text/html; /usr/bin/lynx -dump -force_html %s;nametemplate=%s.html
> 
> lynx really is in /usr/bin/lnyx, so what's missing?
> 
> When I try and view HTML I just get the text/html is not supported
> message.
> 

To provide a bit more detail, when I try and open the HTML message I
get:-

[-- text/html is unsupported (use 'v' to view this part) --]

and in the status line it says:-

mailcap entry for type text/html not found

but there is a 'text/html' in my .mailcap file, so what does this
actually indicate is wrong?

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




Getting auto_view to work with lynx

2000-06-08 Thread cgreen

I have lynx working on one system to view HTML OK but on this system
it isn't working for some reason.

I have

auto_view text/html

in my muttrc file and I have a .mailcap file as follows:-

text/html; /usr/bin/lynx -dump -force_html %s;nametemplate=%s.html

lynx really is in /usr/bin/lnyx, so what's missing?

When I try and view HTML I just get the text/html is not supported
message.

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




Re: new option?

2000-06-08 Thread clemensF

> Bob Bell:

> mutt -s 'the whole deal' [EMAIL PROTECTED] `for f in *.html;do echo -a $f;done`

might want to say "echo -- -a ..." there, in case echo(1) complains.

clemens



Re: PDF viewing question

2000-06-08 Thread Byrial Jensen

On Thu, Jun 08, 2000 at 07:49:04 -0400, Randall Hopper wrote:
> I want to autoview PDFs, but also be able to kick off acroread.
> 
> Autoview works, but I can't figure out how to kick off acroread in mutt.
> 
> In my .mailcap I have:
> 
>application/pdf; pdf2txt %s; needsterminal; copiousoutput
>application/pdf; acroread %s
> 
> The first should be used for autoview.  And the second should be used for
> view-attach, right?  However view-attach also uses pdf2txt

The first usable mailcap entry is always used. Try to reverse the
two lines.

-- 
Byrial
http://home.worldonline.dk/~byrial/



Re: PDF viewing question

2000-06-08 Thread Roland Rosenfeld

On Thu, 08 Jun 2000, Randall Hopper wrote:

> I want to autoview PDFs, but also be able to kick off acroread.
> Autoview works, but I can't figure out how to kick off acroread in mutt.

>application/pdf; pdf2txt %s; needsterminal; copiousoutput
>application/pdf; acroread %s
> 
> The first should be used for autoview.  And the second should be
> used for view-attach, right?  However view-attach also uses pdf2txt
> 
> Anyone see what I'm doing wrong?  I thought this worked at some point.

Try reversing the order of these two lines.  The mailcap is searched
top down and the first match is used.  If you change the order of
these two lines, view-attach will find acroread first while auto-view
ignores acroread and uses pdf2txt because it only uses copiousoutput
lines.

BTW: does it make sense to combine "needsterminal" and "copiousoutput"
in one mailcap entry?  As far as I understand they are quite contrary,
because "needsterminal" needs a terminal with user input while
"copiousoutput" pipes the output to some kind of pipe.

So I would change the above entries to something like this:

application/pdf; acroread %s; test=test -n "$DISPLAY"
application/pdf; pdf2txt %s; copiousoutput

Tscho

Roland

-- 
 * [EMAIL PROTECTED] * http://www.spinnaker.de/ *



Re: new option?

2000-06-08 Thread Bob Bell

On Thu, Jun 08, 2000 at 12:24:21AM -0500, Carlos P . <[EMAIL PROTECTED]> wrote:
> could i suggest a new option, say -A, that
> would allow one to start mutt attaching the rest
> of the command line arguments, like this:
> 
>   mutt -s 'the whole deal' [EMAIL PROTECTED] -A *.pdf
> 
> instead of having to enumerate the files:
> 
>   mutt -s 'the whole deal' [EMAIL PROTECTED] -a f1.pdf -a f2.pdf ...etc.
> 
> it also helps in scripts when you want to run things
> unattended.

Why not use the following, especially if you are already in a
script?

mutt -s 'the whole deal' [EMAIL PROTECTED] `for f in *.html;do echo -a $f;done`

Possibly use a variable in place of *.html .

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: More newbie question SMTP

2000-06-08 Thread Suresh Ramasubramanian

clemensF proclaimed on mutt-users that: 

>> Suresh Ramasubramanian:
>
>> user foo with password bar mda "sed -e '1s/^\t/Received: /' | formail 
>|/usr/bin/procmail -d "
>
>or:
>
>mda "/usr/local/bin/procmail -t -f-"

ESR recommends that extra received: line in the fetchmail faq, fwiw.  I
agree with him about this - any handoff / mail delivery (even an internal
relay) must have its own received: header.

http://www.tuxedo.org/~esr/fetchmail/Fetchmail-FAQ.html

-- 
Suresh Ramasubramanian + [EMAIL PROTECTED]
Most people wouldn't know music if it came up and bit them on the ass.
-- Frank Zappa



Re: More newbie question SMTP

2000-06-08 Thread clemensF

> Suresh Ramasubramanian:

> user foo with password bar mda "sed -e '1s/^\t/Received: /' | formail 
>|/usr/bin/procmail -d "

or:

mda "/usr/local/bin/procmail -t -f-"

clemens



Re: quick charset toggle

2000-06-08 Thread Byrial Jensen

On Thu, Jun 08, 2000 at 12:15:55 +0300, Baurjan Ismagulov wrote:
> hi,
> 
> i have to change my charset frequently. currently, i'm typing ":set
> c=" (occasionally, "charset" is the first keyword
> completed). but after that i have to type "iso-8859-9" and "koi8-r"
> manually each time, which is quite annoying. how can i speed up
> this process?

You could use macros to change charset. One for each charset:

macro index TI 'set charset=iso-8859-9' 'Change to iso-8859-9'
macro index TK 'set charset=koi8-r' 'Change to koi8-r'

It is also possible to make a real toggle. This example uses an
external script:

macro index T  'set charset=`charset-toggle`' 'Toggle charset'

where "charset-toggle" contains something like:

#!/bin/sh

# Find the current charset:
if test -f charset; then
  charset=`cat charset`
else
  charset=koi8-r
fi

# Toggle to the other charset:
if test $charset = koi8-r; then
  charset=iso-8859-9
else
  charset=koi8-r
fi

# save and output the new value:
echo $charset > charset
echo $charset

> btw, i still can't mix two languages in the single message. mime gurus?

If you use UTF-8, you can mix any languages.

-- 
Byrial
http://home.worldonline.dk/~byrial/



PDF viewing question

2000-06-08 Thread Randall Hopper

I want to autoview PDFs, but also be able to kick off acroread.

Autoview works, but I can't figure out how to kick off acroread in mutt.

In my .mailcap I have:

   application/pdf; pdf2txt %s; needsterminal; copiousoutput
   application/pdf; acroread %s

The first should be used for autoview.  And the second should be used for
view-attach, right?  However view-attach also uses pdf2txt

Anyone see what I'm doing wrong?  I thought this worked at some point.

Thanks,

Randall

-- 
Randall Hopper
[EMAIL PROTECTED]



Re: new option?

2000-06-08 Thread Lars Hecking

Carlos P . writes:
> could i suggest a new option, say -A, that
> would allow one to start mutt attaching the rest
> of the command line arguments, like this:
> 
>   mutt -s 'the whole deal' [EMAIL PROTECTED] -A *.pdf
> 
> instead of having to enumerate the files:
> 
>   mutt -s 'the whole deal' [EMAIL PROTECTED] -a f1.pdf -a f2.pdf ...etc.
> 
> it also helps in scripts when you want to run things
> unattended.

 Especially in a shell script, this would be a trivial one-liner.




Re: new option?

2000-06-08 Thread Frank Derichsweiler

On Thu, Jun 08, 2000 at 12:24:21AM -0500, Carlos P . wrote:
> 
>   mutt -s 'the whole deal' [EMAIL PROTECTED] -A *.pdf
> 
> instead of having to enumerate the files:
> 
>   mutt -s 'the whole deal' [EMAIL PROTECTED] -a f1.pdf -a f2.pdf ...etc.
> 
> it also helps in scripts when you want to run things
> unattended.
> 
In that case I would suggest to write a small script, which collects
the filenames (via find or via shell wildcard substitution) and then
generates the -a aName options by using a for loop.

HTH
Frank




Re: From_ line

2000-06-08 Thread Thomas Roessler

On 2000-06-06 22:14:20 +0300, Baurjan Ismagulov wrote:

> my problem is NOT "how to show/hide specific headers",
> but rather "how to retain the original From_ line". for
> instance: when the message arrives to the mail server
> (sendmail 8.10.1 and mail.local from solaris 7), the
> From_ line in the mailbox (/var/mail/ibr) looks like <
> From [EMAIL PROTECTED] Tue
> Jun 6 10:33:24 2000

POP servers generally don't pass From_ lines along with
the message.

-- 
http://www.guug.de/~roessler/



new option?

2000-06-08 Thread Carlos P .

could i suggest a new option, say -A, that
would allow one to start mutt attaching the rest
of the command line arguments, like this:

mutt -s 'the whole deal' [EMAIL PROTECTED] -A *.pdf

instead of having to enumerate the files:

mutt -s 'the whole deal' [EMAIL PROTECTED] -a f1.pdf -a f2.pdf ...etc.

it also helps in scripts when you want to run things
unattended.

thanks,

++ carlos



Re: quick charset toggle

2000-06-08 Thread Martin Schröder

On 2000-06-08 12:15:55 +0300, Baurjan Ismagulov wrote:
> btw, i still can't mix two languages in the single message. mime gurus?

Not in the same message part. You must use utf-8/unicode instead.

Best regards
Martin
-- 
  Martin Schröder, [EMAIL PROTECTED]
ArtCom GmbH, Grazer Straße 8, D-28359 Bremen
   Voice +49 421 20419-44 / Fax +49 421 20419-10

 PGP signature


quick charset toggle

2000-06-08 Thread Baurjan Ismagulov

hi,

i have to change my charset frequently. currently, i'm typing ":set c=" 
(occasionally, "charset" is the first keyword completed). but after that i have to 
type "iso-8859-9" and "koi8-r" manually each time, which is quite annoying. how can i 
speed up this process?

btw, i still can't mix two languages in the single message. mime gurus?

thanks in advance,
baurjan.



Re: From_ line

2000-06-08 Thread Baurjan Ismagulov

hi,

thank you all for the responses.

to summarize:
the From_ line is used in mbox folder format to specify the beginning of the [next] 
message. makes sense -- mutt shows my message split into pieces if it contains lines 
starting with "From " in its body. seems that there's nothing specifying the format of 
the line itself, although sendmail does write the envelope ("MAIL FROM:") address 
(source: cf/README from sendmail-8.10.1) and the time when the message was transferred 
to mda (just guess, it is a couple of seconds later than the time stated in the 
"Received:" field).

why did i want to preserve it?
my "Received:" fields are normally turned off, and i wanted to see the time the 
message arrived to my server without toggling headers view.
besides, i wanted to see whether the envelope-from address would make spam tracking 
easier. Anton, how did you enable envelope-from in the "Received:" field? via 
confRECEIVED_HEADER? or could you please send your sendmail.cf via private mail?

thanks again,
baurjan.



Re: In-line color in body but not header

2000-06-08 Thread Michael Tatge

Jeff Krueger muttered:
> color header   cyan   default  "[-a-z_0-9.+]+@[-a-z_0-9.]+"
> color body   cyan   default  "[-a-z_0-9.+]+@[-a-z_0-9.]+"
> 
> The intent is to color just e-mail addresses differently from the
> rest of the line.  It works fine in the body, even in quoted text -
> the address is in cyan and the rest of the line is whatever color it
> is supposed to be.
> 
> In the header, however, this colorizes the entire line cyan.  Am I defining
> this improperly somehow, or is in-line coloring not yet available?

My guess is that the object "header" always means the whole line.
Unfortunatly I can't prove this from the code since I don't know
enougth C :-(
However, in your original posting
color header green default Tue
matches the whole Date: line. (The Date-Header if you want to)

Date: Tue, 06 Jun 2000 18:16:32 -0700

You could call this a feature since normally you'll want to highlight a
whole header line but I tend to call it a bug :)
On the other hand I would think that the same code is used for
hdr_order, ignore etc. and here it's very nice that only need to
specify Date: and not ^Date:.+$

HTH,

Michael
-- 
PGP-fingerprint: DECA E9D2 EBDD 0FE0 0A65  40FA 5967 ACA1 0B57 7C13



Re: mhonarc as an alternative to urlview

2000-06-08 Thread Andre Wobst

Hi,

On 07.06.00, Gary Johnson wrote:
> I've used urlview to help me view URLs embedded in email, and it works
> fine, but when a message contains lots of URLs, it can be difficult to
> choose the right one since urlview provides no message context.

After trying urlview, I was really unhappy with this solution too.
I've worked out another solution, which I'm running already for a long
time now. The program I use is mhonarc. See
http://www.oac.uci.edu/indiv/ehood/mhonarc.html for details. I've
written a small script mutt2mhonarc, which I start as a macro if I want
to read the mail via the webbrowser. mhonarc converts the urls to
clickable ones ... that's very convenient. Because I've plugged
mutt as the mailer into netscape (using muttzilla, see
http://www3.bc.sympatico.ca/brian_winters/mutt/ for details), I can
also click on email adresses within the mails using this tool. I've
defined

macro index"|mutt2mhonarc\n" "show message via mhonarc in netscape"
macro pager"|mutt2mhonarc\n" "show message via mhonarc in netscape"

in the global Muttrc and mutt2mhonarc looks like this:

#!/bin/ksh
#
ps=/usr/bin/ps
awk=/usr/bin/awk
grep=/usr/bin/grep
at=/usr/bin/at
rm=/usr/bin/rm
mkdir=/usr/bin/mkdir
sleep=/usr/bin/sleep
netscape="/server/usr/bin/netscape -standalone"
mhonarc=/server/usr/bin/mhonarc
#
$mkdir /tmp/m2m-dir$$ && cd /tmp/m2m-dir$$ && $mhonarc -single > m2m$$ || exit 1
cd $HOME || exit 1
if [[  -z "`$ps -e |$grep netscape|$grep -v grep`" ]]
then
 nohup $netscape "file:/tmp/m2m-dir$$/m2m$$" >/dev/null 2>&1 &
else
 $netscape -remote openFile\(/tmp/m2m-dir$$/m2m$$,new-window\)
fi
$at now + 1 minutes > /dev/null 2>&1 << END
$rm -fr /tmp/m2m-dir$$
END
if [[ $? != 0 ]]
then
 echo "Could not schedule delete of /tmp/m2m$$"
 exit 1
fi

As you can see, I'm checking if netscape is already running. And I'm
removing the files created from the mails (attachments are working
fine too) a little later then starting the stuff (otherwise the files
might be removed before netscape could read them. The scripts have to
be adapted to other environments (we have here a workstation cluster
running AIX 4.3.3), but it shouldn't be a difficult task.

Well, that's the solution of choice for me regarding urls in mails.

André

-- 
by  _ _  _   [EMAIL PROTECTED]
   / \ \/ )  http://www.physik.uni-augsburg.de/~wobsta/
  / _ \ \/\/ /   "In a world without walls and fences
 (_/ \_)_/\_/who needs windows and gates ...?!?"



Colors, a wish ...

2000-06-08 Thread Gerhard den Hollander

What woulkd be handy 9for me at least)
is the ability to modify colors with patterns ..

e.g. in my pager I have various colors to discern various senders.
now what would be nce if I could do something like
(pseudosyntax)

color index from_the_boss yellow default
color index priority=urgent  bright default

which means that normal messages are default
message that are tagged urgent are set in the bright default color
messages from the boss in yellow
and urgnet messages fom the boss in bright yellow 

Gerhard,  <@jasongeo.com>   == The Acoustic Motorbiker ==   
-- 
   __O  Soon I discovered that this rock thing was true
 =`\<,  Jerry Lee Lewis was the devil
(=)/(=) Jesus was an architect previous to his career as a prophet
All of a sudden, I found myself in love with the world
So there was only one thing that I could do
To ding a ding dang my dang a long ling long