Re: nntplib downloads content with extra linebreaks

2007-01-06 Thread Klaus Alexander Seistrup
Rweth wrote: > so afile contains a filename. > One single aline looks like so: >'' Beats me where those empty lines come from, it doesn't seem to happen in nntplib. Does the same thing happen if you pass .body() a filepointer? Cheers, -- Klaus Alexander Seistrup http://klaus.seistrup.dk/

Re: nntplib downloads content with extra linebreaks

2007-01-06 Thread rweth
Klaus Alexander Seistrup wrote: > Rweth wrote: > >>for aline in buf: >> bufHeal.append(aline.replace('\r\n', '\n')) > > What does one single aline look like? > >> s.body(id,afile) > > Does the 'afile' contain a filename or a filepointer? > > Cheers, > so afile contains a filename. O

Re: nntplib downloads content with extra linebreaks

2007-01-06 Thread Klaus Alexander Seistrup
Rweth wrote: >for aline in buf: > bufHeal.append(aline.replace('\r\n', '\n')) What does one single aline look like? > s.body(id,afile) Does the 'afile' contain a filename or a filepointer? Cheers, -- Klaus Alexander Seistrup http://klaus.seistrup.dk/ -- http://mail.python.org/mai

Re: nntplib downloads content with extra linebreaks

2007-01-06 Thread rweth
Klaus Alexander Seistrup wrote: > Rweth wrote: > >> I am using nntplib to download archived xml messages from our >> internal newsgroup. This is working fine except the download >> of files to the connected server, has extra embedded lines in >> them (all over the place), from the >>s.body

Re: nntplib downloads content with extra linebreaks

2007-01-06 Thread Klaus Alexander Seistrup
Rweth wrote: > I am using nntplib to download archived xml messages from our > internal newsgroup. This is working fine except the download > of files to the connected server, has extra embedded lines in > them (all over the place), from the >s.body(id,afile) # body method The 'linebreak