hostname problems

2001-03-20 Thread Matt Kolon

Hi Mutt People:

Any ideas why I keep getting this: ---|
  |
 Received: (from mkolon@localhost) --|| -mutt
 by anxiety.kolon.org (8.11.0/8.11.0) id f2K7DQ425255  | -sendmail
 for [EMAIL PROTECTED]; Tue, 20 Mar 2001 02:13:26 -0500 | -recipient

when I've set .muttrc with hostname="anxiety.kolon.org"?

The docs (and advice on the many threads on this topic) seem contradictory WRT the use 
of the hostname variable, sometimes saying that it should be used to fix the above, 
sometimes saying that it's the default domain for unqualified sent mail. Which is it? 
Is it both (after setting use_domain)?

Thanks in advance,

/matt




Re: Mutt: Reading POP3 mail and moving the messages to folders based on To: and Cc: headers, before the messages are read.

2001-03-20 Thread Suresh Ramasubramanian

Malcolm Boekhoff proclaimed on mutt-users that: 
 I want to retrieve messages from a POP3 mailbox and move them into folders
 (using Mutt's pattern recognition expression operator
 "~C") depending upon their To: or Cc: headers.
 
 Use fetchmail (or getmail if you are on windows) and procmail (or other mail
 filtering app which you can compile using cygwin and doze)
 
-- 
Suresh Ramasubramanian + Wallopus Malletus Indigenensis
mallet @ cluestick.org + Lumber Cartel of India, tinlcI
EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin



Re: hostname problems

2001-03-20 Thread Aaron Schrab

Please wrap your text at  80 characters per line.

At 02:22 -0500 20 Mar 2001, Matt Kolon [EMAIL PROTECTED] wrote:
 Any ideas why I keep getting this: ---|
   |
  Received: (from mkolon@localhost) --|| -mutt
  by anxiety.kolon.org (8.11.0/8.11.0) id f2K7DQ425255  | -sendmail
  for [EMAIL PROTECTED]; Tue, 20 Mar 2001 02:13:26 -0500 | -recipient

 when I've set .muttrc with hostname="anxiety.kolon.org"?

Sendmail is doing that, not mutt.  There's no way for mutt to control
what appears there.  The only way to alter that would be to alter the
format for Received: headers in your sendmail.cf file.

But, it's also not much of a problem.  That isn't the envelope sender
(that doesn't appear in sendmail-generated Received: headers),
sendmail's just recording where it got the message.  As with everything
in Received: headers, this value should never be used for anything other
than tracing where a message came from.

The only reason that this might be a problem is if you want your login
name to be kept secret.

If you are actually having problems with the envelope sender being used,
setting $envelope_from may help.

 The docs (and advice on the many threads on this topic) seem
 contradictory WRT the use of the hostname variable, sometimes saying
 that it should be used to fix the above, sometimes saying that it's
 the default domain for unqualified sent mail. Which is it? Is it both
 (after setting use_domain)?

It's used for several things:

- If $use_domain is set, it's added to any addresses (either sender or
  recipient) that don't already have domains attached.  This is the only
  one that's really important.
- Message IDs
- File names for messages in maildir-format mailboxes.
- Names for various temporary files.

-- 
Aaron Schrab [EMAIL PROTECTED]  http://www.execpc.com/~aarons/
 The only difference between a car salesman and a computer salesman is
 that the car salesman knows he's lying.



Re: Mutt: Reading POP3 mail and moving the messages to folders based on To: and Cc: headers, before the messages are read.

2001-03-20 Thread Malcolm Boekhoff

