-----BEGIN PGP SIGNATURE----- … -----END PGP SIGNATURE-----
instead of the selected attachment. The same happens if you save the attachment instead of piping it. Normally, it should use the attachment contents.
I speculate something must be off with the index of the attachment that is being piped.