Project

General

Profile

Feature #2

Download attachments on demand

Added by Vladimir Smolyar about 11 years ago. Updated about 1 month ago.

Status:
In Progress
Priority:
Normal
Category:
-
Target version:
-
Start date:
11/15/2011
Due date:
% Done:

0%

Estimated time:

Description

Hello!
Below follows actually the quote of my message to Sylpheed mailing list which hasn't ever got any response.

I would like to suggest a slightly changed way of e-mails with attachments treatment.
The problems is: it often happens that a person receives an e-mail with some files attached and wants just to read the text message in such letter rather than downloading it with all the files attached. In my case the current Sylpheed behaviour (downloading all the attachments when I click on the message to see the text) is very inconvenient since I have a very slow connection and have to pay for the amount of traffic I used.
It would be very very nice if you introduced an option to download the attachments only on demand. For example, when I click "Save as..." for some of the attached files.
It doesn't seem as a hard-to-implement feature, but it could make life much more comfortable for a lot of people I believe.

Thank you.
Vladimir

#1

Updated by Hiroyuki Yamamoto about 11 years ago

  • Status changed from New to In Progress
  • Assignee set to Hiroyuki Yamamoto

I suppose you mentions IMAP messages.
I will add an option to download only text part and a feature to download attachments
on demand in the future release.

#2

Updated by Andrey Gursky about 10 years ago

Without such a feature it is impossible to use sylpheed on low-bandwidth networks. Assuming sylpheed is a light-weight client, this feature is essential.
It would be excited if you add it!

Thank you,
Andrey

#3

Updated by Genghis Khan over 7 years ago

I use Linux, and when I see a spam message with an .exe file, I know I have nothing to do with it. I would love to just delete such messages without downloading their attachments.

#4

Updated by Andrey Gursky almost 7 years ago

Hiroyuki Yamamoto wrote:

I will add an option to download only text part and a feature to download attachments
on demand in the future release.

Hi,
are you working on it?

Thanks,
Andrey

#5

Updated by Andrey Gursky almost 7 years ago

Few years ago I gave up with sylpheed. Now the question is again to give up or not to give up. I would switch to claws-mail, but they have the same problem [1], though recently one figured out, that libetpan supports this already, but not claws-mail itself. Would it be easier to integrate it there? Or should I give a chance trojita. Maybe it supports this out-of-the-box...

