Copy and paste
Hey little simpler one depending on zlib, it also works a bit faster, and shows all items sent.
import <zlib.ash>
int[item] to_send;
int attachments = 0;
void main(string player) {
foreach it in $items[]{
if(item_amount(it)>0) {
if (is_tradeable(it) || is_giftable(it)){...