From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68626 Path: news.gmane.org!not-for-mail From: ding_gnus.org@sumou.com Newsgroups: gmane.emacs.gnus.general Subject: Using cache to read IMAP mail offline, with proper deletion of Spam Date: Tue, 23 Jun 2009 13:17:42 +0400 Message-ID: <87k533pavd.fsf@porzhiz.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1245748730 11885 80.91.229.12 (23 Jun 2009 09:18:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Jun 2009 09:18:50 +0000 (UTC) To: ding@lists.math.uh.edu Original-X-From: ding-owner+M17053@lists.math.uh.edu Tue Jun 23 11:18:48 2009 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1MJ29L-0006h8-Lk for ding-account@gmane.org; Tue, 23 Jun 2009 11:18:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1MJ28c-00040l-UN; Tue, 23 Jun 2009 04:17:58 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1MJ28b-00040b-Cc for ding@lists.math.uh.edu; Tue, 23 Jun 2009 04:17:57 -0500 Original-Received: from manon.vellum.cz ([89.250.243.243]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1MJ28V-0006rg-1F for ding@lists.math.uh.edu; Tue, 23 Jun 2009 04:17:57 -0500 Original-Received: from skmbp52 ([85.90.127.118]) (authenticated bits=0) by manon.vellum.cz (8.14.3/8.14.3) with ESMTP id n5N9HgFe001314 for ; Tue, 23 Jun 2009 11:17:43 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-Spam-Status: No, score=-2.5 required=4.1 tests=BAYES_00,RDNS_NONE autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on manon.vellum.cz X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68626 Archived-At: Hello: I've been searching and experimenting very hard, however not with 100% results, perhaps someone can help me. What I want to do: 1. Use Gnus to access my mail via IMAP. 2. Store every read message in the cache, so that when I'm offline I can reread it. 3. Purge all deleted messages properly. It's the third part that I cannot get to work properly, requiring cumbersome deletion. I have the following .emacs settings, relevant to the above points: (setq gnus-select-method '(nnimap "SERVER.ADDRESS" (nnimap-address "SERVER.ADDRESS") ) ) (setq gnus-use-cache t) (setq gnus-cache-enter-articles '(read ticked dormant)) (setq gnus-cache-remove-articles '(unread)) The above sets the cache, so that emails that I read when online get downloaded and don't have to be redownloaded the next time I access mail, allowing for offline reading when not online. The ones that are for instance read, and seen as spam, are then marked unread, and should exit the cache because of the last line above. What this results in. To delete files also from the server, so that they are not kept in the cache and stick around forever, I have to follow the following steps: 1. Read the emails. 2. Mark them as expirable with `E'. 3. Delete all expired items with `B M-C-E'. 4. Exit the Summary Buffer to the Group Buffer with `q'. 5. Enter the mailbox again. 6. Display all the mails with `/ o' to display also the read emails, this will display also the expired/deleted items, which have still been kept in the cache. 7. Read each of the emails and mark it unread with `M-u'. 8. Exit the Summary Buffer to the Group Buffer with `q' again. 9. Update the Group Buffer with `g'. This then, and only this, deletes the expired/deleted emails and remove them from the local cache. The items will be deleted from the IMAP server and locally, thus disappear everywhere. It's an uncomfortable hack, but I've found no better way so far to be able to utilize the cache, so big mails don't have to be redownloaded upon every reconnect. How I can I set it, so that when mails are marked as expirable with `E' and then expundeg with `B M-C-E' they don't stick around and have to be opened and un-read, but are deleted? Does anyone know? Thank you. ShiroiKuma