Closed Bug 45609 Opened 26 years ago Closed 22 years ago

Apply filter before downloading whole mail

Categories

(MailNews Core :: Filters, enhancement, P5)

enhancement

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 185184
Future

People

(Reporter: Sebastian, Assigned: Bienvenu)

References

Details

Currently all mails are downloaded before the filters are applied to them. But what if I e.g. want to trash messages bigger than 500KB because I use a dialup pop account? It would be great to apply filters to mails before all mail bodies are downloaded to decide whether I want to delete them directly on the server or not.
But some filters test what is inside body....... There should be an option in the filters : "Use this filter before download mail bodies"
This capability may not be available on POP just because of protocol limitations (i.e. you can't just request the headers, you have to request the whole body) ..but IMAP already does this. reassign to bienvenu to see if he has more to say..
Assignee: alecf → bienvenu
I know IMAP does this, but most dialup users are going to use pop servers. I know a whole bunch of mail checking programs that are able to download only headers or the first couple of lines of a mail from a pop server and delete it directly on the server according to certain rules, e.g. does this Freeware program for windows <http://www.idev.ch/minspect/index.htm> claim: -Can connect to any standard POP3 mailbox -Downloads only the headers, not the whole mail -Can deleting mails directly on our mail server without the need to download them (eg. for spam mails) So *it is* somehow possible, I'm not deep into the pop protocol though.
I just had a look at the POP3 specs (RFC1939). "TOP msg n" is considered an optional pop command which server can, but don't have to implement, giving back the header and the first n lines of a certain message. "LIST [msg]" is even a mandatory command, giving back the exact size of a message. So filtering and deleting mails exeeding a certain size directly on the server should be really no problem. Filtering the header can be only done when POP server support the TOP command.
accepting
Status: NEW → ASSIGNED
future per mail triage.
Target Milestone: --- → Future
Priority: P3 → P5
moving to p5 with other rfe's.
QA Contact: lchiang → laurel
Please also include a "Leave message on server"-action, sothat I can leave e.g. my mailing-list-mails on the server (and read it over the web) and only get personal mail to my computer.
filed Bugzilla Bug 74430 Filter Actions: Leave Message On Server, Download Message From Server
Pretty sure this is a dup. Please reopen if it isn't. *** This bug has been marked as a duplicate of 11033 ***
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
reopening, the other bug is about applying filters on mail you already downloaded. This one is applying filters to a mails size and its header *before* downloading the body of a mail.
Ah, now I understand! Sorry...
*** Bug 98955 has been marked as a duplicate of this bug. ***
I don't suppose there is any possibility that this will make it for 1.0 now? :)
we're probably never going to do this, unless someone contributes a fix.
*** Bug 74430 has been marked as a duplicate of this bug. ***
With all these email viruses going around, this would be really useful, if only to save on download time.
Wow! This request has be out here for over 3 years now. Nice to know the developers are listening and responding to their user's needs ;-) I would love to see this feature implemented. Even **** Outlook Express can do this. Looking at its rules creation dialog, the actions available to take include the following: "Do not download it from the server" and "Delete it from server" I've tested these and they work on all three POP3 accounts I use. Mail filters have always been a slightly weak spot for Mozilla Mail, IMHO. With Mozilla's new emphasis as an end user product (as stated after the founding of the Mozilla Foundation) I would think that implementing advanced features like this would be encouraged. I can think of many uses: getting rid of some spam prior to it being downloaded and processed by the Bayesian filters, getting rid of all those time wasting jokes, stories, etc. by not downloading mail with a subject containing "Fw:Fw:Fw:Fw:Fw". Deleting messages from newsletters and mailing lists that refuse to unsubscribe you, no matter how hard you try, etc. If I could code I would, but I only VB6 and not that well. Anyway, I really would like to see this feature implemented.
There is also some XSENDER command. I don't know what it does, and my server doesn't know it, but I see it in the POP3 log... Ok, another suggestion: David, is it possible to stop a download of a message (after you issue RETR)? If yes, we wouldn't need any special command. Just start downloading the message and inspect it as it is comming. If any filter wants to delete it, stop the download and go on the next.
No, the way this would have to work is similar to the way that we implement the option to not download large messages - we use the TOP command to download the first 20 lines and leave a link in the message to download the rest. In fact, you can do this today - just tell mozilla/thunderbird that you don't want to automatically download messages > 500KB. Filters will still run on the partially downloaded message. If we wanted to make it seamless, we'd have an option to always download messages with TOP, run filters, and then do a complete download of the messages that hadn't been deleted by filters. But we wouldn't want to do this by default.
Summary: [RFE] Apply filter before downloading whole mail → Apply filter before downloading whole mail
Bug #185184 is relevant here...
I have a feeling this bug should now be FIXED or RESOLVED due to #185184.
Depends on: 185184
yes, resolving as dup of bug 185184, which is fixed. There could perhaps be a more seemless way of doing this, so that the we wouldn't have to require a manual download step, but many folks would want that manual step anyway... *** This bug has been marked as a duplicate of 185184 ***
Status: REOPENED → RESOLVED
Closed: 25 years ago → 22 years ago
Resolution: --- → DUPLICATE
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.