RE: octet-stream attachment

From: Paul Haldane <>
Date: Fri, 30 Jul 1999 10:35:26 +0100 (GMT)
Message-ID: <>

> > 1222c1222
> > < sscanf(fname, "%128[^\"]", attachname);
> > ---
> > > sscanf(fname, "%128[^\"\n]", attachname);
> >
> > did not do the trick.
> Worked for me - but I was guessing at the format of the name= line.

Thinking about this some more and looking at the relevant RFC (2045, section 5.1) I realise the parsing of the Content-Type line may need to be a bit smarter. At the very least we need to have separate routes to deal with lines that use file="...." and ones that use file=.... as obviously each will have different terminators. If your (Tom) version of hypermail1 does the right thing then maybe we can borrow the appropriate lump of code. Alternatively I've got some stuff hanging around from my hack of Hypermail1 to support attachments.

Received on Fri 30 Jul 1999 11:34:51 AM GMT

This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2007 07:33:51 PM GMT GMT