Sometimes you see following message in gmail:
and you can't download attached file
Follow steps to download file:
1. Open original message as shown in image
let's name it download_original.txt
3. Save following python script in same directory. Let's name it import_file.py
print "Please enter a file to extract attachments from"
msg = email.message_from_file(open(sys.argv))
for pl in msg.get_payload():
if pl.get_filename(): # if it is an attachment
4. Go to Python console
If you are using MAC book or Linux OS - open terminal and type python
python import_file.py download_original.txt
It will download your blocked file in same directory.
Thanks!!! Enjoy Programming :)