Re: sending with perl instead of MTA?

2002-08-11 Thread Matej Cepl

- Original Message -
From: Cameron Simpson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 11, 2002 5:34 AM
Subject: Re: sending with perl instead of MTA?


 Therefore it's often sensible to use your ISP's SMTP server.  And thus a
 script of some kind instead of sendmail, since you're only doing dispatch,
 not routing.

Yes, it is (actually, it is only sensible way how to make sending of mails
working on dial-up machine without bind etc.), but why not to configure your
very own sendmail properly?

 If I were only doing SMTP, I'd be doing that (well, really using my own
 smtpsend script which does that same job). But I'm doing a bit more.
 So I have my own script.

You do not have to have your own script (have you ever heard about
reinventing the wheel?). I understand that you have problems with
configuring underdocumented sendmail (who doesn't have them?), but still I
believe that it is better to use it than your own Perl script (twenty years
of development makes sendmail probably at least slightly more robust than
your own creation). So, take a look at
http://www.sendmail.org/~ca/email/offline_mailing.html, where is very well
documented exactly yours configuration of sendmail and take a look at the
attached sendmail.mc.

What about that?

Matej



sendmail.mc
Description: Binary data


Re: sending with perl instead of MTA?

2002-08-11 Thread Johan Almqvist

* Matej Cepl [EMAIL PROTECTED] [020811 13:59]:
 You do not have to have your own script (have you ever heard about
 reinventing the wheel?). I understand that you have problems with
 configuring underdocumented sendmail (who doesn't have them?)

I don't wanna start any MTA wars, but I tend to agree that sendmail is a
little overkill for the problem. You could take a look at nullmailer
for example, http://untroubled.org/nullmailer/ - the advantage of usin
nullmailer or sendmail is that mail gets queued should there be a problem
with the ISP's smtp server.

-Johan
-- 
Johan Almqvist
http://www.almqvist.net/johan/qmail/



Re: sending with perl instead of MTA?

2002-08-11 Thread David T-G

David --

BTW, you shouldn't follow up to the @gbnet address even if the prior
message was [mis]directed there...

...and then David Rock said...
% 
% On Sun, Aug 11, 2002 at 01:34:55PM +1000, Cameron Simpson wrote:
%  
%  Or with no legitimate domain name to use for outgoing return information;
...
%  have an opressive ISP (eg optus@home, my cable provider) you _can't_
%  run an publicly visible SMTP server because optus filter that port.
% 
% Wouldn't you just use my_hdr From: [EMAIL PROTECTED] to cover most of 
% this problem?

How do you get such a mail out to the outside world so that someone can
see that address and reply to it?


% 
% -- 
% David Rock
% [EMAIL PROTECTED]


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg30200/pgp0.pgp
Description: PGP signature


Re: terminal, $TERM, termcap

2002-08-11 Thread Sven Guckes

* Rob 'Feztaa' Park [EMAIL PROTECTED] [2002-08-11 01:55]:
 Alas! Derrick 'dman' Hudson spake thus:
  On Sat, Aug 10, 2002 at 06:25:30PM +0200, Martin Schweizer wrote:
  | Hello
  |
  | If I colapse threats there is always a ÀÄ at the
  | begin of the subject line. Where is this character
  | problem?  I use FreeBSD 4.6, Mutt 1.2.5i and
  | LC_ALL=de_DE.ISO_8859-1.  What I'm doing wrong?
 
  It means your terminal doesn't support the extended
  drawing characters.  The solution is to either switch
  terminals or to set 'ascii_chars' in your .muttrc.
  (the ascii_chars aren't as pretty, but are functional)
  In my experience, gnome-terminal (1.4) requires using
  'ascii_chars', but the linux console and xterm support
  the extended drawing characters.

 I could also depend on the value of $TERM, even
 if you're using a good terminal it might not work.

and even if your terminal is fine and the $TERM is ok then
it might not work because someone has screwed /etc/termcap. ;-)

 --
 Rob 'Feztaa' Park
 http://members.shaw.ca/feztaa/
 --
 A celebrity is a person who is known for his well-knownness.

  A celebrity is (someone who is)known for being famous.

Sven



Re: fast delete of all attachments in current folder

2002-08-11 Thread David Champion

* On 2002.08.10, in [EMAIL PROTECTED],
*   Sven Guckes [EMAIL PROTECTED] wrote:
 is there a simple and fast way to tag all
 attachments in the current folder for deletion?

Probably not, since there's no way in invoke a sequence of keystrokes
on each member of a set of tegged messages. Michael's user-defined
functions patch might allow this, though -- I don't know.


 also, is there a simple way to limit the view
 to all messages which contain at least two parts?
 
 Sven  [missing the 'M' flag of former mutt versions]

http://home.uchicago.edu/~dgc/mutt/#attach

limit~X 2-

-- 
 -D.Fresh fruit enriches everyone.  Takes the thirst
 Sun Project, APC/UCCO  out of everyday time.  A pure whiff of oxygen,
 University of Chicago  painting over a monochrome world in primary colors.
 [EMAIL PROTECTED]   We all know that.  It's why everyone loves fruit.



newbie usage: moving between dirs, loosing mail

2002-08-11 Thread Mat Harris

Hi, although I am a failry experienced redhat user, I don't know much 
about mutt. so here are my questions:

1) How do I move mail between folders on the local system?
2) Why do my messages disappear when I exit (no, not the deleted ones)? 
Is it something to do with '~/mbox'. I use sendmail and access my mail 
from the local system. This means my 'INBOX' is /var/spool/mail/matthewh 
  and my subfolders are in my home dir. How can I get mail back from the 
