Re: [PATCH] org-attach: Attach current Gnus article parts

2022-05-08 Thread Juan Manuel Macías
Ihor Radchenko writes: > I think that a good example implementation is from notmuch.el. It does > not use anything specific to notmuch, just built-in mm-*.el from gnus: Thanks for the tip, Ihor. I'll take a look at it, and see if I can sketch something usable... Best regards, Juan Manuel

Re: [PATCH] org-attach: Attach current Gnus article parts

2022-05-08 Thread Ihor Radchenko
Juan Manuel Macías writes: > What I don't quite understand is why it wouldn't be appropriate to add a > new entry with the new feature to the org-attach menu. Thinking about it more, new feature in org-attach menu should actually be ok. My initial logic was that we cannot easily select attach m

Re: [PATCH] org-attach: Attach current Gnus article parts

2022-05-08 Thread Juan Manuel Macías
Ihor Radchenko writes: > I think that supporting only Gnus is too specific. Not all the people > use Gnus as mail reader. And the extra menu option you propose will only > eat up space for people not using Gnus. > > I'd prefer a more generic approach working in any kind of email reader, > be it rm

Re: [PATCH] org-attach: Attach current Gnus article parts

2022-05-08 Thread Ihor Radchenko
Juan Manuel Macías writes: > In the attached patch I add a new command for org-attach: save *all* > attachments from the current Gnus article to the current org-attach-dir. > > (Sorry for repeating the word "attach" so much :-)) > > NB: > > 1. If no Gnus article is open, it returns an error messa

[PATCH] org-attach: Attach current Gnus article parts

2022-05-07 Thread Juan Manuel Macías
Hi all, In the attached patch I add a new command for org-attach: save *all* attachments from the current Gnus article to the current org-attach-dir. (Sorry for repeating the word "attach" so much :-)) NB: 1. If no Gnus article is open, it returns an error message. 2. I've only tested it on Em