![]()
From: Paul Haldane (Paul.Haldane@newcastle.ac.uk)
Date: Fri Jul 30 1999 - 04:35:26 CDT
> > 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.
Paul
>
![]()