context refactoring: fix the handling of attachments, which was broken by the recent serie of changes.
Authored by: cboos 2007-10-18
Parent: [r6067]
Child: [r6069]