🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
11 messages
11 total messages Started by The Archiver Thu, 08 Nov 2001 08:56
Re: Announce: yEncoding - site with info has been created.
#55042
Author: The Archiver
Date: Thu, 08 Nov 2001 08:56
38 lines
2115 bytes
"=?ISO-8859-1?Q?Marcus=20M=F6nnig?=" <minibbjd@gmx.net> wrote:

>> The draft, additional comments, examples, sourcecode, .....
>
>Nice idea. I'll implement it in my newsreader project.

Thanks a lot for the support.
Without newsreaders which can decode and understand yEnc it has no chance.

>Just one question regarding the format:
>
>=ybegin part=1 line=128 size=500000 name=mybinary.dat
>
>You are mentioning quotes around filenames in the subject line, but there 
>are no quotes around the filename in the =ybegin line. Is the order of the 
>attribute/value pairs mandatory, so that everything after "name=" is the 
>filename? If not, filenames with spaces would break the parsing.

It would be really a good idea to make to order mandantory.
It would not be critical for part, line, size - but the 'name=' must be always
the last keyword.
I will add this to the "implementation notes'.
Thanks for finding this topic. 

>Generally, I like quotes a lot when parsing.

Yes - I like it too. But if the first people want to post filenames with 
quotes then this method still works. ;-)

I hope you agree that placing the 'name=' at the end of a line is the
best method to offer best flexibility combined with minimum effort
for extracting the filename.

-- 
Juergen, [The Archiver]


Re: Announce: yEncoding - site with info has been created.
#55049
Author: Marcus Mönnig
Date: Thu, 08 Nov 2001 11:53
45 lines
2760 bytes
On 08.11.01 9:56:05, The Archiver wrote:

> "=?ISO-8859-1?Q?Marcus=20M=F6nnig?=" <minibbjd@gmx.net> wrote:
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Wrote that piece of software yourself? ;-) 
 
>>Generally, I like quotes a lot when parsing.
> 
> Yes - I like it too. But if the first people want to post filenames with 
> quotes then this method still works. ;-)

For good reasons, at least on Windows quotes are not allowed in filenames. 
Dunno about others OSes.

> I hope you agree that placing the 'name=' at the end of a line is the
> best method to offer best flexibility combined with minimum effort
> for extracting the filename.

name=myfile with spaces.dat    

Trivia: What's the name of the file? 

If your answer is "myfile with spaces.dat" (without the quotes), then you 
did not see the 4 spaces at the end of the name. That's why quotes are a 
good thing.

On the other hand in the above example the spaces could have come in 
accidentally while the poster manually edited the filename before posting, 
so maybe we should trim spaces anyway, but what now:

name=    myfile with spaces.dat    

Trim the first 4 spaces and the last 4? Only the last 4? 

Even if I sound picky, as long as you don't use quotes, you are running into 
collisions.

Marcus
-- 
A Windows partition, if left unattended for even as much as a few months,
can attain something akin to sentience[1] and become bent on destroying your
drive.  Real OS's, which have never had to deal with an attack of this
nature, are powerless and fall back in disarray.
		-- Peter Dalgaard
Re: Announce: yEncoding - site with info has been created.
#55075
Author: Newsloader
Date: Thu, 08 Nov 2001 20:45
9 lines
1153 bytes
Windows does no longer support spaces in front or
tail of the filename. (At least not in the explorer)

Greetings,
Newsloader



Re: Announce: yEncoding - site with info has been created.
#55090
Author: The Archiver
Date: Fri, 09 Nov 2001 09:45
33 lines
2046 bytes
"Marcus Moennig" <minibbjd@gmx.net> wrote:

>On 08.11.01 9:56:05, The Archiver wrote:
>
>> "=?ISO-8859-1?Q?Marcus=20M=F6nnig?=" <minibbjd@gmx.net> wrote:
>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   Wrote that piece of software yourself? ;-) 

Yes, the "follow-up" feature of the MyNews tool is not GKNSA.

>name=myfile with spaces.dat____    
>name=    myfile with spaces.dat    
>
>Trim the first 4 spaces and the last 4? Only the last 4? 
>Even if I sound picky, as long as you don't use quotes, you are running into 
>collisions.

You are absolutely right. It is also necessary to have a more detailled
description of the filename format.
It would be necessary to specify the permitted character set, the handling
of directories '/' & '\', drive-information and even quotes.
Also filenames in Unicode could be mentioned.

Does anybody know a RFC which specifies _filenames_ exactly 
and properly. I dont believe that it takes more than a reference in a draft.
(If yEnc makes it to an RFC then someone has to specify it properly).

However I will add a few words to the version '2' of the implementation notes.

-- 
Juergen, [The Archiver]

Re: Announce: yEncoding - site with info has been created.
#55091
Author: Jeremy
Date: Fri, 09 Nov 2001 09:46
31 lines
2070 bytes
Marcus M�nnig <minibbjd@gmx.net> wrote:

