GNU bug report logs - #17845
24.2; nnimap performs 'intial sync' on all mailboxes every time 'M-x gnus' is run

Previous Next

Packages: gnus, emacs;

Reported by: Duncan Bayne <duncan <at> bayne.id.au>

Date: Wed, 25 Jun 2014 15:36:01 UTC

Severity: normal

Tags: notabug

Found in version 24.2

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17845 in the body.
You can then email your comments to 17845 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17845; Package emacs. (Wed, 25 Jun 2014 15:36:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Duncan Bayne <duncan <at> bayne.id.au>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 25 Jun 2014 15:36:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Duncan Bayne <duncan <at> bayne.id.au>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2;
 nnimap performs 'intial sync' on all mailboxes every time 'M-x gnus'
 is run
Date: Thu, 26 Jun 2014 00:08:52 +1000
I'm using nnimap, configured to use the Fastmail IMAP servers.  Every
time I do 'M-x gnus', nnimap performs an 'initial sync' of each mailbox,
downloading many MiB of data.

In addition to being very slow, this is probably irritating the folks at
Fastmail no end.

My gnus configuration is as follows:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(require 'gnus)

(setq user-mail-address "duncan <at> bayne.id.au")
(setq user-full-name "Duncan Bayne")

(setq gnus-select-method
      '(nnimap "duncan <at> bayne.id.au"
               (nnimap-address "mail.messagingengine.com")
               (nnimap-server-port 993)
               (nnimap-stream ssl)
               (nnimap-list-pattern ("INBOX" "INBOX.*"))))

(setq message-send-mail-function 'smtpmail-send-it
      smtpmail-starttls-credentials '(("mail.messagingengine.com" 587 nil nil))
      smtpmail-auth-credentials '(("mail.messagingengine.com" 587 "duncan <at> bayne.id.au" nil))
      smtpmail-default-smtp-server "mail.messagingengine.com"
      smtpmail-smtp-server "mail.messagingengine.com"
      smtpmail-smtp-service 587
      gnus-ignored-newsgroups "^to\\.\\|^[0-9. ]+\\(\\|$\\)\\|^[\"]\"[#'()]")

(defun my-message-mode-setup ()
  (setq fill-column 72)
  (turn-on-auto-fill))
(add-hook 'message-mode-hook 'my-message-mode-setup)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

In GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.20)
 of 2014-02-27 on duncan-laptop
