Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Bob Newell <bobnewell@bobnewell.net>
To: info-gnus-english <info-gnus-english@gnu.org>
Subject: Re: Problem splitting (nnimap-inbox "[Gmail]/Alle Nachrichten")
Date: Thu, 21 Jan 2021 10:20:24 -1000	[thread overview]
Message-ID: <87v9bqoxdj.fsf@emailmessageidheader.nil> (raw)
In-Reply-To: <87h7nazqob.fsf@googlemail.com> (physiculus@gmail.com's message of "Thu, 21 Jan 2021 08:37:24 +0100")


>> I don't do splitting but I do use the following to delete Gmail
>>
>> (gnus-summary-move-article nil "nnimap+imap.gmail.com:[Gmail]/Trash" nil)
> Hello,
> unfortunately i dont understand.
> Is it an configure option an your .gnus file?
> Or a split line?
> Could you please describe a little bit more.

I wrap this line of code in a little function to delete
(actually move Trash) a mail item. The item deleted is either
the one point is on in the Summary Buffer (which must be the
current buffer) or, if the Summary Buffer has items processed
marked, it trashes all of the marked ones.

It's not a split line. I don't split in Gnus. In my workflow,
there's no reason for me not to let Gmail apply labels and
avoid the overhead of splitting in Gnus, although then I do
add the overhead of using IMAP to fetch multiple Gmail groups.

However if you want to split and then delete all your Inbox in
Gmail, there should be some sort of hook to call a function
after splitting (I don't offhand know what it is as once
again, I don't split in Gnus).

Here is my full function for deleting EVERYTHING from a
Summary Buffer. If you bring up the Gmail Inbox in a Summary
Buffer, you can move it all to Trash. This will get it out of
All Mail. (This could be dangerous! I have a confirmation,
which you would want to remove if you fully automate this.)

In summary:

1. Do your split (to non-Gmail groups).
2. Bring up Gmail INBOX in a Summary Buffer.
3. Call this function.

(Note: I am not responsible for lost information, use at your
own risk!)

;;; Trash all.
    (defun rjn-gnus-trash-all () (interactive)
      (if (yes-or-no-p "Really trash everything")
	   (if (eq major-mode 'gnus-summary-mode)
	  (progn
	    (setq-local gnus-show-threads nil)
	    (gnus-uu-mark-buffer)
         (gnus-summary-move-article nil "nnimap+imap.gmail.com:[Gmail]/Trash" nil))
	(message "Must be in summary buffer"))))

-- 
Bob Newell
Honolulu, Hawai`i

- Via GNU/Linux/Emacs/Gnus/BBDB

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

  reply	other threads:[~2021-01-21 20:20 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-16 18:51 physiculus
2021-01-16 20:54 ` Eric Abrahamsen
2021-01-17 14:17   ` physiculus
2021-01-18  4:53     ` Bob Newell
2021-01-18 13:42       ` Lars-Johan Liman
2021-01-18 18:17         ` Bob Newell
2021-01-19  9:24           ` Lars-Johan Liman
2021-01-19 18:46             ` Jeffrey DeLeo
2021-01-20 20:06               ` Bob Newell
2021-01-21  7:37                 ` physiculus
2021-01-21 20:20                   ` Bob Newell [this message]
2021-01-21 11:43               ` Lars-Johan Liman
2021-01-21 21:43                 ` Jeffrey DeLeo
2021-01-22  2:43                   ` Bob Newell
2021-01-19  9:43         ` physiculus
2021-01-19 10:52           ` Lars-Johan Liman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v9bqoxdj.fsf@emailmessageidheader.nil \
    --to=bobnewell@bobnewell.net \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).