Ok, I've looked into the code. And I would propose the following:
- In imap_get_uncached_messages / imap_get_uncached_messages_func (libsylph/imap.c) fetch also BODYSTRUCTURE. This gives us full information of mail parts (and attachments' filenames). The headers should be written to the cache file.
- In imap_cmd_fetch (libsylph/imap.c) fetch not BODY.PEEK[] but BODY.PEEK[#num1.#num2], where #num1 and so on are the IDs from BODYSTRUCTURE, which are either text/plain or text/html. Append the result to the cache (the headers are already there).
- Once user clicks on the attachment and it is not yet in the cache, a question should arise to confirm the downloads. This part will be fetched, the content of the saved cached loaded and parsed and the content of the attachment should be inserted in the raw message, as it would be downloaded as whole. Then save the cache file. Ideally, once user downloads all attachments, the cache file should look exactly as it is now.

I see plugin/attachment_tool/attachment_tool.c can already manipulate the cache file. Perhaps it could be extended with additional "add" operation?

[1] http://www.thewildbeast.co.uk/sylpheed-claws/bugzilla/show_bug.cgi?id=2035

#6

Updated by Andrey Gursky about 6 years ago

Meanwhile I've implemented a hack to fix this: for now without dealing with BODYSTRUCTURE. There are 2 known issues:
  1. Messages consisting of only attachments without text BODY at all will be downloaded.
  2. MS Exchange IMAP Server seems to not support BODY.PEEK[1.HEADER], I need due to multipart messages. Any clue, is it a bug or there is better replacement?

If you have suggestion, where to place an option for enable/disable attachment downloading, which can be accessed in imap.c, I would add it.

#7

Updated by Andrey Gursky about 6 years ago

Updated URL of the corresponding bug report for Claws Mail: http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=2035 (don't download attachments when opening mail for reading)

#8

Updated by Andrey Gursky about 6 years ago

The option to enable/disable attachments download would be only useful, if we add a function to redownload a selected message. Once only text part has been saved, Sylpheed treats this email as downloaded. When you decide you want also attachments, you'd need to enable attachments download and force Sylpheed to redownload the message.

#9

Updated by replica watches 9 months ago

https://www.bestwatchaaa.com/Corum-replica.html https://www.luxuryshopwatch.com/ https://www.bestwatchaaa.com/Panerai-replica.html https://www.bestwatchss.com/Breitling-Replica-Watches.html began https://www.replicawatchsshop.cc/TAG-Heuer-Replica.html the https://www.bestwatchaaa.com/Porsche-Design-replica.html watchmaker Maurice Barouh in the 1940s, https://www.hotwatchsreplica.com/patek-philipe.html https://www.bestwatchss.com/Montblanc-Replica-Watches.html and https://www.replicawatchsshop.cc/Jaeger-LeCoultre-Replica.html attention https://www.hotwatchsreplica.com/Breguet.html https://www.hotwatchsreplica.com/Alain-Silberstein.html https://www.hotwatchsreplica.com/tudor.html https://www.bestwatchss.com/Patek-Philippe-Replica-Watches.html http://www.classicwatchess.com/ unique https://www.replicawatchsshop.cc/ Replica https://www.shopwatchus.com/ Watches are https://www.bestwatchss.com/Omega-Replica-Watches.html https://www.allswisswatchs.com/ designed https://www.swisswatchesale.com/ https://www.bestwatchaaa.com/Blancpain-replica.html https://www.bestwatchss.com/Zenith-Replica-Watches.html customer https://www.bestwatchaaa.com/Raymond-Weil-replica.html https://www.replicawatchsshop.cc/Michele-Replica.html https://www.replicawatchsshop.cc/Hublot-Replica.html particular attitude and https://www.hotwatchsreplica.com/Tag-Heuer.html The internationally designed watches https://www.bestwatchaaa.com/ https://www.bestwatchaaa.com/Breitling-replica.html https://www.hotwatchsreplica.com/U-Boat.html https://www.replicawatchsshop.cc/Tudor-Replica.html and https://www.hotwatchsreplica.com/Maurice-Lacroix.html https://www.replicawatchsshop.cc/IWC-Replica.html https://www.bestwatchaaa.com/Chopard-replica.html https://www.hotwatchsreplica.com/Chronoswiss.html looking for https://www.bestwatchaaa.com/Seiko-replica.html https://www.hotwatchsreplica.com/ https://www.bestwatchaaa.com/Oris-replica.html and elegant https://www.bestwatchaaa.com/Baume-Mercier-replica.html to https://www.perfectwatchen.com/ to work https://www.bestwatchss.com/ https://www.replicawatchsshop.cc/Cartier-Replica.html casual https://www.allwatchesen.com/ sporty watch https://www.replicawatchsshop.cc/Piaget-Replica.html wear around https://www.hotwatchsreplica.com/A.Lange-Sohne.html <STRONG>Fake Michele Watches</STRONG> have what https://www.bestwatchaaa.com/Ebel-replica.html are https://www.bestwatchaaa.com/Alain-Silberstein-replica.html https://www.bestwatchss.com/Vacheron-Constantin-Replica-Watches.html for.</p>

#11

Updated by seo mind 2 months ago

This is an excellent post I seen thanks to share it. It is really what I wanted to see hope in future you will continue for sharing such a excellent post. OPM Wealth

#12

Updated by seo mind 2 months ago

Here at this site really the fastidious material collection so that everybody can enjoy a lot. OPM Wealth

#13

Updated by seo mind 2 months ago

I want you to thank for your time of this wonderful read!!! I definately enjoy every little bit of it and I have you bookmarked to check out new stuff of your blog a must read blog! Data Dollars Pro

#14

Updated by seo mind 2 months ago

so happy to find good place to many here in the post, the writing is just great, thanks for the post. Primerica Pyramid Scheme

#15

Updated by seo mind 2 months ago

I would like to say that this blog really convinced me to do it! Thanks, very good post. Data Dollars Pro

#16

Updated by seo mind 2 months ago

This is a fantastic website , thanks for sharing. Data Dollars Pro

#17

Updated by seo mind 2 months ago

Personally I think overjoyed I discovered the blogs. Primerica Pyramid Scheme

#18

Updated by seo mind 2 months ago

I recently found many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing. My Traffic Business Review

#19

Updated by seo mind 2 months ago

This was incredibly an exquisite implementation of your ideas My Traffic Business Review

#20

Updated by seo mind 2 months ago

If you don"t mind proceed with this extraordinary work and I anticipate a greater amount of your magnificent blog entries My Traffic Business Review

#21

Updated by UMAR KHAN about 1 month ago

I truly adored reading your posting. FBISD Skyward

Also available in: Atom PDF