Windowing system distributor `The X.Org Foundation', version 11.0.11405000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_AU.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  gnus-undo-mode: t
  global-diff-hl-mode: t
  diff-auto-refine-mode: t
  global-auto-revert-mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  global-hl-line-mode: t
  global-linum-mode: t
  linum-mode: t
  delete-selection-mode: t
  cua-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x g n u s <return> n M-x r e p o <tab> r <tab> <
return>

Recent messages:
nnimap read 3065k from mail.messagingengine.com (initial sync of 30 groups; please wait)
nnimap read 3163k from mail.messagingengine.com (initial sync of 30 groups; please wait)
nnimap read 3331k from mail.messagingengine.com (initial sync of 30 groups; please wait)
nnimap read 3482k from mail.messagingengine.com (initial sync of 30 groups; please wait)
nnimap read 3622k from mail.messagingengine.com (initial sync of 30 groups; please wait)
nnimap read 3642k from mail.messagingengine.com (initial sync of 30 groups; please wait)
nnimap read 3761k from mail.messagingengine.com (initial sync of 30 groups; please wait)
Checking new news...done
Auto-saving...
Making completion list...

Load-path shadows:
~/.emacs.d/ruby-mode/ruby-mode hides /usr/local/share/emacs/24.2/lisp/progmodes/ruby-mode
~/.emacs.d/emms/tq hides /usr/local/share/emacs/24.2/lisp/emacs-lisp/tq

Features:
(shadow sort mail-extr emacsbug sendmail help-mode view nndraft nnmh
nnfolder utf-7 network-stream auth-source eieio starttls nnimap
parse-time tls utf7 netrc gnus-agent gnus-srvr gnus-score score-mode
nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view mml-smime
smime password-cache dig mailcap nntp gnus-cache gnus-sum nnoo
gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int
gnus-range message format-spec rfc822 mml mml-sec mm-decode mm-bodies
mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev
gmm-utils mailheader gnus-win uniquify diff-hl face-remap vc-hg vc-git
cl-lib vc-dir ewoc vc ediff-merg ediff-diff ediff-wind ediff-help
ediff-util ediff-mult ediff-init ediff vc-dispatcher diff-mode geiser
emotion-iconous-mode xml jabber-autoloads gnus gnus-ems nnheader
gnus-util mail-utils mm-util mail-prsvr wid-edit ws-trim tomatinho
autorevert find-file-in-project ido undo-tree slime pp hyperspec
browse-url multi-term warnings advice advice-preload term disp-table
ehelp electric jka-compr-ccrypt jka-compr hl-line linum delsel cua-base
php-mode etags speedbar sb-image ezimage dframe assoc yaml-mode
feature-mode cucumber-mode sass-mode coffee-mode comint ansi-color ring
js2-mode cc-langs haml-mode help-fns js byte-opt bytecomp byte-compile
cconv macroexp json imenu newcomment cc-mode cc-fonts cc-guess cc-menus
cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs markdown-mode
derived edmacro kmacro thingatpt noutline outline easy-mmode easymenu
css-mode ruby-mode regexp-opt cl duncans_emacs time-date tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer loaddefs button faces cus-face files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty emacs)




Reply sent to David Engster <deng <at> randomsample.de>:
You have taken responsibility. (Wed, 25 Jun 2014 16:19:01 GMT) Full text and rfc822 format available.

Notification sent to Duncan Bayne <duncan <at> bayne.id.au>:
bug acknowledged by developer. (Wed, 25 Jun 2014 16:19:02 GMT) Full text and rfc822 format available.

Message #10 received at 17845-done <at> debbugs.gnu.org (full text, mbox):

From: David Engster <deng <at> randomsample.de>
To: Duncan Bayne <duncan <at> bayne.id.au>
Cc: 17845-done <at> debbugs.gnu.org
Subject: Re: bug#17845: 24.2;
 nnimap performs 'intial sync' on all mailboxes every time 'M-x gnus'
 is run
Date: Wed, 25 Jun 2014 18:18:32 +0200
Duncan Bayne writes:
> I'm using nnimap, configured to use the Fastmail IMAP servers.  Every
> time I do 'M-x gnus', nnimap performs an 'initial sync' of each mailbox,
> downloading many MiB of data.
>
> In addition to being very slow, this is probably irritating the folks at
> Fastmail no end.

This was fixed around July last year. Updating either to the latest Gnus
release (http://git.gnus.org/cgit/gnus.git/snapshot/gnus-m0-11.zip) or
to the latest Emacs pretest (24.3.91) should fix your problem. If not,
please reopen this bug.

-David




Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#17845; Package emacs,gnus. (Thu, 26 Jun 2014 00:24:01 GMT) Full text and rfc822 format available.

Message #13 received at 17845 <at> debbugs.gnu.org (full text, mbox):

From: Duncan Bayne <duncan <at> bayne.id.au>
To: 17845 <at> debbugs.gnu.org
Subject: Re-opening; can repro on GNU Emacs 24.3.91.1
Date: Wed, 25 Jun 2014 17:23:27 -0700
I've upgraded to GNU Emacs 24.3.91.1, built from source.  The problem
persists; every time I start Emacs and do 'M-x gnus', it performs an
'initial sync' of all my IMAP folders.

Details from report-emacs-bug:

In GNU Emacs 24.3.91.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.17)
 of 2014-06-26 on duncan-greensync
Windowing system distributor `The X.Org Foundation', version
11.0.11303000
System Description:     Linux Mint 15 Olivia

Important settings:
  value of $LANG: en_AU.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Group

Minor modes in effect:
  gnus-undo-mode: t
  global-diff-hl-mode: t
  diff-auto-refine-mode: t
  global-auto-revert-mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  global-hl-line-mode: t
  global-linum-mode: t
  linum-mode: t
  delete-selection-mode: t
  cua-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x g n u s <return> y M-x r e p o r <tab> <return
>

Recent messages:
Checking new news...
nnimap read 0k from mail.messagingengine.com (initial sync of 22 groups;
please wait) [5 times]
nnimap read 28k from mail.messagingengine.com (initial sync of 22
groups; please wait)
nnimap read 73k from mail.messagingengine.com (initial sync of 22
groups; please wait)
nnimap read 125k from mail.messagingengine.com (initial sync of 22
groups; please wait)
nnimap read 203k from mail.messagingengine.com (initial sync of 22
groups; please wait)
nnimap read 337k from mail.messagingengine.com (initial sync of 22
groups; please wait)
nnimap read 528k from mail.messagingengine.com (initial sync of 22
groups; please wait)
Reading active file via nndraft...done
Checking new news...done

