2010-09-22 Lars Magne Ingebrigtsen * gnus-int.el (gnus-request-expire-articles): Inhibit the daemon, since this command might take a while. 2010-09-22 Julien Danjou * gnus-html.el (gnus-html-rescale-image): Use window-inside-pixel-edges rather than window-pixel-edges. (gnus-html-put-image): Stop using markers. They are harmful if you have 2 images side-by-side, they can't be properly update on text deletion. Using text-property is safer here. (gnus-html-image-fetched): Search also for \r\n\r\n to get the start of data. 2010-09-22 Lars Magne Ingebrigtsen * nnimap.el (nnimap-expunge-inbox): Removed. (nnimap-mark-and-expunge-incoming): Use nnimap-expunge instead. (nnimap-expunge): Flip default to t. * gnus.el (gnus-method-to-server): Don't push things to the cache unless it's unique. (gnus-server-to-method): Ditto. 2010-09-22 Teodor Zlatanov * nnimap.el (nnimap-delete-article): Tell user if expunge won't happen. 2010-09-22 Julien Danjou * gnus-html.el (gnus-html-get-image-data): Search also for \r\n\r\n to get the start of data. (gnus-html-encode-url): Add this function to encode special chars in URL. (gnus-html-wash-images): Use gnus-html-encode-url to encode URL. (gnus-html-prefetch-images): Use gnus-html-encode-url to encode URL. * gnus-group.el (gnus-group-update-hook): Call gnus-group-add-icon by default. (gnus-group-add-icon): Move to gnus-group.el, and rewrite so it works. * gnus-html.el (gnus-html-wash-images): Use xml-substitute-special on images alt-text. (gnus-html-put-image): Put alt-text as help-echo. 2010-09-22 Katsumi Yamaoka * mailcap.el (mailcap-parse-mailcap, mailcap-parse-mimetypes) * mm-util.el (mm-decompress-buffer) * nnir.el (nnir-run-find-grep) * pop3.el (pop3-list): Use 3rd arg of split-string. * time-date.el (format-seconds): Comment fix. * dgnushack.el (toplevel): Don't advise byte-optimize-form-code-walker and byte-optimize-form-code-walker. (dgnushack-make-auto-load): Don't advise make-autoload. * lpath.el: Remove Emacs 21 stuff. 2010-09-21 Lars Magne Ingebrigtsen * gnus-sum.el (gnus-update-marks): Add sanity check to not delete marks outside the active range. Suggested by Dan Christensen. * gnus-start.el (gnus-get-unread-articles): Get the extended method slightly later to avoid double-getting it. * nnml.el (nnml-generate-nov-file): Fix variable name clobbering from previous patch. * gnus-sum.el (gnus-adjust-marked-articles): Fix another typo. 2010-09-21 Adam Sjøgren * gnus-sum.el (gnus-adjust-marked-articles): Fix typo. 2010-09-21 Lars Magne Ingebrigtsen * gnus-int.el (gnus-open-server): Give a better error message in the "go offline" case. * gnus-sum.el (gnus-adjust-marked-articles): Hack to avoid adjusting marks for nnimap, which is seldom the right thing to do. * gnus.el (gnus-sloppily-equal-method-parameters): Refactor out. (gnus-same-method-different-name): New function. * nnimap.el (parse-time): Require. * gnus-start.el (gnus-get-unread-articles): Fix the prefixed select method in the presence of many similar methods. * nnmail.el (nnmail-expired-article-p): Fix typo: time-subtract. * nnimap.el (nnimap-find-expired-articles): Don't refer to nnml-inhibit-expiry. * gnus-sum.el (gnus-summary-move-article): Use gnus-server-equal to find out whether methods are equal. * nnimap.el (nnimap-find-expired-articles): New function. (nnimap-process-expiry-targets): New function. (nnimap-request-move-article): Request the article before looking at what the Message-ID is. Fix found by Andrew Cohen. (nnimap-mark-and-expunge-incoming): Wait for the last sequence. * nnmail.el (nnmail-expired-article-p): Allow returning the cutoff time for oldness in addition to being a predicate. * nnimap.el (nnimap-request-group): When we have zero articles, return the right data to Gnus. (nnimap-request-expire-articles): Only delete articles immediately if the target is 'delete. * gnus-sum.el (gnus-summary-move-article): When respooling to the same method, this would bug out. * gnus-group.el (gnus-group-expunge-group): Renamed from gnus-group-nnimap-expunge, and implemented as a normal interface function. * gnus-int.el (gnus-request-expunge-group): New function. * nnimap.el (nnimap-request-create-group): Implement. (nnimap-request-expunge-group): New function. 2010-09-21 Julien Danjou * gnus-html.el (gnus-html-image-cache-ttl): Add new variable. (gnus-html-cache-expired): Add new function. (gnus-html-wash-images): Use `gnus-html-cache-expired' to check wethever we should display image for fetch it. Compute alt-text earlier to pass it to the fetching function too. (gnus-html-schedule-image-fetching): Change function argument to only get one image at a time, not a list. (gnus-html-image-fetched): Use `url-store-in-cache' to store image in cache. (gnus-html-get-image-data): New function to retrieve image data from cache. (gnus-html-put-image): Change buffer argument to use image data rather than file, and place image above region rather than inserting a new one. Do not take alt-text as argument, since it's useless now: we place the image above alt-text. (gnus-html-prune-cache): Remove. (gnus-html-show-images): Start to fetch image when we find one, do not push into a temporary list. (gnus-html-prefetch-images): Only fetch image if they have expired. (gnus-html-browse-image): Fix, use 'gnus-image-url. (gnus-html-image-map): Add "v" to browse-url on undisplayed image. 2010-09-20 Katsumi Yamaoka * rfc2047.el (rfc2047-encode-parameter): Doc fix. 2010-09-20 Lars Magne Ingebrigtsen * gnus-group.el (gnus-group-line-format-alist): Have the ?U (unseen) spec inser "*" if the group isn't active instead of 0. * nnimap.el (nnimap-request-group): Don't select the imap buffer before opening the server. (nnimap-request-delete-group): Implement group deletion. (nnimap-transform-headers): Return the size of the entire message in the Bytes header, not just the size of the first part. (nnimap-request-move-article): When moving an article from nnimap, request the article first so the accepting form has an article to accept. Reported by Dan Christensen. (nnimap-command): Make sure that the error message doesn't error out. 2010-09-20 David Edmondson (tiny change) * nnimap.el (nnimap-request-set-mark): Don't wait for a response when we haven't requested anything. 2010-09-20 Lars Magne Ingebrigtsen * nnimap.el (nnimap-fetch-inbox): Use "[]" as the parameter instead of "". Fix found by Andrew Cohen. * mail-parse.el (mail-header-encode-parameter): Use -encode-parameter instead of -encode-string. 2010-09-20 Katsumi Yamaoka * gnus-html.el (gnus-html-image-fetched): Pass arg to kill-buffer. * gnus-sum.el (gnus-summary-update-mark): Replace subst-char-in-string by mm-subst-char-in-string. 2010-09-19 Lars Magne Ingebrigtsen * nnimap.el (nnimap-wait-for-connection): Avoid a race condition while waiting for the connection string. * gnus-html.el (gnus-html-image-fetched): Protect against the data not arriving. * gnus-start.el (gnus-ignored-newsgroups): Remove [] from the list of bogus characters. This allows selecting certain Gmail groups. * nnimap.el (nnimap-find-wanted-parts-1): New function. (nnimap-fetch-partial-articles): New variable. (nnimap-open-connection): When looking for credentials, also use the nnimap-server-port. (nnimap-request-article): Return the group/article number, so that Gnus `^' works as expected. (nnimap-find-wanted-parts-1): Return the MIME parts as IMAP wants them. * gnus.el (gnus-similar-server-opened): Refactor a bit and add comments. (gnus-methods-sloppily-equal): New function. (gnus): When using the development version of Gnus, load the gnus-load file. * gnus-start.el (gnus-get-unread-articles): Make sure that we call `gnus-open-server' on each method before trying to scan them etc. This ensures that all the backend parameters are set correctly. * nnimap.el (nnimap-authenticator): New variable. (nnimap-open-connection): Allow anonymous login. (nnimap-transform-headers): The chars header is called Chars not Bytes. (nnimap-wait-for-response): Don't infloop if the IMAP connection drops. * gnus-art.el (gnus-article-describe-briefly): Fix up typo in last patch, found by Knut Anders Hatlen. 2010-09-19 Andreas Schwab * gnus-agent.el (gnus-agent-batch-confirmation) (gnus-agent-expire-group, gnus-agent-expire): Pass proper format string to gnus-message. * gnus-art.el (gnus-article-describe-briefly): Likewise. * gnus-group.el (gnus-group-list-groups, gnus-group-describe-group) (gnus-group-edit-global-kill, gnus-group-describe-briefly): Likewise. * gnus-int.el (gnus-open-server): Likewise. * gnus-score.el (gnus-score-edit-current-scores, gnus-score-edit-file) (gnus-score-check-syntax): Likewise. * gnus-srvr.el (gnus-browse-describe-briefly): Likewise. * gnus-start.el (gnus-read-active-file-1, gnus-read-active-file-1): Likewise. * gnus-sum.el (gnus-summary-describe-briefly): Likewise. 2010-09-19 Lars Magne Ingebrigtsen * gnus-html.el (gnus-html-prefetch-images): Fix up the url-retrieve calling conventions so that prefetch doesn't bug out. 2010-09-19 Julien Danjou * gnus-sum.el (gnus-summary-update-mark): Use `subst-char-in-string' rather than `subst-char-in-region' in order to be able to replace ASCII char by UTF-8 ones. * gnus-html.el (gnus-html-prefetch-images): Use `url-retrieve' rather than curl. (gnus-html-image-fetched): Fix `gnus-html-put-image' call not setting the right URL and ALT text on images. (gnus-html-wash-tags): Fix tag case. Add support for `s' and `ins' tags. Use gnus-emphasis-* faces. (gnus-article-html): Add -o display_ins_del=2 option. (gnus-html-wash-tags): Add better support for