Re: Announcing qmail-autoresponder version 0.93

2000-08-07 Thread Brian Johnson

On Sat, Aug 05, 2000 at 05:45:24PM +0200, wolfgang zeikat wrote:
 the subject sure is good to have in the response,
 but i think of people who spend some time typing their mail,
 mistype the address, send without keeping a copy ...
 and have to retype it all in order to resend (remember? :)
 
 the included copy would allow them to just copy/paste from the autoreply
 ..
 
 and since qmail-autoresponder has the -c option to include a copy of the
 original message that size restriction came to my mind ... so you wouldnt
 send them their entire holiday.jpg or whatever back but just the original
 text message which (i think) hardly ever is bigger than 50 K.
---end quoted text---

yes, but then there's also the problem of when someone sends a message with an 
attachment on it, then they get the bounce that has what looks like the whole message 
and attachment on it, then they just forward the bounce message including the partial 
attachment on to whoever was really supposed to recieve the message.
one thought is to put the whole message in the bounce to local users, and then filter 
the message through a program that will remove any attachments from it for bounces to 
remote users?
-- 
Brian Johnson [EMAIL PROTECTED]
---
Some people have told me they don't think a fat penguin really embodies 
the grace of Linux, which just tells me they have never seen a angry 
penguin charging at them in excess of 100mph. They'd be a lot more careful 
about what they say if they had.  -- Linus Torvalds



Re: Announcing qmail-autoresponder version 0.93

2000-08-07 Thread Bruce Guenter

On Sat, Aug 05, 2000 at 04:46:12PM +0200, wolfgang zeikat wrote:
 i use qmail-autoresponder in .qmail-default to send a message back to
 senders who send to invalid users on our server.
 now i would like to know a few things:
 - is it possible to include only like the first 50 KB of the original
 message? so that for example bigger attachments would simply get truncated
 to that size?

I'll add that feature.

 - is it possible to exclude local users from the message limit of 1 per
 hour?

Exclude them meaning they wouldn't get any responses, or they would not
be rate limited?  What would this accomplish?
-- 
Bruce Guenter [EMAIL PROTECTED]   http://em.ca/~bruceg/

 PGP signature


Re: Announcing qmail-autoresponder version 0.93

2000-08-07 Thread wolfgang zeikat

  Also sprach Bruce Guenter [EMAIL PROTECTED] on 07.08.2000:

   - is it possible to include only like the first 50 KB of the
  original
   message?
  I'll add that feature.
great (i achieved by using the head command)
   - is it possible to exclude local users from the message limit of
  1 per
   hour?

  Exclude them meaning they wouldn't get any responses, or they would
  not
  be rate limited?  What would this accomplish?

a new co-worker mistyped 5 local email addresses in an hour ... with a
limit of 1 per hour he wouldnt have gotten a message back.

wolfgang




Re: Announcing qmail-autoresponder version 0.93

2000-08-07 Thread Olivier M.

On Mon, Aug 07, 2000 at 09:45:47PM +0200, wolfgang zeikat wrote:
   Also sprach Bruce Guenter [EMAIL PROTECTED] on 07.08.2000:
   
- is it possible to include only like the first 50 KB of the
   original
message?
   I'll add that feature.
 great (i achieved by using the head command)  

and what about attachments ? head could cut one in the middle...

 a new co-worker mistyped 5 local email addresses in an hour ... with a
 limit of 1 per hour he wouldnt have gotten a message back.

translating the qmail-error messages would really be the best solution
IMHO, but well, TAMDWTDI :)

Olivier
-- 
_
 Olivier Mueller - [EMAIL PROTECTED] - PGPkeyID: 0E84D2EA - Switzerland




Re: Announcing qmail-autoresponder version 0.93

2000-08-07 Thread wolfgang zeikat

Also sprach Olivier M. [EMAIL PROTECTED] on 07.08.2000:
i achieved by using the head command)  

and what about attachments ? head could cut one in the middle...
it does cut them off, thus my autoreply says:

--- Below this line is a copy of the message.
(Note that this copy has been truncated to 50 KB.)

by the way, please dont send me private copies of your mails to this list
;)
thanks

wolfgang




Re: Announcing qmail-autoresponder version 0.93

2000-08-07 Thread Bruce Guenter

On Mon, Aug 07, 2000 at 09:45:47PM +0200, wolfgang zeikat wrote:
 a new co-worker mistyped 5 local email addresses in an hour ... with a
 limit of 1 per hour he wouldnt have gotten a message back.

So limit it to 5 per hour.  Or educate your employees.
-- 
Bruce Guenter [EMAIL PROTECTED]   http://em.ca/~bruceg/

 PGP signature


Re: Announcing qmail-autoresponder version 0.93

2000-08-05 Thread wolfgang zeikat

