powered by
This is a low level function that only works on attachments retrieved with gm_attachment(). To save an attachment directly from a message see gm_save_attachments(), which is a higher level interface more suitable for most uses.
gm_attachment()
gm_save_attachments()
gm_save_attachment(x, filename)
attachment to save
location to save to
Other message: gm_attachment(), gm_delete_message(), gm_import_message(), gm_insert_message(), gm_messages(), gm_message(), gm_modify_message(), gm_save_attachments(), gm_send_message(), gm_trash_message(), gm_untrash_message()
gm_delete_message()
gm_import_message()
gm_insert_message()
gm_messages()
gm_message()
gm_modify_message()
gm_send_message()
gm_trash_message()
gm_untrash_message()
if (FALSE) { my_attachment = attachment('a32e324b', '12345') # save attachment to a file save_attachment(my_attachment, 'photo.jpg') }
Run the code above in your browser using DataLab