From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86998 Path: news.gmane.org!not-for-mail From: Jason Vas Dias Newsgroups: gmane.emacs.gnus.general Subject: Re: 'initial sync of N groups' - for over an hour ! Date: Sat, 16 Apr 2016 05:02:04 +0100 Message-ID: References: <877ffys577.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1460779404 2717 80.91.229.3 (16 Apr 2016 04:03:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Apr 2016 04:03:24 +0000 (UTC) Cc: ding@gnus.org To: Eric Abrahamsen Original-X-From: ding-owner+M35219@lists.math.uh.edu Sat Apr 16 06:03:13 2016 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1arHRx-00016x-6o for ding-account@gmane.org; Sat, 16 Apr 2016 06:03:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.86_2) (envelope-from ) id 1arHRC-0002kw-V4; Fri, 15 Apr 2016 23:02:27 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86_2) (envelope-from ) id 1arHR9-0002jv-11 for ding@lists.math.uh.edu; Fri, 15 Apr 2016 23:02:23 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86_2) (envelope-from ) id 1arHQy-0007cc-3s for ding@lists.math.uh.edu; Fri, 15 Apr 2016 23:02:22 -0500 Original-Received: from mail-wm0-f48.google.com ([74.125.82.48]) by quimby.gnus.org with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from ) id 1arHQw-0006Fk-Ey for ding@gnus.org; Sat, 16 Apr 2016 06:02:10 +0200 Original-Received: by mail-wm0-f48.google.com with SMTP id u206so55679257wme.1 for ; Fri, 15 Apr 2016 21:02:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=JH6IN1yzMkKvxc3UPf5P437B/YKHIyM8S0jYsVLO7Go=; b=a22uaMyqtvz9YjceLUj9lTzOwK1kkWDBXxmyyOhq/PeZN7Lf1FNX4jNvUVvO3Z7TOs vkwDnYTy7KQ8jJY8yt4Hu739VqRcr/bn/z2tF44UxEiyKqZcMm0X0/Q/vh+MlIsi90Yh DIIh/ayLetZzgiYGlbMf94yMHzDsgL5dlVOTa0cpgOt0jpSXyB2W/T2euyCJICAhMuuo jZFlnKQ0MK9xdHVGtuu0UYNTbco5uJzWFJOWGwm8S3sg29hggYbwe0XZ6dCKOlfzPGIo ybtQ4+yIGxPo9FIh0v4MyK3KF53TGDukaXsjEZ5/seEdIPdmxJKkF3+Nc/dVHd8d7rTd rMyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=JH6IN1yzMkKvxc3UPf5P437B/YKHIyM8S0jYsVLO7Go=; b=QBrRjC25GDjoS9GDpf0SjuoUm9KwQEShM1PoybpzDFwwiudKBLPS6Lm4XQ26VtcDQj G4b69UVW8tWYVcWzt6vS0HGGO3SKHEpkY+I1wIhWE155vHm3IsAmCk78el0vkW5ylIgz 9KUw0qSESO5eCxw9gI66NRySvQPXmTBDk42pJrIKPyRBmV3Vc3Re1Yp5BS+MGETtpZTs jPWUhDIegV7VNe8jkwIr5vSXVtw4q75rOVvCt1cAqCDnt3hwh3UdKLh4jpGjxoULEgbR 0R3fEHaUo3d/UvR+rxElmXY0PCyH/TsDQpIem9gPcAMLokM1ozthCNnFPvjCjAXnU0UU Qtbg== X-Gm-Message-State: AOPr4FXrNzrhOdQjc+jNSe7URtnUj56iapsNRgKUsZvZ5y2W9RtJxPm9dnyswWgnKzDNGrmugI+ELKO5m3jx8g== X-Received: by 10.194.109.36 with SMTP id hp4mr24440793wjb.117.1460779324581; Fri, 15 Apr 2016 21:02:04 -0700 (PDT) Original-Received: by 10.28.234.70 with HTTP; Fri, 15 Apr 2016 21:02:04 -0700 (PDT) In-Reply-To: <877ffys577.fsf@ericabrahamsen.net> X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86998 Archived-At: Many thanks for your most informative response, Eric! RE: the TLS stuff : Dave Goldberg replied : >Dave Goldberg wrote, on 16 April 2016 at 03:29 >To: ding@gnus.org >This has nothing to do with encryption. When using Gnus you're talking to > gmail over IMAP and in that case, Google doesn't (maybe can't?) impose its > authentication scheme to authenticate the client as it does when you connect > over https. RE: > I think an Elisp trace will probably be more useful than a gdb trace. Here is one, generated as you described :
Debugger entered: ("Quit")
  byte-code(\20\302\303!\210\304        !\210\305\207" [debug-on-quit
process debug "Quit" delete-process nil] 2)
  nnimap-wait-for-response(136 t)
  nnimap-finish-retrieve-group-infos("Gmail" (("[Gmail]/Bin" 3 nil)
("GII" 3 nil) ("Apache" 3 nil) ("info@metallisation.com" 3 nil)
("[Gmail]/Starred" 3 nil) ("[Gmail]/Important" 3 nil)
("[Gmail]/Drafts" 3 nil) ("Xen" 3 nil) ("Travel" 3 nil) ("Ruby" 3 nil)
("Receipts" 3 nil) ("Net Filter" 3 nil) ("LUG" 3 nil) ("Kernel" 3 nil)
("Bash" 3 nil) ("libvirt" 3 nil) ("libc" 3 nil) ("[Gmail]/Spam" 3 nil)
("[Gmail]/Sent Mail" 3 nil) ("[Gmail]" 3 nil) ("Work" 3 nil)
("WWW-Validator" 3 nil) ("VMware" 3 nil) ("To Jason" 3 nil)
("Personal" 3 nil) ("PERL" 3 nil) ("Jobs" 3 nil) ("INBOX" 3 nil)
("GCC" 3 nil) ("3jam" 3 nil) ("summit" 3 nil) ("[Gmail]/All Mail" 3
nil) ("Sent" 3 nil)) ((135 136 1 "Sent" "SELECT") (133 134 1
"[Gmail]/All Mail" "SELECT") (131 132 1 "summit" "SELECT") (129 130 1
"3jam" "SELECT") (127 128 1 "GCC" "SELECT") (125 126 1 "INBOX"
"SELECT") (123 124 1 "Jobs" "SELECT") (121 122 1 "PERL" "SELECT") (119
120 1 "Personal" "SELECT") (117 118 1 "To Jason" "SELECT") (115 116 1
"VMware" "SELECT") (113 114 1 "WWW-Validator" "SELECT") (111 112 1
"Work" "SELECT") (109 110 1 "[Gmail]" "SELECT") (107 108 1
"[Gmail]/Sent Mail" "SELECT") (105 106 1 "[Gmail]/Spam" "SELECT") (103
104 1 "libc" "SELECT") (101 102 1 "libvirt" "SELECT") (99 100 1 "Bash"
"SELECT") (97 98 1 "Kernel" "SELECT") (95 96 1 "LUG" "SELECT") (93 94
1 "Net Filter" "SELECT") (91 92 1 "Receipts" "SELECT") (89 90 1 "Ruby"
"SELECT") (87 88 1 "Travel" "SELECT") (85 86 1 "Xen" "SELECT") (83 84
1 "[Gmail]/Drafts" "SELECT") (81 82 1 "[Gmail]/Important" "SELECT")
(79 80 1 "[Gmail]/Starred" "SELECT") (77 78 1 "info@metallisation.com"
"SELECT") (75 76 1 "Apache" "SELECT") (73 74 1 "GII" "SELECT") (71 72
1 "[Gmail]/Bin" "SELECT")))
  gnus-finish-retrieve-group-infos((nnimap "Gmail" (nnimap-address
"imap.gmail.com") (nnimap-server-port "993") (nnimap-inbox "INBOX")
(nnimap-stream ssl)) (("[Gmail]/Bin" 3 nil) ("GII" 3 nil) ("Apache" 3
nil) ("info@metallisation.com" 3 nil) ("[Gmail]/Starred" 3 nil)
("[Gmail]/Important" 3 nil) ("[Gmail]/Drafts" 3 nil) ("Xen" 3 nil)
("Travel" 3 nil) ("Ruby" 3 nil) ("Receipts" 3 nil) ("Net Filter" 3
nil) ("LUG" 3 nil) ("Kernel" 3 nil) ("Bash" 3 nil) ("libvirt" 3 nil)
("libc" 3 nil) ("[Gmail]/Spam" 3 nil) ("[Gmail]/Sent Mail" 3 nil)
("[Gmail]" 3 nil) ("Work" 3 nil) ("WWW-Validator" 3 nil) ("VMware" 3
nil) ("To Jason" 3 nil) ("Personal" 3 nil) ("PERL" 3 nil) ("Jobs" 3
nil) ("INBOX" 3 nil) ("GCC" 3 nil) ("3jam" 3 nil) ("summit" 3 nil)
("[Gmail]/All Mail" 3 nil) ("Sent" 3 nil)) ((135 136 1 "Sent"
"SELECT") (133 134 1 "[Gmail]/All Mail" "SELECT") (131 132 1 "summit"
"SELECT") (129 130 1 "3jam" "SELECT") (127 128 1 "GCC" "SELECT") (125
126 1 "INBOX" "SELECT") (123 124 1 "Jobs" "SELECT") (121 122 1 "PERL"
"SELECT") (119 120 1 "Personal" "SELECT") (117 118 1 "To Jason"
"SELECT") (115 116 1 "VMware" "SELECT") (113 114 1 "WWW-Validator"
"SELECT") (111 112 1 "Work" "SELECT") (109 110 1 "[Gmail]" "SELECT")
(107 108 1 "[Gmail]/Sent Mail" "SELECT") (105 106 1 "[Gmail]/Spam"
"SELECT") (103 104 1 "libc" "SELECT") (101 102 1 "libvirt" "SELECT")
(99 100 1 "Bash" "SELECT") (97 98 1 "Kernel" "SELECT") (95 96 1 "LUG"
"SELECT") (93 94 1 "Net Filter" "SELECT") (91 92 1 "Receipts"
"SELECT") (89 90 1 "Ruby" "SELECT") (87 88 1 "Travel" "SELECT") (85 86
1 "Xen" "SELECT") (83 84 1 "[Gmail]/Drafts" "SELECT") (81 82 1
"[Gmail]/Important" "SELECT") (79 80 1 "[Gmail]/Starred" "SELECT") (77
78 1 "info@metallisation.com" "SELECT") (75 76 1 "Apache" "SELECT")
(73 74 1 "GII" "SELECT") (71 72 1 "[Gmail]/Bin" "SELECT")))
  gnus-read-active-for-groups((nnimap "Gmail" (nnimap-address
"imap.gmail.com") (nnimap-server-port "993") (nnimap-inbox "INBOX")
(nnimap-stream ssl)) (("[Gmail]/Bin" 3 nil) ("GII" 3 nil) ("Apache" 3
nil) ("info@metallisation.com" 3 nil) ("[Gmail]/Starred" 3 nil)
("[Gmail]/Important" 3 nil) ("[Gmail]/Drafts" 3 nil) ("Xen" 3 nil)
("Travel" 3 nil) ("Ruby" 3 nil) ("Receipts" 3 nil) ("Net Filter" 3
nil) ("LUG" 3 nil) ("Kernel" 3 nil) ("Bash" 3 nil) ("libvirt" 3 nil)
("libc" 3 nil) ("[Gmail]/Spam" 3 nil) ("[Gmail]/Sent Mail" 3 nil)
("[Gmail]" 3 nil) ("Work" 3 nil) ("WWW-Validator" 3 nil) ("VMware" 3
nil) ("To Jason" 3 nil) ("Personal" 3 nil) ("PERL" 3 nil) ("Jobs" 3
nil) ("INBOX" 3 nil) ("GCC" 3 nil) ("3jam" 3 nil) ("summit" 3 nil)
("[Gmail]/All Mail" 3 nil) ("Sent" 3 nil)) ((135 136 1 "Sent"
"SELECT") (133 134 1 "[Gmail]/All Mail" "SELECT") (131 132 1 "summit"
"SELECT") (129 130 1 "3jam" "SELECT") (127 128 1 "GCC" "SELECT") (125
126 1 "INBOX" "SELECT") (123 124 1 "Jobs" "SELECT") (121 122 1 "PERL"
"SELECT") (119 120 1 "Personal" "SELECT") (117 118 1 "To Jason"
"SELECT") (115 116 1 "VMware" "SELECT") (113 114 1 "WWW-Validator"
"SELECT") (111 112 1 "Work" "SELECT") (109 110 1 "[Gmail]" "SELECT")
(107 108 1 "[Gmail]/Sent Mail" "SELECT") (105 106 1 "[Gmail]/Spam"
"SELECT") (103 104 1 "libc" "SELECT") (101 102 1 "libvirt" "SELECT")
(99 100 1 "Bash" "SELECT") (97 98 1 "Kernel" "SELECT") (95 96 1 "LUG"
"SELECT") (93 94 1 "Net Filter" "SELECT") (91 92 1 "Receipts"
"SELECT") (89 90 1 "Ruby" "SELECT") (87 88 1 "Travel" "SELECT") (85 86
1 "Xen" "SELECT") (83 84 1 "[Gmail]/Drafts" "SELECT") (81 82 1
"[Gmail]/Important" "SELECT") (79 80 1 "[Gmail]/Starred" "SELECT") (77
78 1 "info@metallisation.com" "SELECT") (75 76 1 "Apache" "SELECT")
(73 74 1 "GII" "SELECT") (71 72 1 "[Gmail]/Bin" "SELECT")))
  gnus-get-unread-articles(nil nil nil)
  gnus-group-get-new-news(nil)
  gnus-1(nil nil nil)
  gnus(nil)
  call-interactively(gnus record nil)
  command-execute(gnus record)
  execute-extended-command(nil "gnus")
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)
Because of MA GNUS's inability to get past the 'Initial Sync' of my mailbox, and no other mailer is ( I've tried KMail, Evolution ...), I am now writing a simple Qt-Quick / QML generator of a C++ GUI to drive PERL Net::IMAP::Client to retrieve IMAP message data, and which is fully cognizant of the fact that it can only display about N=20 message headers at a time (dependant on window size & font size) , and allows me to : A) Select which Gmail folder to view; B) Allows me to specify IMAP 'SEARCH' command criteria, like : 'SENTSINCE 16-Apr-2016', and / or 'SENDER x@y' . C) Downloads and displays only the top N message envelopes that match the criteria, sorted by date, newest first ; D) If the user selects an envelope display, the message is downloaded into a temporary file and loaded into emacs with emacsclient ; E) If the user saves the file rather than quitting the buffer, it is taken to be a reply . F) Handles & keys to display the previous / next set of N messages . I can use mailx / gnus to send non-reply mail , and maybe work in support for mail buffer display with GNUS ... It would be really nice if GNUS would just work on displaying the top N messages at a time in the selected group, and let us specify IMAP SEARCH criteria . Thanks & Regards, Jason On 16/04/2016, Eric Abrahamsen wrote: > Jason Vas Dias writes: > >> Please, is there any way to disable the 'initial sync' of groups with MA >> GNUS ? > > You'll need to sync them if you're going to read them! No, there's no > way around doing this, but it will only happen once per group. > >> I just built a fresh copy of Emacs 24.5 and tried out GNUS on my main >> GMAIL >> account for the first time, having previously used it for my corporate >> account >> and liked it . >> >> BTW, I didn't like having to enable access by 'Less Secure Apps' in >> GMail Settings ! : >> https://support.google.com/accounts/answer/6010255 >> What can I do to get google to think MA GNUS is secure ? Is SSL / TLS >> / STARTTLS not enough ? I have tried them all, and both the 'login' >> and >> 'cram-md5' authentication methods. > > I can't help with the TLS stuff, sorry.... > >> I am running under Oracle Linux 7 (OEL7), on an x86_64 box. >> >> But having set up my connection in ~/.gnus : >>
>> (setq gnus-select-method
>>       '(nnimap "Gmail"
>>         (nnimap-address "imap.gmail.com")
>>         (nnimap-server-port "993")
>>         (nnimap-inbox "INBOX")
>>         (nnimap-stream ssl)
>>         (nnimap-record-commands)
>
> This could be a total red herring, but in the beginning I would remove
> `nnimap-record-commands' from this list. Especially for the initial
> sync, there could be a heck of a lot of information getting spewed out
> here. I don't immediately see why that would cause Gnus problems, but
> might as well reduce complexity.
>
>>        ))
>> (setq smtpmail-smtp-service 587)
>> 
>> >> , and doing 'M-x gnus' for the first time in Emacs 24.5 , >> GNUS has now spent over an hour in the 'initial sync of 32 groups' state >> , >> and has not displayed anything or updated its counter after reaching >> 162996k . >> >> Here is a gdb stack trace of the (now stuck) Emacs process: > > I think an Elisp trace will probably be more useful than a gdb trace. > I'd quit the sync with C-g, (then take out the command logging,) run M-x > toggle-debug-on-quit, then reload Gnus, let hit hang for a bit, then hit > C-g. That should give you a backtrace you can bring back to this list. > > Of course, if you quit, you may find that Gnus has already successfully > synced some or all of the groups... > > Yours, > Eric > > >