Load-path shadows:
~/.emacs.d/ruby-mode/ruby-mode hides
/usr/local/share/emacs/24.3.91/lisp/progmodes/ruby-mode
~/.emacs.d/emms/tq hides
/usr/local/share/emacs/24.3.91/lisp/emacs-lisp/tq
/usr/local/share/emacs/24.3.91/lisp/emacs-lisp/cl-lib hides
~/.emacs.d/cl-lib/cl-lib

Features:
(shadow sort mail-extr emacsbug sendmail nndraft nnmh nnfolder utf-7
gnutls network-stream auth-source eieio eieio-core starttls nnimap
parse-time tls utf7 netrc gnus-agent gnus-srvr gnus-score score-mode
nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view mml-smime
smime password-cache dig mailcap nntp gnus-cache gnus-sum nnoo
gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int
gnus-range message format-spec rfc822 mml mml-sec mm-decode mm-bodies
mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev
gmm-utils mailheader gnus-win diff-hl face-remap vc-hg vc-git vc-dir
ewoc vc vc-dispatcher diff-mode geiser emotion-iconous-mode xml
jabber-autoloads gnus gnus-ems nnheader gnus-util mail-utils mm-util
mail-prsvr wid-edit ws-trim tomatinho autorevert filenotify
find-file-in-project warnings ido undo-tree slime pp hyperspec
browse-url multi-term term disp-table ehelp jka-compr-ccrypt jka-compr
hl-line linum delsel cua-base php-mode etags speedbar sb-image ezimage
dframe yaml-mode feature-mode cucumber-mode sass-mode coffee-mode comint
ansi-color ring js2-mode cc-langs haml-mode js advice help-fns byte-opt
bytecomp byte-compile cconv json imenu cc-mode cc-fonts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
markdown-mode derived edmacro kmacro thingatpt noutline outline
easy-mmode easymenu css-mode smie ruby-mode cl-macs cl gv cl-loaddefs
cl-lib duncans_emacs time-date tooltip electric uniquify ediff-hook
vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process gfilenotify
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty emacs)

Memory information:
((conses 16 422701 21099)
 (symbols 48 41562 1)
 (miscs 40 114 212)
 (strings 32 71710 10626)
 (string-bytes 1 2301646)
 (vectors 16 27298)
 (vector-slots 8 581006 8205)
 (floats 8 294 249)
 (intervals 56 293 0)
 (buffers 960 23)
 (heap 1024 28463 2674))




Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 26 Jun 2014 00:40:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#17845; Package emacs,gnus. (Wed, 22 Oct 2014 10:58:02 GMT) Full text and rfc822 format available.

Message #18 received at 17845 <at> debbugs.gnu.org (full text, mbox):

From: Rainer Orth <ro <at> CeBiTec.Uni-Bielefeld.DE>
To: 17845 <at> debbugs.gnu.org
Subject: Still happens with Emacs 24.4
Date: Wed, 22 Oct 2014 12:57:12 +0200
I'm also seeing this issue on Solaris 11/x86 (i386-pc-solaris2.11): on
my workstation, it occured for the first time when switching from Emacs
24.3 to 24.4.  With a 100 Mbit/s connection to the IMAP server,
gnus/nnimap is barely usable.

The issue isn't new, though: on my Solaris 11/x86 laptop, it occured for
the first time when switching from Emacs 23.3 to 24.1, and in all
versions up to and including 24.4.  With slower network connectivity,
the Emacs 24 versions are completely unusable due to this bug, so I have
to stay at 23.3 there.

Any suggestions on how to further investigate this?  This bug is most
annoying.

Thanks.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University




Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#17845; Package emacs,gnus. (Wed, 21 Jan 2015 04:04:02 GMT) Full text and rfc822 format available.

Message #21 received at 17845 <at> debbugs.gnu.org (full text, mbox):