i use qmail-autoresponder in .qmail-default to send a message back to
senders who send to invalid users on our server.
now i would like to know a few things:
- is it possible to include only like the first 50 KB of the original
message? so that for example bigger attachments would simply get truncated
to that size?

- is it possible to exclude local users from the message limit of 1 per
hour?

wolfgang




Re: Announcing qmail-autoresponder version 0.93

2000-08-05 Thread Olivier M.

On Sat, Aug 05, 2000 at 04:46:12PM +0200, wolfgang zeikat wrote:
 i use qmail-autoresponder in .qmail-default to send a message back to
 senders who send to invalid users on our server.

hey, nice idea :) looks better than the standard qmail error message...

 now i would like to know a few things:
 - is it possible to include only like the first 50 KB of the original
 message? so that for example bigger attachments would simply get truncated
 to that size?
Isn't the subject (%S) enough ? Parsing the attachment wouldn't probably
a very easy thing (well, ezmlm can do it, but it's _bigger_ than qmail-autoresponder).

 - is it possible to exclude local users from the message limit of 1 per
 hour?
by including a test in your .qmail-default file, probably yes.
if (localuser)
qmail-autoresponder -n ...
else
qmail-autoresponder -n 1

(to be converted to shell script...)

Olivier
-- 
_
 Olivier Mueller - [EMAIL PROTECTED] - PGPkeyID: 0E84D2EA - Switzerland




Re: Announcing qmail-autoresponder version 0.93

2000-08-05 Thread wolfgang zeikat

  Also sprach Olivier M. [EMAIL PROTECTED] on 05.08.2000:
  Isn't the subject (%S) enough ?

the subject sure is good to have in the response,
but i think of people who spend some time typing their mail,
mistype the address, send without keeping a copy ...
and have to retype it all in order to resend (remember? :)

the included copy would allow them to just copy/paste from the autoreply
..

and since qmail-autoresponder has the -c option to include a copy of the
original message that size restriction came to my mind ... so you wouldnt
send them their entire holiday.jpg or whatever back but just the original
text message which (i think) hardly ever is bigger than 50 K.

wolfgang




Re: Announcing qmail-autoresponder version 0.93

2000-08-05 Thread David Dyer-Bennet

Olivier M. [EMAIL PROTECTED] writes on 5 August 2000 at 17:20:52 +0200
  On Sat, Aug 05, 2000 at 04:46:12PM +0200, wolfgang zeikat wrote:
   i use qmail-autoresponder in .qmail-default to send a message back to
   senders who send to invalid users on our server.
  
  hey, nice idea :) looks better than the standard qmail error message...

Okay, but be careful here; a qmail bounce can be recognized as a
bounce, and thus automatically resent, etc. by the tools I use for
mail-reading (emacs VM).  If you make up your own bounce format, you
may well end up taking away a lot of the sender's tools for handling
your bounce.  So if you want to do your own bounce with your own
message, *please* take the trouble to do it in a common enough bounce
format that most tools that handle bounces will be able to figure it
out. 

Truncating the message causes related problems.  If I accidentally
mistype an address, and send some stuff, and it bounces, I can often
recognize the typo in the address and resend it very easily (M-r, edit
address, send).  If you've truncated the message, I lose this
ability.  I may even have lost the original files that were attached
by the time I see the bounce.  Furthermore, I may not realize that
you've truncated the body, if it goes past the first few screens
intact. 

I do see not wanting to bounce 10 meg files; but how often does it
happen, really?  
-- 
Photos: http://dd-b.lighthunters.net/ Minicon: http://www.mnstf.org/minicon
Bookworms: http://ouroboros.demesne.com/ SF: http://www.dd-b.net/dd-b 
David Dyer-Bennet / Welcome to the future! / [EMAIL PROTECTED]



Re: Announcing qmail-autoresponder version 0.93

2000-08-05 Thread wolfgang zeikat

  Also sprach David Dyer-Bennet [EMAIL PROTECTED] on 05.08.2000:
  So if you want to do your own bounce with your own
  message, *please* take the trouble to do it in a common enough
  bounce format that most tools that handle bounces will be able to
figure it
  out. 

what would be such a format?
"Returned Mail: User unknown" in the subject? or a MAILER-DAEMON
Return-Path? 
i hadnt thought about bounce handling tools yet, but rather about our
mostly german users here who tend to ignore automated bounces as "some
english error message i dont understand or dont care to understand" anyway.
  
  I may even have lost the original files that were attached
  by the time I see the bounce.

i see that point
  
  Furthermore, I may not realize that
  you've truncated the body, if it goes past the first few screens
  intact. 
good point, this could be indicated in the bounce tho.
  
  I do see not wanting to bounce 10 meg files; but how often does it
  happen, really?  

not very often. i had it happen with 90 meg tho, so i got careful here.

wolfgang




