Alot of people re-attach that with 3-m weatherstrip adhesive,or similar.
If youre really getting into the details, you can pull out the old,rusted staples and make new ones from some wire and "staple" it back into place.
Or,,,very small,,real small sheet metal screws.
Good Luck,