Gnus development mailing list
 help / color / mirror / Atom feed
From: Jason Vas Dias <jason.vas.dias@gmail.com>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: ding@gnus.org
Subject: Re: 'initial sync of N groups' - for over an hour !
Date: Sat, 16 Apr 2016 05:02:04 +0100	[thread overview]
Message-ID: <CALyZvKz3cO2uoQju=xpWMqWrLvi7bTbna-U6AFHQuw+7NXWEyw@mail.gmail.com> (raw)
In-Reply-To: <877ffys577.fsf@ericabrahamsen.net>

Many thanks for your most informative response, Eric!

RE: the TLS stuff : Dave Goldberg replied :
>Dave Goldberg<david.goldberg6@verizon.net> 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 :
<quote><pre>
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)
</pre></quote>

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 <PAGE UP> & <PAGE DOWN> 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 <eric@ericabrahamsen.net> wrote:
> Jason Vas Dias <jason.vas.dias@gmail.com> 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 :
>> <quote><pre>
>> (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)
>> </pre></quote>
>>
>> ,  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
>
>
>



  reply	other threads:[~2016-04-16  4:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-15 16:14 Jason Vas Dias
2016-04-16  1:38 ` Eric Abrahamsen
2016-04-16  4:02   ` Jason Vas Dias [this message]
2016-04-16  2:29 ` Dave Goldberg

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='CALyZvKz3cO2uoQju=xpWMqWrLvi7bTbna-U6AFHQuw+7NXWEyw@mail.gmail.com' \
    --to=jason.vas.dias@gmail.com \
    --cc=ding@gnus.org \
    --cc=eric@ericabrahamsen.net \
    /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).