Re: [newbie] Hostname, localhost.localdomain

2000-04-26 Thread Michael Hong

Glenn Bajana wrote:

The more I test the more confused I get. I think it would be simpler to
get a schematic idea of what _should_ be appearing. Please read on.

| Received: from localhost.localdomain [12.79.18.168]
([EMAIL PROTECTED]); Sun, 23 Apr 2000
17:18:48 -0400 1. ^^ 2.
...

If your outgoing mail is still bouncing and you've made lots of changes
to sendmail.cf maybe you would be better off starting over from a known
state with the original sendmail.cf.  I found the "sendmail address
rewriting howto" helpful.  There's a copy here:
http://www.linuxdoc.org/HOWTO/mini/Sendmail-Address-Rewrite.html 

Or if you've had enough of m4 for awhile you could try using
install-sendmail.  It's a perl script that will setup sendmail.cf and the
tables in /etc/mail for you.  Just answer yes to masquerading, smarthost,
and aliasing, and it should set it all up.

Hope this helps,


Michael



Re: New version 1.1.12

2000-04-26 Thread Thomas Roessler

On 2000-04-25 21:10:43 +0100, Lars Hecking wrote:

 I see there's a new version of Mutt on
 www.freshmeat.net ! Version: 1.1.12

 Clearly marked as development version. Nothing to get
 excited about.

Precisely - thoguh the reason I didn't announce it to
mutt-users was just that changes are sufficiently minimal
so it's not worth the update for most users.  I'd really
appreciate if the person who submits the updates to
freshmeat could refine him- or herself to the mutt
versions which are announced to (at least) mutt-users.

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



color coding index according to string matching

2000-04-26 Thread Eric Smith

Has the following feature been dreamed up / implemented yet?

I currently color code the messages in my index by the normal attributes
of read tagged deleted list etc.  What i would reallly like to do is say
color code by regex matching in the Subject:

like say: 
/urgent/ red
/log/  yellow

.. the kind of power that procamil has

-- 
Eric Smith
[EMAIL PROTECTED]



biff for mh style maildir

2000-04-26 Thread Christian v. Mueffling

Hello!

I'm looking for a biff like xbiff, that is able to monitor mh-style
mailboxes, not only mbox format. It should be runnable on Solaris
i386.

Is something like that around?


tnx,
  chris

 PGP signature


Re: biff for mh style maildir

2000-04-26 Thread Ralf Hildebrandt

Am 26.04.2000 um 12:27:55 +0200 schrieb Christian v. Mueffling folgendes:
 Hello!
 
 I'm looking for a biff like xbiff, that is able to monitor mh-style
 mailboxes, not only mbox format. It should be runnable on Solaris
 i386.
 
 Is something like that around?

Try Brandon Long's GBUFFY



Re: SEGV on exit from Mutt 1.0.1i

2000-04-26 Thread robin

Hmm, well I've managed to make it "work" with the following patch:


