My daily backup script had to be changed to create base64 file instead of regular .tar.gz
a while ago:
Filename64="$Filename".64
cat "$Filename" | base64 > "$Filename64"
echo -e "to: $EmailAddr\nsubject: $Filename64\n" | \
(cat - && uuencode "$Filename64" "$Filename64") | ssmtp "$EmailAddr"
Recently I needed to recover a file from the daily backup. I was surprised to discover gmail automatically creates a second attachment 6MB larger in .com
format (apparently). This second unwnanted attachment is called noname
:
1). How can I prevent noname
creation?
2). If creation unpreventable, How can I delete them en masse with gmail api?