mbox into my INBOX?

cheers guys





Re: moving between dirs - save-message

2002-08-11 Thread Sven Guckes

* Mat Harris [EMAIL PROTECTED] [2002-08-11 18:42]:
 1) How do I move mail between folders on the local system?

use the command copy-message ('C') or save-message ('s').
or if you are using maildir format then
you might as well use the cp command... ;-)

 2) Why do my messages disappear when I exit (no, not the
 deleted ones)?  Is it something to do with '~/mbox'.

the default setup does that - move read mails to $mbox.
set nomove to make it go away (or is that unset move?).

 I use sendmail and access my mail from the local system.  This
 means my 'INBOX' is $MAIL  and my subfolders are in my home
 dir.  How can I get mail back from the mbox into my INBOX?

save them to the folder '!' (your inbox).
see cited text from doc/manual.txt below.

Sven

===
  4.7.  Mailbox Shortcuts
There are a number of built in shortcuts which refer to specific mailboxes.
These shortcuts can be used anywhere you are prompted for a file or mailbox path.
  o  ! -- refers to your ``$spoolfile'' (incoming) mailbox
  o   -- refers to your ``$mbox'' file
  o   -- refers to your ``$record'' file
  o  - or !! -- refers to the file you've last visited
  o  ~ -- refers to your home directory
  o  = or + -- refers to your ``$folder'' directory
  o  @alias -- refers to the ``default save folder'' as determined by
 the address of the alias



Re: fast delete of all attachments in current folder

2002-08-11 Thread Michael Elkins

David Champion wrote:
 Probably not, since there's no way in invoke a sequence of keystrokes
 on each member of a set of tegged messages. Michael's user-defined
 functions patch might allow this, though -- I don't know.

Nope.  That patch just saves you from having to define a macro multiple
times if you want to bind it to multiple keys/menus.  You'd really need
a scripting language to do something like this.



Re: fast delete of all attachments in current folder

2002-08-11 Thread Justin R. Miller

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Said Sven Guckes on Sun, Aug 11, 2002 at 01:33:03AM +0200:

 also, is there a simple way to limit the view to all messages which
 contain at least two parts?

Couldn't you just do a limit for ~h multipart/?

- -- 
[!] Justin R. Miller [EMAIL PROTECTED]
Encrypted email preferred (key 0xC9C40C31)
Mutt/GnuPG guide at http://codesorcery.net

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9VunQ94d6K8nEDDERAsTiAJ477MJzb+iMzGe9ZV57LjmPuF4kLgCfTG/X
FdNvyaFXyjGSKh2tu3M+cmA=
=X0z6
-END PGP SIGNATURE-



Re: sending with perl instead of MTA?

2002-08-11 Thread Cameron Simpson

On 13:59 11 Aug 2002, Matej Cepl [EMAIL PROTECTED] wrote:
|  Therefore it's often sensible to use your ISP's SMTP server.  And thus a
|  script of some kind instead of sendmail, since you're only doing dispatch,
|  not routing.
| Yes, it is (actually, it is only sensible way how to make sending of mails
| working on dial-up machine without bind etc.), but why not to configure your
| very own sendmail properly?

I had thought I'd explained that. If you're going to have a mail system
on your home machine that talks to the outside world, you NEED a valid,
deliverable domain for it. And that CANNOT be your ISP's domain, because
there's plenty of accounts on your home machine whose name will collide
with names in the ISP domain, or just be plain undeliverable.  Egro,
you need a domain, and a listening sendmail.

As I remarked, my ISP (optus@home) blocks SMTP delivery and therefore I
can't run a mail service on my home machine without extra finagling. And
nor can other Optus customers.