--- mbox.c.orig Wed Apr 26 15:34:13 2000
+++ mbox.c  Wed Apr 26 15:33:30 2000
@@ -679,7 +679,14 @@
   /* need to open the file for writing in such a way that it does not truncate
* the file, so use read-write mode.
*/
-  if ((ctx-fp = freopen (ctx-path, "r+", ctx-fp)) == NULL)
+  if (fclose (ctx-fp) != 0)
+  {
+mx_fastclose_mailbox (ctx);
+mutt_error _("Fatal error!  Could not close mailbox!");
+return (-1);
+  }
+
+  if ((ctx-fp = fopen (ctx-path, "r+")) == NULL)
   {
 mx_fastclose_mailbox (ctx);
 mutt_error _("Fatal error!  Could not reopen mailbox!");


which doesn't really make sense, I know.
Could this be a bug in glibc 2.1.3?

 .robin.



Re: Bug in mutt 1.0.1i: ^C can freeze login session

2000-04-26 Thread Michael Tatge

On Tue, Apr 25, 2000 at 02:30:25PM -0700, David Kalins wrote:
 Version:  1.0.1i
 Menu: Compose
 Command(s):   f  and  c
 
 When I have used the f command (to add an Fcc: value) or
 the c command (to add a Cc: value) and when I use Cnt-C
 to cancel before adding the Fcc: or Cc: value, mutt aborts
 and returns to the Unix shell prompt, but the session is
 thereupon frozen and no longer responds to anything done
 on the keyboard.

I just tried to reproduce this with mutt 1.1.11i under Linux. ^C leads
to the 'Exit Mutt? ([y]/n)' prompt, it doesn't freeze. The only odd
think that occurs is that when pressing 'y' to exit the string 'yes'
gets printed on a shell prompt, without any disturbing effect.
 
 I found it really easy to completely freeze my login session by
 using ^C to cancel out of adding an Fcc: or a Cc: value using the
 f or c commands while composing a message.  I know now the FAQ suggests
 using ^G, but ^C was the obvious choice to me as a Unix person.  I
 could imagine alot of people might get screwed up this way.

Well, in fact under Unix there is no standard for keyboard shortcuts.
Think of how programs use ALT vs. CTRL. With mutt it's kind of logical
to quit after ^C because that's what I would expect to happen. Many
known programs use ^G to escape out of a function, so I'm quite happy
with it.

Michael
-- 
Equal bytes for women.

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




Re: view URLs via shell account

2000-04-26 Thread Joe Rice

Hi,
  Could someone tell me why mutt strips an URL from the body of
my out-going email?  It only happens when the line starts with
the  URL.

Thanks in advance,
joe




Re: view URLs via shell account

2000-04-26 Thread Mikko Hänninen

Hello,

Joe Rice [EMAIL PROTECTED] wrote on Wed, 26 Apr 2000:
   Could someone tell me why mutt strips an URL from the body of
 my out-going email?  It only happens when the line starts with
 the  URL.

It's very unlikely that Mutt does this, given that it doesn't really
touch the message body text in an email that it gets from an editor,
except for the possible encoding changes.  I've also never heard of
anyone else report something like this.

Can you give us more details please?  What actions do you do exactly?
Can you give us an example forwarded email perhaps with the URL
missing?  What other programs are used to deliver the email?  Can you
track down the message at the various stages and see at which point the
URL disappears?

For Mutt debugging, you can set the $sendmail variable to a script that
looks something like this:

#!/bin/sh
echo "$*"  /tmp/mutt.msg.$$
cat  /tmp/mutt.msg.$$


... and then you just need to look at the /tmp/mutt.msg.* files to see
exactly what kind of message Mutt is sending out and with which command
line arguments.  If the URL is intact there, then it's not Mutt's fault
for sure.


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 /
This sentence does, in fact, not have the property it claims not to have.



Re: color coding Reg expression question

2000-04-26 Thread Francisco D. Borges

» Eric Smith wrote:

 Has the following feature been dreamed up / implemented yet?
 
 I currently color code the messages in my index by the normal attributes
 of read tagged deleted list etc.  What i would reallly like to do is say
 color code by regex matching in the Subject:
 
 like say: 
 /urgent/ red
 /log/  yellow

Try this  :^) it does the trick for me:
color index  redblack   "~s urgent"  # Msg is urgent

From the mutt manual:
  ~s SUBJECT  messages having SUBJECT in the ``Subject'' field.


 and if somebody else know a little more about regular expressions could please
 tell me why;

fcc-save-hook "~h ^Reply-To.*postmaster" +outros/listas

 don't work.


cheers,
-- 
   Francisco.
   São Paulo, Brasil.
 __o