From: Duncan Bayne <duncan <at> bayne.id.au>
To: 17845 <at> debbugs.gnu.org
Subject: Re: Re-opening; can repro on GNU Emacs 24.3.91.1
Date: Wed, 21 Jan 2015 15:03:02 +1100
I'm going to try to repro this tonight, with the latest Emacs and gnus,
and see if I can track down what's causing it.  I'm moving more and more
of my workflow into Emacs (I'm now an avid org-mode user) and this is
the 'last piece of the puzzle' for me.




Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#17845; Package emacs,gnus. (Fri, 13 Feb 2015 08:47:01 GMT) Full text and rfc822 format available.

Message #24 received at 17845 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Duncan Bayne <duncan <at> bayne.id.au>
Cc: 17845 <at> debbugs.gnu.org
Subject: Re: bug#17845: Re-opening; can repro on GNU Emacs 24.3.91.1
Date: Fri, 13 Feb 2015 19:45:48 +1100
Duncan Bayne <duncan <at> bayne.id.au> writes:

> I've upgraded to GNU Emacs 24.3.91.1, built from source.  The problem
> persists; every time I start Emacs and do 'M-x gnus', it performs an
> 'initial sync' of all my IMAP folders.

If Gnus is doing the "initial sync" every time, then that means that
Gnus is not storing the fill IMAP data in the ~/.newsrc.eld file.

What does the `G E' data on one of these nnimap groups look like?
(`G E' is a group mode command.)

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#17845; Package emacs,gnus. (Fri, 13 Feb 2015 10:23:02 GMT) Full text and rfc822 format available.

Message #27 received at 17845 <at> debbugs.gnu.org (full text, mbox):

From: Duncan Bayne <duncan <at> bayne.id.au>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 17845 <at> debbugs.gnu.org
Subject: Re: bug#17845: Re-opening; can repro on GNU Emacs 24.3.91.1
Date: Fri, 13 Feb 2015 21:22:11 +1100
> If Gnus is doing the "initial sync" every time, then that means that
> Gnus is not storing the fill IMAP data in the ~/.newsrc.eld file.
 
That sounds reasonable, as the file ~/.newsrc.eld doesn't exist.

> What does the `G E' data on one of these nnimap groups look like?
> (`G E' is a group mode command.)

From running the above on INBOX:

;;; Editing the group info for `INBOX'.
;; Type `C-c C-c' after you've finished editing.

("INBOX" 3
 ((1 . 22064))
 ((reply 22015)
  (unexist
   (1 . 19759)
   (19761 . 19832)
   (19834 . 20409)
   (20411 . 20681)
   (20683 . 21194)
   (21197 . 21970)
   (21972 . 22014)
   (22016 . 22019)
   (22021 . 22027)
   (22029 . 22050)
   (22054 . 22058)
   (22060 . 22062)))
 nil
 ((modseq . "175357")
  (uidvalidity . "1366435887")
  (active 19760 . 22066)
  (permanent-flags %Answered %Flagged %Draft %Deleted %Seen
  $X-ME-Annot-2 $IsMailingList $IsNotification $HasAttachment $HasTD
  $NotJunk $Forwarded $Junk $IsTrusted %*)))

-- 
Duncan Bayne
ph: +61 420817082 | web: http://duncan-bayne.github.com/ | skype:
duncan_bayne

I usually check my mail every 24 - 48 hours.  If there's something
urgent going on, please send me an SMS or call me.




Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#17845; Package emacs,gnus. (Fri, 13 Feb 2015 12:27:02 GMT) Full text and rfc822 format available.

Message #30 received at 17845 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Duncan Bayne <duncan <at> bayne.id.au>
Cc: 17845 <at> debbugs.gnu.org
Subject: Re: bug#17845: Re-opening; can repro on GNU Emacs 24.3.91.1
Date: Fri, 13 Feb 2015 23:24:01 +1100
Duncan Bayne <duncan <at> bayne.id.au> writes:

>> If Gnus is doing the "initial sync" every time, then that means that
>> Gnus is not storing the fill IMAP data in the ~/.newsrc.eld file.
>
> That sounds reasonable, as the file ~/.newsrc.eld doesn't exist.

If that file doesn't exist, then that's your problem.  Are you exiting
Gnus without saving anything?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#17845; Package emacs,gnus. (Fri, 13 Feb 2015 21:21:02 GMT) Full text and rfc822 format available.

Message #33 received at 17845 <at> debbugs.gnu.org (full text, mbox):

From: Duncan Bayne <duncan <at> bayne.id.au>
To: 17845 <at> debbugs.gnu.org
Subject: Re: bug#17845: Re-opening; can repro on GNU Emacs 24.3.91.1
Date: Sat, 14 Feb 2015 08:20:01 +1100
On Sat, Feb 14, 2015, at 08:07 AM, Duncan Bayne wrote:
> 
> To my embarassment, I wasn't pressing 's' to save that file; I'd just
> assumed that it'd be hooked to save on exit :-(
> 
> Once I do that, it works as expected.

-- 
Duncan Bayne
ph: +61 420817082 | web: http://duncan-bayne.github.com/ | skype:
duncan_bayne

I usually check my mail every 24 - 48 hours.  If there's something
urgent going on, please send me an SMS or call me.




Added tag(s) notabug. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 14 Feb 2015 04:19:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 17845 <at> debbugs.gnu.org and Duncan Bayne <duncan <at> bayne.id.au> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 14 Feb 2015 04:19:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 14 Mar 2015 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 163 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.