[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnorb e4ab4d5 122/449: Finer control over how attachmen
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnorb e4ab4d5 122/449: Finer control over how attachments are saved |
Date: |
Fri, 27 Nov 2020 23:15:22 -0500 (EST) |
branch: externals/gnorb
commit e4ab4d55ea82d58c9cbc124e0f644e1c3218a6e7
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>
Finer control over how attachments are saved
lisp/gnorb-gnus.el: (gnorb-gnus-collect-all-attachments) New extra
argument allows more control over when we save
attachment filenames into
`gnorb-gnus-capture-attachments' and when we don't.
We don't only save during capture, but also on
triggering incoming messages.
---
lisp/gnorb-gnus.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/gnorb-gnus.el b/lisp/gnorb-gnus.el
index ca738af..d0c6f99 100644
--- a/lisp/gnorb-gnus.el
+++ b/lisp/gnorb-gnus.el
@@ -163,7 +163,7 @@ Basically behave as if all attachments have
\":gnus-attachments t\"."
(mm-save-part-to-file handle filename)
filename))
-(defun gnorb-gnus-collect-all-attachments (&optional capture-p)
+(defun gnorb-gnus-collect-all-attachments (&optional capture-p store)
"Collect all the attachments from the message under point, and
save them into `gnorb-tmp-dir'."
(save-window-excursion
@@ -187,7 +187,7 @@ save them into `gnorb-tmp-dir'."
(dolist (h mime-handles)
(let ((filename
(gnorb-gnus-save-part (cdr h))))
- (when capture-p
+ (when (or capture-p store)
(push filename gnorb-gnus-capture-attachments))))))))
;;; Make the above work in the capture process
- [elpa] externals/gnorb 78e1e2b 090/449: Use custom refile targets in re-attaching files, (continued)
- [elpa] externals/gnorb 78e1e2b 090/449: Use custom refile targets in re-attaching files, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 7950d3a 091/449: Comment and indentation changes only, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb f5d451e 092/449: New nngnorb mail backend, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb e62587f 095/449: Yeesh, assigning to global variable by accident, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 8fef972 097/449: Gnorb nnir engine doesn't take extra criteria, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 7f67221 098/449: Allow for more "query" types in nnir-run-gnorb, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb d394ed3 099/449: Let nnir-run-gnorb handle gnus version 5.13, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb e3db6ae 111/449: Return visit candidates correctly., Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 4a845bd 116/449: Who knew there's actually a version= function?, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 85797d0 120/449: Be more careful about what MIME parts we attach, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb e4ab4d5 122/449: Finer control over how attachments are saved,
Stefan Monnier <=
- [elpa] externals/gnorb 5d20bb5 125/449: Clean up saved sent-message info, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 908cdee 107/449: Slight improvement to point placement in new messages, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb a083a99 114/449: First draft: BBDB field for saving links to messages, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb e33a758 127/449: Clearer docstring, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb f3f3bf2 128/449: Fix Agenda BBDB popup for searches with no tags, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 7e9235f 138/449: First highly ugly version of gnorb-gnus-view, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb a51a99d 142/449: Speedier display of messages in nnir search, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 0b7c640 074/449: Make use of the multivalued property functions, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb f3e56d2 042/449: gnorb-org-mail-todos -- new docstring and default, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 8f598e1 044/449: Delete previous commented function, Stefan Monnier, 2020/11/27