I think it's there because unknown fields are added there and they
should be prevented looking like real fields, they should be a clear
part of the `Unformatted' field.
YS> By doing the following to addLineToPR in pr.c (basically
YS> commenting out the space-adding code) and rebuilding gnatsd,
YS> attachment handling worked again:
I don't think doing this is a good idea.
YS> The easiest way to fix Gnatsweb would be to remove this code
YS> from pr.c. Working around it in Gnatsweb would take a bit of
YS> coding and very likely affect performance a lot.
As it was already suggested, it's likely that attachements will be
handled in a special way in GNATS 4.x. As for GNATS 4.0, I think
Gnatsweb should be fixed. I don't know anything about the attachement
handling in Gnatsweb, but I think it's not a good ideat to store them in
the `Unformatted' field. I'd suggest considering to require having the
`Attachement' field in `dbconfig' (I might add it to the default
`dbconfig' if it proves useful).