So in short, many people are not in a position to setup up a valid
mail system at home, and further don't need one - they only need to be
able to do SMTP dispatch.

|  If I were only doing SMTP, I'd be doing that (well, really using my own
|  smtpsend script which does that same job). But I'm doing a bit more.
|  So I have my own script.
| 
| You do not have to have your own script (have you ever heard about
| reinventing the wheel?).

When other wheels are not the right shape, one must roll one's own or
be a slave to someone else's unsuitable setup. I have LOTS of wheels
with special fittings.

| I understand that you have problems with
| configuring underdocumented sendmail (who doesn't have them?),

Actually, I now have a correctly configured sendmail at home, having
made external delivery arrangements for my domain. And I still use my
special wheel, because sendmail doesn't do what I want, not will ANY
email only tool.

| but still I
| believe that it is better to use it than your own Perl script (twenty years
| of development makes sendmail probably at least slightly more robust than
| your own creation).

Since my script does less (and more; I dispatch news with it too) and
sendmail has a long history of vunerabilities and is overfeatured for
my needs, I would call that logic a little shakey.

| So, take a look at
| http://www.sendmail.org/~ca/email/offline_mailing.html, where is very well
| documented exactly yours configuration of sendmail and take a look at the
| attached sendmail.mc.
| What about that?

Sorry, but if I were installing from scratch I'd use postfix, not
sendmail.  As it is, I've arranged my own domain and set the (fairly
easy for a techie) setting in the RedHat sendmail.mc file and am now
happy. But I still don't use it for mutt dispatch, and never will.

Cheers,
-- 
Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/

Yes, [congress is] petty and venal and selfish.  That's why they're called
_representatives_.  - Will Durst



Re: sending with perl instead of MTA?

2002-08-11 Thread Cameron Simpson

On 00:02 11 Aug 2002, David Rock [EMAIL PROTECTED] wrote:
| On Sun, Aug 11, 2002 at 01:34:55PM +1000, Cameron Simpson wrote:
|  Or with no legitimate domain name to use for outgoing return information;
|  to run a mail service you really do need a valid reply domain, at
|  least for the addresses (From:) that you permit to escape into the
|  outside world. On a dialup or cable connection you don't have this
|  unless you make yourself a domain, eg via homeip.net etc. And if you
|  have an opressive ISP (eg optus@home, my cable provider) you _can't_
|  run an publicly visible SMTP server because optus filter that port.
| 
| Wouldn't you just use my_hdr From: [EMAIL PROTECTED] to cover most of 
| this problem?

No. The outgoing headers include enough reply information for misdelivery
to cause bounces to go into the ether, or to my ISP (_postmaster_ or
suchlike at my ISP, not _me_) that this is the wrong approach. It is
necessary that the first _mail_system_ that handle things be a valid
standalone domain for this reason. So either one needs one's own domain
and a full setup on the home box, or one needs to deliver directly to
the ISP's SMTP service.
-- 
Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/

Using encryption on the Internet is the equivalent of arranging an armored
car to deliver credit-card information from someone living in a cardboard box
to someone living on a park bench.  - Gene Spafford



Re: sending with perl instead of MTA?

2002-08-11 Thread Cameron Simpson

On 08:20 11 Aug 2002, David T-G [EMAIL PROTECTED] wrote:
| ...and then David Rock said...
| % On Sun, Aug 11, 2002 at 01:34:55PM +1000, Cameron Simpson wrote:
| %  Or with no legitimate domain name to use for outgoing return information;
| %  have an opressive ISP (eg optus@home, my cable provider) you _can't_
| %  run an publicly visible SMTP server because optus filter that port.
| % Wouldn't you just use my_hdr From: [EMAIL PROTECTED] to cover most of 
| % this problem?
| How do you get such a mail out to the outside world so that someone can
| see that address and reply to it?

Oh that side is easy - your home system knows how to send, directly
(Optus block inbound SMTP, not outbound SMTP). The problem is that the
home machine will either stamp unqualified addresses (cameron) with
a bogus domain (eg localhost.localdomain on unmodified redhat boxes)
or with the ISP's domain (if you've so configured it), which is a LIE,
because most accounts on your machine either don't exist in the ISP or
collide with other users.

the crucial point most people seem to miss here, aside from the whole
lack-of-domain thing, is that if you're going to use you local machines
mail system, _all_ email clients must be able to use it (without special
config hacks like my_hdr), and all local accounts must be able to use it.
That's the whole point! A single user single client setup might as well
speak directly to a legitimate SMTP service from one's ISP.
-- 
Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/

Tiggers don't like honey.   - A.A.Milne, The House at Pooh Corner