(#2708) - implement attachment stub length