Re: Announcing qmail-autoresponder version 0.93

2000-08-05 Thread David Dyer-Bennet

wolfgang zeikat [EMAIL PROTECTED] writes on 5 August 2000 at 18:52:41 +0200
Also sprach David Dyer-Bennet [EMAIL PROTECTED] on 05.08.2000:
So if you want to do your own bounce with your own
message, *please* take the trouble to do it in a common enough
bounce format that most tools that handle bounces will be able to
  figure it
out. 
  
  what would be such a format?
  "Returned Mail: User unknown" in the subject? or a MAILER-DAEMON
  Return-Path? 
  i hadnt thought about bounce handling tools yet, but rather about our
  mostly german users here who tend to ignore automated bounces as "some
  english error message i dont understand or dont care to understand" anyway.

Unfortunately I can't point you at a reliable recipe for "what works".
This is at least partly because the official standard (latest) format
is rarely used or supported, and everything else is ad-hoc.  The qmail
format is documented, and I think there's room to add additional text
in another language without breaking it, so that might be a relatively
easy way to proceed.  Or take advice from somebody more knowledgable
then me, there me be some good compendiums about "what works"
somewhere.

The qmail format is called QSBMF, and is documented at
http://cr.yp.to/proto/qsbmf.txt .  This file may also go along with
the qmail distribution.

I do see not wanting to bounce 10 meg files; but how often does it
happen, really?  
  
  not very often. i had it happen with 90 meg tho, so i got careful here.

Is this that smaller / more expensive European bandwidth thing?  A 90
meg bounce going out of here would tie up some of the outgoing
bandwidth for a few hours (or less, if end-to-end throughput was
higher), but I doubt I'd even notice the slowdown; the things I notice
use up *incoming* rather than *outgoing* bandwidth.  And this is the
connectivity to the basement of my home, not a commercial location. 

I'd actually be inclined to set an *incoming* limit on what I was
willing to handle, and then be willing to bounce the whole thing if
necessary. 
-- 
Photos: http://dd-b.lighthunters.net/ Minicon: http://www.mnstf.org/minicon
Bookworms: http://ouroboros.demesne.com/ SF: http://www.dd-b.net/dd-b 
David Dyer-Bennet / Welcome to the future! / [EMAIL PROTECTED]



Re: Announcing qmail-autoresponder version 0.93

2000-08-05 Thread wolfgang zeikat

well, i have decided to truncate the bounced message,
and i simply added
|head -c 50k  /var/tmp/no-mailbox.txt
to that .qmail-default, where /var/tmp/no-mailbox.txt is a temporary file
that qmail-autoresponder finally uses for the message to the sender.

wolfgang




Announcing qmail-autoresponder version 0.93

2000-07-30 Thread Bruce Guenter

Version 0.93 of qmail-autoresponder is now available at:
http://em.ca/~bruceg/qmail-autoresponder/

See the documentation there for more details,
or join the mailing list by sending an email to:
[EMAIL PROTECTED]

Development versions of qmail-autoresponder are available via anonymous CVS.
Set your CVSROOT to ":pserver:[EMAIL PROTECTED]:/CVS",
login with an empty password, and check out the qmail-autoresponder module.

---
Changes in version 0.93

- Fixed an off-by-one bug in the rate limiting logic (again).

- Fixed an off-by-one bug in the Delivered-To checking code.

- The output writing routine will now substitute "%S" in the
  autoresponse message with the original message's subject.
---

qmail-autoresponder
Rate-limited autoresponder for qmail
Bruce Guenter [EMAIL PROTECTED]
Version 0.93
2000-07-30

This is a simple program to automatically respond to emails.

It is based on some ideas (but little or no code) from a similar
autoresponder by Eric Huss [EMAIL PROTECTED], and ideas presented
in the qmail mailing list.

Features:
- Limits rate of automatic responses (defaults to a maximum of one
  message every hour).
- Will not respond to nearly every type of mailing list or bulk email.
- Will not respond to bounce messages or MAILER-DAEMON.
- Bounces looping messages.
- Can insert the original subject into the response.
- Can copy original message into response.
- Can use links in the rate-limiting data directory to limit inode usage
  to a single inode.

Usage:

Put "|qmail-autoresponder MESSAGE_FILE DIRECTORY" into your ".qmail"
file before other delivery instructions.  MESSAGE_FILE is a
pre-formatted response, including headers, and DIRECTORY is the
directory into which rate-limiting information will be stored.  Any
instance of "%S" in MESSAGE_FILE will be replaced with the original
subject.

This program is Copyright(C) 2000 Bruce Guenter, and may be copied
according to the GNU GENERAL PUBLIC LICENSE (GPL) Version 2 or a later
version.  A copy of this license is included with this package.  This
package comes with no warranty of any kind.

 PGP signature