`\,
 _(*)/(*)_



mutt and Courier IMAP

2000-04-26 Thread Chris Green

I have mutt working reasonably well with Courier IMAP, mostly thanks
to a lot of help from Sam the writer of Couier IMAP.

The two basic things you need to know to get it all working sensibly
are:-

1 - Courier IMAP puts all sub-folders *in* the INBOX folder, thus if I
have told Courier IMAP that my INBOX is $HOME/Mail/inbox (inbox
being a maildir) then all new maildir folders and mailboxes that
Courier IMAP creates are created hierarchically in inbox and
below.  In addition Courier IMAP identifies its own folders by
creating them as hidden directories with a '.' prefix though of
course they appear without this '.' to a remote IMAP client.

A local mutt client can't see thse maildirs of course though it can
acess them if you know their names and enter the full name with the
'.' prefix.

2 - To create new folders and mailbooxes remotely using mutt the he
syntax when you issue an 'N' command (when saving a message for
example) is {x-1.net}INBOX.folder.subfolder.  Since mutt prompts
with {x-1.net}/ you have to delete the / first, but I'm pretty
happy that it works at all.

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



Re: folder and you have mail

2000-04-26 Thread Martin Keseg - Sun Slovakia - SE

Rishi Maker ([EMAIL PROTECTED]) wrote :

 I use procmail to filter mails from my mailing lists into folders in my home.
 Is there any ways of launching mutt and telling me in which mailbox a new mail has 
arrived.
 thanx in advance
 

3.11 Defining mailboxes which receive mail

Usage: mailboxes [!]filename [ filename ... ]

  This command specifies folders which can receive mail and which will
  be checked for new messages.  By default, the main menu status bar
  displays how many of these folders have new messages.

  When changing folders, pressing space will cycle through folders with
  new mail.

  Pressing TAB in the directory browser will bring up a menu showing the
  files specified by the mailboxes command, and indicate which contain
  new messages.  Mutt will automatically enter this mode when invoked
  from the command line with the -y option.

  Note: new mail is detected by comparing the last modification time to
  the last access time.  Utilities like biff or frm or any other program
  which accesses the mailbox might cause Mutt to never detect new mail
  for that mailbox if they do not properly reset the access time.
  Backup tools are another common reason for updated access times.

  Note: the filenames in the mailboxes command are resolved when the
  command is executed, so if these names contain ``shortcut characters''
  (such as ``='' and ``!''), any variable definition that affect these
  characters (like ``$folder'' and ``$spool'') should be executed before
  the mailboxes command.


from manual.txt mutt version 1.1.12
-- 
   Keso
  don't worry about glory



Question on external program

2000-04-26 Thread Sebastian Helms

Hi,

I have mutt set up to filter the current message to a perl script:

macro index \cT "pipe-messagemailhops\n" "Traces mail hops"

mailhops is the script by Marius Gedminas / Roland Rosenfeld to
print out all received: headers. It is in the path.

But when pressing ctrl-T the screen flickers and that's it. Urlview
does work:

macro index \Cb "|urlview\n" "Extract a URL, and queue for later download"

I tried "|mailhops\n" but it has the same symptoms.

Can anyone tell me what to do here ? 

Oh, and saving the Message to a separate folder and piping it to
mailhops by hand does work fine.

Regards,

Sebastian

-- 
"No worries." - Rincewind

Sebastian Helms   -  mailto:[EMAIL PROTECTED] (PGP available)



Re: color coding Reg expression question [and mixing with

2000-04-26 Thread Eric Smith

flags]
Reply-To: 
In-Reply-To: [EMAIL PROTECTED]; from [EMAIL PROTECTED] on 
Wed, Apr 26, 2000 at 04:51:25PM -0300 
According to Francisco D. Borges on Wed, Apr 26, 2000 at 04:51:25PM -0300:
| » Eric Smith wrote:
| 
|  Has the following feature been dreamed up / implemented yet?
|  
|  I currently color code the messages in my index by the normal attributes
|  of read tagged deleted list etc.  What i would reallly like to do is say
|  color code by regex matching in the Subject:
|  
|  like say: 
|  /urgent/ red
|  /log/  yellow
| 
| Try this  :^) it does the trick for me:
| color indexredblack   "~s urgent"  # Msg is urgent
|
thats nice 

aside:
- silly example we are using, as we all know that any message
with /urgent/i in the Subject should be plonked ;)

Now anyone know if one may mix the above example with flags
so that:
color index   brightredblack   "~s urgent" 
becomes
color index  redblack  ~D 
but the latter must only refer to meeages matching"~s urgent"

So you may get the meaning from the color and then the status flag from
the toming of that color.
-- 
Eric Smith
[EMAIL PROTECTED]



Re: Question on external program

2000-04-26 Thread David T-G

Sebastian --

...and then Sebastian Helms said...
% 
% I have mutt set up to filter the current message to a perl script:
% 
% macro index \cT "pipe-messagemailhops\n" "Traces mail hops"
% 
% But when pressing ctrl-T the screen flickers and that's it. Urlview
% does work:

My guess is that mailhops runs happily and then exits and mutt comes
back and repaints the index.  You probably need to either put a wait
command at the end of the script (to keep the current behavior of any
other subprocesses) or turn on $wait_key in your .muttrc file.


:-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: color coding Reg expression question [and mixing with

2000-04-26 Thread David T-G

Eric --

...and then Eric Smith said...
% According to Francisco D. Borges on Wed, Apr 26, 2000 at 04:51:25PM -0300:
% | » Eric Smith wrote:
% | 
% |  like say: 
% |  /urgent/ red
% |  /log/  yellow
% | 
% | Try this  :^) it does the trick for me:
% | color index  redblack   "~s urgent"  # Msg is urgent
% |
% 
% aside:
% - silly example we are using, as we all know that any message
% with /urgent/i in the Subject should be plonked ;)

*grin*


% 
% Now anyone know if one may mix the above example with flags
% so that:
% color index   brightredblack   "~s urgent" 
% becomes
% color index  redblack  ~D 
% but the latter must only refer to meeages matching"~s urgent"

I'm a little confused...  So you mean that urgent but deleted messages
are red and other urgent messages are brightred?  If so, how about
something like

  color index brightred black "~s urgent"
  color index red black "~D ~s urgent"

for your needs?


% 
% So you may get the meaning from the color and then the status flag from
% the toming of that color.

Does "toming" mean brightness?  Sorry :-)


% -- 
% Eric Smith
% [EMAIL PROTECTED]


:-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: color coding Reg expression question

2000-04-26 Thread Mikko Hänninen

Francisco D. Borges [EMAIL PROTECTED] wrote on Wed, 26 Apr 2000:
  and if somebody else know a little more about regular expressions could please
  tell me why;
 
 fcc-save-hook "~h ^Reply-To.*postmaster" +outros/listas
 
  don't work.

Without seeing the headers of the message it doesn't match, I'm guessing
here: Because you included upper case letters (the R and T in Reply-To)
in the regular expression, Mutt will be doing a case-sensitive match. So
the above will *not* match:

reply-to: postmaster@wherever
REPLY-TO: postmaster@wherever
Reply-To: Postmaster@wherever
Reply-To: POSTMASTER@wherever

But it will match:

Reply-To: postmaster@wherever

You probably want to do a case-insensitive match, which you can get with
"~h ^reply-to.*postmaster".


I hope that 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 /
When all else fails, read the instructions.



Command Line Options

2000-04-26 Thread CN Liu

Hi!

I am using Cyrus IMAP server and sendmail in Linux. I am looking for a
mail client which will be started by CGI (which might be a very small
shell script). When this CGI is started by the www server, it will
collect the text from the html form and send it as a mail message
through this mail client like this:

mutt -s $SUBJECT -c $CC [EMAIL PROTECTED]  $MESSAGEBYDY

or

sendmail -t -oi -f $THEBROWSER $MESSAGE

My problems are:

(1) Mutt does not provide command line option to specify/override
"FROM:".

(2) Sendmail is not a good idea, either. When $MESSAGE contains
multi-byte characters - either only part of the message body or a
complete messed up message body, is received.

(3) The receipient gets unreadable Subject like:
Subject: Fwd: Fw: XXXYXVXXXK,EQXVXCXX.
most of the time when the origional Subject: contains multi-byte
characters.

Do I have any alternatives for mail client?
How do I fix the messed up Subject: problem?

Thanks!

-- 
CN



drafting mutt filtering faq entry

2000-04-26 Thread David T-G

Hi, folks --

I'm [finally!] drafting up a mutt FAQ entry on filtering incoming email
to answer all of those "how do I get mutt to move my mail for me?"
questions.  So far, I have found mention of

  procmail
  maildrop
  mailfilter
  sieve
  exim

though I don't yet have (because I haven't yet looked) a URL for exim
(and I know it's an MTA) and also of elm's filter (though I know it can
lose mail and such).

I'm trying to learn more about what an IMAP-only user would do; it seems
that none of these will work without shell access on the IMAP server, so
we're back to mutt doing the filtering.

Now, is mbox-hook what I want?  The typical user is going to have all of
his email dumped right into $MAIL and then want mutt to move Linux stuff
here and mutt stuff there and cron jobs elsewhere, and I don't know that
mbox-hook gives me that.  Maybe save-hook instead?


TIA for any input you can provide, particularly for the last case.  Did
anyone ever write that IMAP filtering tool mentioned a few months back? :-)

:-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: Q: Auto-filtering?

2000-04-26 Thread David T-G

Dave --

...and then Dave Ewart said...
% Can you "filter" incoming messages (to a single mailbox
% /var/spool/mail/username) into other mailboxes, based on subject or other
% criteria using Mutt?

You can use very powerful regular expression construction to tell mutt
where to save messages, and then tag groups of them and let those regexps
take effect.  Check out "save-hook" and "tag" in the manual.  But...


% 
% I can't find anything that explicitly describes this in the manual - although
% it does talk about multiple "spool" files ...  Do I have to use something
% like procmail to do the filtering?

... an external program like procmail is, by far, the better way to go.
For one thing, mutt filtering won't happen until you get into mutt and
(probably) start pressing keys to tag and save by yourself (though you
might get clever and "push" the necessary keystrokes).


% 
% Dave.
% --
% Dave Ewart
% [EMAIL PROTECTED]
% Computing Manager
% ICRF Cancer Epidemiology Unit, Oxford UK


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