I can compile fetchmail and it appears to work with Cygwin and NT, however it wants to 
connect to an SMTP server (it doesn't simply
write into the ~/mail/mbox file. Hence I need an SMTP listener - is this procmail? - 
to receive from fetchmail and I suppose this
(procmail) writes into ~/mail/mbox. Correct?

Unfortunately, procmail does not compile out-of-the-box under Cygwin/NT.

I was thinking that the fetchmail "-mta" or "-bsmtp" switch might make fetchmail put 
the messages into ~/mail/mbox (so that I
wouldn't have to run an SMPT server), but saw the "Note that  fetchmail's  
reconstruction  of MAIL FROM and RCPT TO lines is not
guaranteed correct; the caveats discussed under THE USE AND ABUSE OF MULTIDROP 
MAILBOXES below apply" note in the manual page and
when I tried the "-bsmtp" switch, mutt didn't recognise the file created by fetchmail.

So, I think that if I want to use fetchmail, I need to be running a local SMTP server, 
right? Does that mean procmail or sendmail,
because neither of these will compile under Cygwin without a few days hair pulling.

- Original Message -
From: "Suresh Ramasubramanian" [EMAIL PROTECTED]
To: "Mutt Users Mailing List" [EMAIL PROTECTED]
Sent: Tuesday, March 20, 2001 9:55 AM
Subject: Re: Mutt: Reading POP3 mail and moving the messages to folders based on To: 
and Cc: headers, before the messages are read.


 Malcolm Boekhoff proclaimed on mutt-users that:
  I want to retrieve messages from a POP3 mailbox and move them into folders
  (using Mutt's pattern recognition expression operator
  "~C") depending upon their To: or Cc: headers.

  Use fetchmail (or getmail if you are on windows) and procmail (or other mail
  filtering app which you can compile using cygwin and doze)

 --
 Suresh Ramasubramanian + Wallopus Malletus Indigenensis
 mallet @ cluestick.org + Lumber Cartel of India, tinlcI
 EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin





Re: Mutt: Reading POP3 mail and moving the messages to folders based on To: and Cc: headers, before the messages are read.

2001-03-20 Thread Charles Cazabon

Malcolm Boekhoff [EMAIL PROTECTED] wrote:
 I can compile fetchmail and it appears to work with Cygwin and NT, however it
 wants to connect to an SMTP server (it doesn't simply write into the
 ~/mail/mbox file. Hence I need an SMTP listener - is this procmail? - to
 receive from fetchmail and I suppose this (procmail) writes into ~/mail/mbox.
 Correct?

No.  fetchmail can be configured to deliver via an MDA like procmail instead of
SMTP re-injection; it's just not the default config.

However, as the author of getmail, I would urge you to consider trying getmail.
It would suit your purposes, and be simpler to configure and maintain.

Charles
-- 
---
Charles Cazabon [EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: exim and maildir/header sorting

2001-03-20 Thread Byrial Jensen

On Mon, Mar 19, 2001 at 12:15:18 +0530, Suresh Ramasubramanian wrote:
 First, use a mbox to maildir type converter to migrate your existing mails
 (plenty available at http://www.cr.yp.to)

Or just use Mutt to convert:
1) Open the mbox mailbox
2) Set the $mbox_type variable to maildir. This sets the default
   mailbox type used when creating new mailboxes.
3) Tag all messages and then save them to a new mailbox.



Cat'ing senders email to file

2001-03-20 Thread Dan Cardamore

I'm trying to keep a list of spammers in a file so that my filter can
process them to the appropriate /dev/null.

I'd like to have a key binding which would:
echo "authorsEmailAddress"  spamlist.txt.

The difficulty I'm having is in having the email address put in by mutt.
This is what I've tried:

macro generic I '!echo %a  spamlist.txt'

The %a gets put in the file however.

Thanks for any help,

Dan

 Dan Cardamore  [EMAIL PROTECTED] http://www.hld.ca
 Opensource projects:   http://www.hld.ca/opensource
 My Groupware project:  http://www.gwpeople.com




Cat'ing senders email to file

2001-03-20 Thread Dan Cardamore

I'm trying to keep a list of spammers in a file so that my filter can
process them to the appropriate /dev/null.

I'd like to have a key binding which would:
echo "authorsEmailAddress"  spamlist.txt.

The difficulty I'm having is in having the email address put in by mutt.
This is what I've tried:

macro generic I '!echo %a  spamlist.txt'

The %a gets put in the file however.

Thanks for any help,

Dan

 Dan Cardamore  [EMAIL PROTECTED] http://www.hld.ca
 Opensource projects:   http://www.hld.ca/opensource
 My Groupware project:  http://www.gwpeople.com



Re: Mutt: Reading POP3 mail and moving the messages to folders based on To: and Cc: headers, before the messages are read.

2001-03-20 Thread Duke Normandin

On Tue, Mar 20, 2001 at 10:32:35AM -0800, Enoch Wu wrote:
 Using Mutt to do the job is stretching it quite a bit. Sometimes you have
 to use the right tool (like procmail) to do the job. However, the .muttrc
 snippet below should work but it does require you to hold down the "y" key
 while viewing the index page. The "save-hook" method gets around an
 occasional problem you would have if you use the "tag-pattern" method.
 
 save-hook  "~h cygwin@"  +cygwin
 save-hook  "~h cygwin-apps@"  +cygwin-apps
 save-hook  "~h cygwin-digest-help@"  +cygwin-digest-help
 save-hook  "~h mutt-users@"  +mutt-users
 save-hook  "~h yourlogin@ | ~h yourlogin2@ | ~f someperson@" +To.Me
 save-hook  "~h *"  +other
 
 macro index "y"   "save-messagereturn"  "Hold down y key to move
 messages
 
 On Tue, 20 Mar 2001, Malcolm Boekhoff wrote:
 
  I want to retrieve messages from a POP3 mailbox and move them into folders (using 
Mutt's pattern recognition expression operator
  "~C") depending upon their To: or Cc: headers.
  
  N.B. I don't want to read the messages before they are moved. I want them moved 
into separate folders, so that I can switch to those
  folders to read the messages.
  
  Once they have been moved into such folders, I don't want them moved again.
  
  Can somebody please tell me what I should set up to do this? I have been lead to 
believe that I can use a macro to switch the
  "spoolfile", use the 'G' fetch-mail command then switch the spoolfile back to 
$MAIL, however, I don't really understand what I
  should set "spoolfile", "mbox" to. I thought I could maybe use "save-hook"s to do 
this, but the documentation is not very helpful on
  these, for simple-minds like mine.
  
  What I want is:
  
  +mutt
  +cygwin
  +mbox
  
  I want all messages downloaded from the POP3 server to go into +mbox, but those 
matching "~C *cygwin*" to go into +cygwin and those
  matching "~C *mutt*" to go into +mutt. I want the messages moved before I read 
them.
  

Hi

I'm new to Mutt, so what follows may need some fine-tuning! I've set up
the following macros in my /etc/muttrc file. In the "main index" where
you first see the contents of your "spoolfile", I simply run each macro.
So far, I haven't had a problem. Each "logical message groupings" - be
they mailing lists; personal mail, etc. is "saved" each in their
"mailbox".

mailboxes `echo $HOME/mutt/folders/[A-Z]*`
macro index "\cy" "tag-pattern~C 
questions@entertag-prefixsave-message=IN.freebsdenterdelete-messagesync-mailboxenter"
macro index "\ey" "tag-pattern~C 
php-dbentertag-prefixsave-message=IN.php-dbenterdelete-messagesync-mailboxenter"
macro index "\ez" "tag-pattern~C 
mutt-usersentertag-prefixsave-message=IN.muttenterdelete-messagesync-mailboxenter"
macro index "\ex" "tag-pattern~C 
mercury@entertag-prefixsave-message=IN.mercuryenterdelete-messagesync-mailboxenter"
macro index "\ec" "tag-pattern(~C cygwin@)|(~C 
@cygwin)entertag-prefixsave-message=IN.cygwinenterdelete-messagesync-mailboxenter"

Works for me, and it's an easy way to "filter" your spoolfile. What's
left over is usually spam or misc. "acceptable" stuff.

If there's any MMMs ( Mutt Macro Maestro ) ;,) reading this post, I'm
wondering how I could combine all of the above macros, into one huge one?
If that's possible, would it then be possible to load the huge macro into
a "push"? I'm thinking of a "push" command at the bottom of my
/etc/muttrc file.

Anyway Malcolm --- HTH! Later
-- 
-duke
Calgary, Alberta, Canada





Re: Cat'ing senders email to file

2001-03-20 Thread Brian Foley

* Dan Cardamore [[EMAIL PROTECTED]] on [20-03-01] wrote:
 I'm trying to keep a list of spammers in a file so that my filter can
 process them to the appropriate /dev/null.

Dan,
  Have you seen the following web-page:
http://www.linuxgazette.com/issue62/okopnik.html
it answers your question (I think) and it should give you some more
ideas as well.
  Brian.

-- 
Brian Foley -- [EMAIL PROTECTED] -- www.maths.tcd.ie/~brianf
Visit the Intervarsity Track  Field web-site:  www.iv2001.com



Re: Cat'ing senders email to file

2001-03-20 Thread Drew Bloechl

On Tue, Mar 20, 2001 at 02:39:40PM -0500, Dan Cardamore wrote:
 The difficulty I'm having is in having the email address put in by mutt.
 This is what I've tried:
 
 macro generic I '!echo %a  spamlist.txt'
 
 The %a gets put in the file however.

I'm pretty sure %a only works in format variables.  You might try piping
the message to a shell script that throws everything away except for the
sender and then appends that to your blacklist.

-- 
Drew Bloechl
[EMAIL PROTECTED]
PGP key ID: 33855516

 PGP signature


Re: exim and maildir/header sorting

2001-03-20 Thread Suresh Ramasubramanian

Byrial Jensen proclaimed on mutt-users that: 

 On Mon, Mar 19, 2001 at 12:15:18 +0530, Suresh Ramasubramanian wrote:
  First, use a mbox to maildir type converter to migrate your existing mails
  (plenty available at http://www.cr.yp.to)
 
 Or just use Mutt to convert:

A bit tedious when you have ~ 100 mbox files like I do (list
archives going back over four years, and split into several mboxes
so that I can keep track of them easier) :)

-s

-- 
Suresh Ramasubramanian + Wallopus Malletus Indigenensis
mallet @ cluestick.org + Lumber Cartel of India, tinlcI
EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin  



Re: Cat'ing senders email to file

2001-03-20 Thread Dan Cardamore

That is perfect!  Thanks Brian.

Dan

On Tue, Mar 20, 2001 at 11:27:28PM +, Brian Foley wrote:
 * Dan Cardamore [[EMAIL PROTECTED]] on [20-03-01] wrote:
  I'm trying to keep a list of spammers in a file so that my filter can
  process them to the appropriate /dev/null.
 
 Dan,
   Have you seen the following web-page:
 http://www.linuxgazette.com/issue62/okopnik.html
 it answers your question (I think) and it should give you some more
 ideas as well.
   Brian.
 
 -- 
 Brian Foley -- [EMAIL PROTECTED] -- www.maths.tcd.ie/~brianf
 Visit the Intervarsity Track  Field web-site:  www.iv2001.com

 Dan Cardamore  [EMAIL PROTECTED] http://www.hld.ca
 Opensource projects:   http://www.hld.ca/opensource
 My Groupware project:  http://www.gwpeople.com



HOWTO Cat senders email to file

2001-03-20 Thread Marco Fioretti

Dan Cardamore wrote:
 
 I'm trying to keep a list of spammers in a file so that my filter can
 process them to the appropriate /dev/null.
 
 I'd like to have a key binding which would:
 echo "authorsEmailAddress"  spamlist.txt.
 
 The difficulty I'm having is in having the email address put in by mutt.
 This is what I've tried:
 
 macro generic I '!echo %a  spamlist.txt'
 

Dan,

look at

http://web.tiscalinet.it/marco_web/popfilter.html

There are mutt macros to do exactly what you want,
and the popfilter script to delete email from
the blacklisted people on the POP3 server, before
downloading it.


Ciao,
Marco