I’m trying to move my big mails from Gmail to a Google Site with a Google Apps Script. The script runs without problem but when the attachment size exeeds 10Mo an error occured :
“Server error, please try again later…”
var att = ms[m].getAttachments();
for (var a=0; a<att.length; a++){
tab[3][m][5][a] = att[a].copyBlob();
...
}
...
var atttach = post.addHostedAttachment(tab[3][i][5][b]);
...
It seems that their is a blob size limit in Apps Script as 10 MB. Probably that is causing the error.
Check the discussion in Issue Tracker where Evin Levey says
http://code.google.com/p/google-apps-script-issues/issues/detail?id=552