> On 08.11.01 9:56:05, The Archiver wrote:
> 
> > "=?ISO-8859-1?Q?Marcus=20M=F6nnig?=" <minibbjd@gmx.net> wrote:
>    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>    Wrote that piece of software yourself? ;-) 
>  
> >>Generally, I like quotes a lot when parsing.
> > 
> > Yes - I like it too. But if the first people want to post filenames with 
> > quotes then this method still works. ;-)
> 
> For good reasons, at least on Windows quotes are not allowed in filenames. 
> Dunno about others OSes.

Quotes are allowed in filenames pretty much everywhere.  They don't tend
to happen in Unix, but there's nothing stopping you from using them.  On
Macs, including OS X (which is Unix), they are positively epidemic, as I
discovered a week or so ago when I was trying to use 'find' to chown a
bunch of files, and discovered that I had quite a lot of files containing
not only spaces, but both single and double quotes as well.  That was a
fun lesson in assumptions. :)

So even if you use double-quotes around the filename, you still have to
account for the fact that the filename itself may contain double-quotes.
I don't know how this is dealt with in MIME, but it's worth looking into.

-- 
Jeremy  |  jeremy@exit109.com
Re: Announce: yEncoding - site with info has been created.
#55094
Author: Andrew Gierth
Date: Fri, 09 Nov 2001 10:55
12 lines
1609 bytes
>>>>> "Jeremy" == Jeremy  <jeremy@exit109.com> writes:

 Jeremy> So even if you use double-quotes around the filename, you
 Jeremy> still have to account for the fact that the filename itself
 Jeremy> may contain double-quotes.  I don't know how this is dealt
 Jeremy> with in MIME,

MIME uses \\ and \" for backslashes and double-quotes in quoted strings.

-- 
Andrew.
Re: Announce: yEncoding - site with info has been created.
#55102
Author: Andrew Gierth
Date: Fri, 09 Nov 2001 14:26
15 lines
1733 bytes
>>>>> "The" == The Archiver <archiver@i3w.com> writes:

 The> You are absolutely right. It is also necessary to have a more
 The> detailled description of the filename format.  It would be
 The> necessary to specify the permitted character set, the handling
 The> of directories '/' & '\', drive-information and even quotes.

None of this is even slightly consistent between different platforms.

See the MIME specs for considerable discussion on this point, e.g. in
RFC 2183 (Content-Disposition).

-- 
Andrew.
Re: Announce: yEncoding - site with info has been created.
#55145
Author: The Archiver
Date: Mon, 12 Nov 2001 10:04
18 lines
1409 bytes
Jeremy <jeremy@exit109.com> wrote:

>So even if you use double-quotes around the filename, you still have to
>account for the fact that the filename itself may contain double-quotes.
>I don't know how this is dealt with in MIME, but it's worth looking into.

It seems to be far better to have no quotes in the filename behind 
the "name=" keyword of yEncode -
 as long as CRLF are not acceptable in filenames :-)

The only additive rules should be that leading and trailing quotes
are generally forbidden.

-- 
The Archiver


Re: Announce: yEncoding - site with info has been created.
#55164
Author: Jøhnny Fävòrítê (it means "Mario...
Date: Wed, 14 Nov 2001 04:29
19 lines
1973 bytes
Marcus M�nnig wrote:
> name=myfile with spaces.dat
>
> Trivia: What's the name of the file?
>
> If your answer is "myfile with spaces.dat" (without the quotes), then
> you did not see the 4 spaces at the end of the name. That's why quotes
> are a good thing.

Oh please.  It's nitpicking over silly stuff like this that makes
standardizing things take forever.  If there were spaces past the ".dat"
part it's probably a mistake on the user's part.  Who cares all that
much if you decode it as "file.dat" or "file.dat  " anyway?  Personally
I'd prefer the first one.

In my newsreader I trim leading and trailing whitespace from attachment
filenames.  If yEncoding gets popular enough for me to support it I'll
do the same thing there.
Re: Announce: yEncoding - site with info has been created.
#55172
Author: The Archiver
Date: Wed, 14 Nov 2001 07:10
11 lines
1035 bytes
<allen@snakebite.com> wrote:

>If yEncoding gets popular enough for me to support it I'll
>do the same thing there.

Thanks for the support.
-- 
The Archiver


Re: Announce: yEncoding - site with info has been created.
#55262
Author: Marcus Mönnig
Date: Thu, 22 Nov 2001 01:00
31 lines
2276 bytes
On 13.11.01 20:29:38, J�hnny F�v�r�t� (it means "Marionette Hatbomb") wrote:

> Oh please.  It's nitpicking over silly stuff like this that makes
> standardizing things take forever.  

Rethink your definition of "standardization". Not being prepared for the 
unusual is not part of it. 

> If there were spaces past the ".dat"
> part it's probably a mistake on the user's part.  Who cares all that
> much if you decode it as "file.dat" or "file.dat  " anyway?  

Users will care if clients fail to decode due to a fluffy standard.
Btw, I noticed you used quotes above to make yourself clear.  

> Personally I'd prefer the first one.

Irrelevant, since personal preference is the opposite of a standard.
 
> In my newsreader I trim leading and trailing whitespace from attachment
> filenames.  If yEncoding gets popular enough for me to support it I'll
> do the same thing there.

Good to hear that many developers plan to support it.

Marcus

-- 
I like you, but I wouldn't want to see you working with sub-atomic 
particles.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads