Re: fetchmail/procmail tears mail apart

1999-01-29 Thread Olaf Meeuwissen
On Thu, 28 Jan 1999 Christian T. Steigies wrote:

 On Tue, 26 Jan 1999, Christian T. Steigies wrote:

 [about fetchmail splitting mail at lines starting with `From ']

 First thanks for the hints I have received.
 Reading the fetchmail-FAQ I found this:
 X3. Messages containing From at start of line are being split.
 [...]
If you can't replace the offending program, take a look at your
sendmail.cf file. There will likely be a line something like

I'd say `fetchmail' is the offending program here :-)  The description
for it says:

  This is a full-featured, robust and very configurable POP3 / APOP /
  IMAP mail forwarder. It's designed to pick up mail from a mail
  server host and deliver it _just_as_though_it_had_arrived_on_your_
  _client_machine_via_SMTP_.[underscores mine]

Obviously, splitting mail breaks this promise.  File a bug report.
Either the program or the description has a bug.  Personally, I'd
blame `fetchmail' if it claims to be a mail-transport-agent.  MTAs
should not alter message content.  That's like the mailman opening
your mail.  MTAs can do whatever they please with the headers, but
they should stay clear of everything that follows the first empty
line, i.e. a line with nothing preceding the CRLF.

However, `fetchmail' provides a `popclient' and I'm not sure what
these beasties are supposed and allowed to do.  However, if I were
to ask my dog to fetch the mail, I'd be upset if it got ripped into
pieces ;-)  Splitting messages is something I'd only entrust to my
mail-reader.

 Now I wonder where I have my sendmail.cf file, I am using (the
 Debian standard) smail. Can't see nothing about procmail in
 /etc/smail, I wonder how my system knows that it should deliver mail
 with procmail. If I could add this option, I guess my problem would
 be solved.

Try this

  debian:~# find /etc -name sendmail.cf

and have a look the `find' manual page after that.  I just grepped
through `Contents-i386' and the only references to `sendmail.cf' came
from the sendmail and fidogate packages (hamm).  The relevant file for
smail is /etc/smail/config.  Also have a look at the `smail-config'
man page.


Re: fetchmail/procmail tears mail apart

1999-01-28 Thread Christian T. Steigies
On Tue, 26 Jan 1999, Christian T. Steigies wrote:

 I have a little trouble with fetchmail (hamm, 4.3.9-1), procmail (hamm,
 3.10.7-6) tearing mails apart.
 I think I tracked it down, when I fetch a mail containing a line with From
 in the text, procmail sorts everything before From in the correct folder,
 everything after From (the line with From is lost) ends up in my bulk
 folder.

First thanks for the hints I have received.
Reading the fetchmail-FAQ I found this:
X3. Messages containing From at start of line are being split.
[...]
   If you can't replace the offending program, take a look at your
   sendmail.cf file. There will likely be a line something like

Mlocal, P=/usr/bin/procmail, F=lsDFMShP, S=10, R=20/40, A=procmail -Y -d $u

   describing your local delivery agent. Try inserting the `E' option in
   the flags part (the F= string). This will make sendmail turn each
   dangerous start-of-line From into a From, preventing programs further
   downstream from acting up.

Now I wonder where I have my sendmail.cf file, I am using (the Debian
standard) smail. Can't see nothing about procmail in /etc/smail, I wonder
how my system knows that it should deliver mail with procmail. If I could
add this option, I guess my problem would be solved.

Ciao,
Christian.


Re: fetchmail/procmail tears mail apart

1999-01-27 Thread Olaf Meeuwissen
On Tue, 26 Jan 1999 14:36:35 +0100 (CET) Christian T. Steigies
[EMAIL PROTECTED] wrote:

 I have a little trouble with fetchmail (hamm, 4.3.9-1), procmail
 (hamm, 3.10.7-6) tearing mails apart.  I think I tracked it down,
 when I fetch a mail containing a line with From in the text,
 procmail sorts everything before From in the correct folder,
 everything after From (the line with From is lost) ends up in my
 bulk folder.

This is due to a bug in early email implementations or caused by an
attempt to expand a digest.
 
 Is this a bug or a feature? Is there an easy solution to fix this,
 some commandline switch or config change for fetchmail or procmail?

Unless the mail(s) in question were close to the minimal digest
format, I'd say it is a bug.  Those buggy old email implementations
shouldn't be around anymore :-)

-- 
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Olaf Meeuwissen   Ph.D. student, Shinshu University, Japan
[EMAIL PROTECTED]Information Management Systems Laboratory


Re: fetchmail/procmail tears mail apart

1999-01-27 Thread Christian T. Steigies
On Wed, 27 Jan 1999, Olaf Meeuwissen wrote:

 On Tue, 26 Jan 1999 14:36:35 +0100 (CET) Christian T. Steigies
 [EMAIL PROTECTED] wrote:
 
  I have a little trouble with fetchmail (hamm, 4.3.9-1), procmail
  (hamm, 3.10.7-6) tearing mails apart.  I think I tracked it down,
  when I fetch a mail containing a line with From in the text,
  procmail sorts everything before From in the correct folder,
  everything after From (the line with From is lost) ends up in my
  bulk folder.
 
 This is due to a bug in early email implementations or caused by an
 attempt to expand a digest.
No digest, dosemu-digest is coming through unharmed.
  
  Is this a bug or a feature? Is there an easy solution to fix this,
  some commandline switch or config change for fetchmail or procmail?
 
 Unless the mail(s) in question were close to the minimal digest
 format, I'd say it is a bug.  Those buggy old email implementations
 shouldn't be around anymore :-)
What is a buggy old email implemantation? Are you talking about
fetchmail/procmail or the mail programm the sender is using?
Most of the mails which are torn apart are on the various debian lists, just
because of the high volume I guess. I have seen sometimes that a mail
containing a From line is changed to  From, who should change the mail
ike this? fetchmail? procmail? Or the sun where the mail is delivered
originally? When I read the mail on the sun (Im no longer filtering there)
everything is ok, its only torn on the way from the sun to my debian
machine.

Ciao,
Christian.


fetchmail/procmail tears mail apart

1999-01-26 Thread Christian T. Steigies
Hi,
I have a little trouble with fetchmail (hamm, 4.3.9-1), procmail (hamm,
3.10.7-6) tearing mails apart.
I think I tracked it down, when I fetch a mail containing a line with From
in the text, procmail sorts everything before From in the correct folder,
everything after From (the line with From is lost) ends up in my bulk
folder.
Is this a bug or a feature? Is there an easy solution to fix this, some
commandline switch or config change for fetchmail or procmail?

Ciao,
Christian.


Re: fetchmail/procmail tears mail apart

1999-01-26 Thread Henning Makholm
Christian T. Steigies [EMAIL PROTECTED] writes:

 I have a little trouble with fetchmail (hamm, 4.3.9-1), procmail (hamm,
 3.10.7-6) tearing mails apart.

 I think I tracked it down, when I fetch a mail containing a line with From
 in the text,

It is a common phenomenon with mail system, tracing back to a design
mistake in the first email implementations. It should only affect
lines that begin with F, r, o, m, space.

I'm not sure which part of the chain is supposed to escape those
From's, but the -Y switch to procmail seems be connected with
this. Try inserting (or removing it, if it's already there) that and
see if it helps.

-- 
Henning Makholm
http://www.diku.dk/students/makholm