Lars Magne Ingebrigtsen [Fri, 17 Sep 2010 20:31:53 +0000 (22:31 +0200)]
Have `unseen-or-unread' select an unread unseen article first.
Lars Magne Ingebrigtsen [Fri, 17 Sep 2010 20:16:09 +0000 (22:16 +0200)]
If the user doesn't have a /etc/services, supply some sensible port defaults.
Lars Magne Ingebrigtsen [Fri, 17 Sep 2010 20:09:27 +0000 (22:09 +0200)]
* dgnushack.el: Define netrc-credentials.
Lars Magne Ingebrigtsen [Fri, 17 Sep 2010 20:06:03 +0000 (22:06 +0200)]
(mm-text-html-renderer): Document gnus-article-html.
2010-09-17 Julien Danjou <julien@danjou.info> (tiny fix)
* mm-decode.el (mm-text-html-renderer): Document gnus-article-html.
Lars Magne Ingebrigtsen [Fri, 17 Sep 2010 19:15:24 +0000 (21:15 +0200)]
Don't bug out if the LIST command doesn't have any parameters.
2010-09-17 Knut Anders Hatlen <kahatlen@gmail.com> (tiny change)
* nnimap.el (nnimap-get-groups): Don't bug out if the LIST command
doesn't have any parameters.
Lars Magne Ingebrigtsen [Fri, 17 Sep 2010 19:03:14 +0000 (21:03 +0200)]
Require cl when compiling.
Lars Magne Ingebrigtsen [Fri, 17 Sep 2010 18:51:14 +0000 (20:51 +0200)]
Make capabilties be case-insensitive.
Lars Magne Ingebrigtsen [Fri, 17 Sep 2010 18:47:10 +0000 (20:47 +0200)]
Fix typo in "bogus" section.
Lars Magne Ingebrigtsen [Fri, 17 Sep 2010 18:45:58 +0000 (20:45 +0200)]
Remove junk from end of file.
Lars Magne Ingebrigtsen [Fri, 17 Sep 2010 18:42:44 +0000 (20:42 +0200)]
Not all servers return UIDNEXT. Work past this problem.
Lars Magne Ingebrigtsen [Fri, 17 Sep 2010 18:31:10 +0000 (20:31 +0200)]
Get the number of lines by using BODYSTRUCTURE.
(nnimap-transform-headers): Get the number of lines in each message.
(nnimap-retrieve-headers): Query for BODYSTRUCTURE so that we get the
number of lines.
Lars Magne Ingebrigtsen [Fri, 17 Sep 2010 18:06:44 +0000 (20:06 +0200)]
Implement shell connection.
* nnimap.el (nnimap-open-shell-stream): New function.
(nnimap-open-connection): Use it.
Lars Magne Ingebrigtsen [Fri, 17 Sep 2010 16:18:39 +0000 (18:18 +0200)]
Reimplement nnimap, and do tweaks to the rest of the code to support that.
* gnus-int.el (gnus-finish-retrieve-group-infos)
(gnus-retrieve-group-data-early): New functions.
* gnus-range.el (gnus-range-nconcat): New function.
* gnus-start.el (gnus-get-unread-articles): Support early retrieval of
data.
(gnus-read-active-for-groups): Support finishing the early retrieval of
data.
* gnus-sum.el (gnus-summary-move-article): Pass the move-to group name
if the move is internal, so that nnimap can do fast internal moves.
* gnus.el (gnus-article-special-mark-lists): Add uid/active tuples, for
nnimap usage.
* nnimap.el: Rewritten.
* nnmail.el (nnmail-inhibit-default-split-group): New internal variable
to allow the mail splitting to not return a default group. This is
useful for nnimap, which will leave unmatched mail in the inbox.
* utf7.el (utf7-encode): Autoload.
Katsumi Yamaoka [Fri, 17 Sep 2010 06:46:22 +0000 (06:46 +0000)]
pop3.el (pop3-wait-for-messages): Use pop3-accept-process-output instead of nnheader-accept-process-output.
Katsumi Yamaoka [Fri, 17 Sep 2010 06:23:30 +0000 (06:23 +0000)]
gnus-html.el: Replace process-kill-without-query by gnus-set-process-query-on-exit-flag.
Romain Francoise [Thu, 16 Sep 2010 18:27:48 +0000 (20:27 +0200)]
gnus-html.el: Require gnus-art for `gnus-with-article-buffer'.
Lars Magne Ingebrigtsen [Tue, 14 Sep 2010 23:33:56 +0000 (01:33 +0200)]
Merge branch 'master' of https://git.gnus.org/gnus
Juanma Barranquero [Tue, 14 Sep 2010 23:08:03 +0000 (23:08 +0000)]
gnus-registry.el (gnus-registry-install-shortcuts): Explicitly pass `obarray' to `unintern' to avoid a warning.
Lars Magne Ingebrigtsen [Tue, 14 Sep 2010 20:22:14 +0000 (22:22 +0200)]
The second parameter to unintern is mandatory-ish in Emacs 24.
Lars Magne Ingebrigtsen [Tue, 14 Sep 2010 17:17:20 +0000 (19:17 +0200)]
Fix up the w3m/curl dependencies.
* mm-decode.el (mm-text-html-renderer): Don't have gnus-article-html
depend on curl, which isn't essential.
* gnus-html.el (gnus-html-schedule-image-fetching)
(gnus-html-prefetch-images): Check for curl before using it.
Lars Magne Ingebrigtsen [Tue, 14 Sep 2010 17:10:30 +0000 (19:10 +0200)]
Merge branch 'master' of https://git.gnus.org/gnus
Lars Magne Ingebrigtsen [Tue, 14 Sep 2010 17:09:55 +0000 (19:09 +0200)]
Juanma Barranquero [Tue, 14 Sep 2010 13:47:12 +0000 (13:47 +0000)]
.dir-locals.el: Add no-byte-compile cookie.
Lars Magne Ingebrigtsen [Tue, 14 Sep 2010 13:22:31 +0000 (15:22 +0200)]
Fixed up nnrss group activation, and removed moreover stuff.
* nnrss.el (nnrss-request-list): Removed this function and related
functions, including the moreover stuff.
* gnus-start.el (gnus-read-active-for-groups): Reverted the previous
change.
Katsumi Yamaoka [Tue, 14 Sep 2010 06:02:55 +0000 (06:02 +0000)]
time-date.el (format-seconds): Comment fix.
Katsumi Yamaoka [Tue, 14 Sep 2010 03:37:50 +0000 (03:37 +0000)]
gnus-start.el (gnus-read-active-for-groups): Run gnus-activate-group for back end that doesn't support request-scan.
Lars Magne Ingebrigtsen [Fri, 10 Sep 2010 23:39:10 +0000 (01:39 +0200)]
If gnus-agent isn't set, then do request scans from the backends.
Lars Magne Ingebrigtsen [Fri, 10 Sep 2010 22:55:44 +0000 (00:55 +0200)]
(netrc-credentials): New conveniency function.
Lars Magne Ingebrigtsen [Fri, 10 Sep 2010 16:29:09 +0000 (18:29 +0200)]
Call `gnus-summary-highlight-line' directly from all places that used to call it indirectly.
Lars Magne Ingebrigtsen [Fri, 10 Sep 2010 16:26:01 +0000 (18:26 +0200)]
Avoid calling a hook function per summary line.
* gnus-sum.el (gnus-summary-update-hook): Change default to nil, to
avoid running a hook per line, since this takes a lot of time,
profiling shows.
(gnus-summary-prepare-threads): Call `gnus-summary-highlight-line'
directly if gnus-visual-p is true.
Katsumi Yamaoka [Fri, 10 Sep 2010 05:30:35 +0000 (05:30 +0000)]
gnus-start.el (gnus-read-active-for-groups): Check only subscribed groups.
Lars Magne Ingebrigtsen [Thu, 9 Sep 2010 14:06:38 +0000 (16:06 +0200)]
Remove pop3-movemail and rename pop3-streaming-movemail to pop3-movemail.
* pop3.el (pop3-movemail): Removed.
(pop3-streaming-movemail): Renamed to pop3-movemail.
* mail-source.el (mail-source-fetch-pop): Use pop3-movemail again.
Lars Magne Ingebrigtsen [Thu, 9 Sep 2010 13:20:53 +0000 (15:20 +0200)]
Refactor out the image bit, and don't restrict end-tag searches to the end of the line.
Katsumi Yamaoka [Thu, 9 Sep 2010 06:09:53 +0000 (06:09 +0000)]
gnus-start.el (gnus-get-unread-articles): Set the number of unread articles of every unchecked group to t, which means unknown since the server has never been opened.
Lars Magne Ingebrigtsen [Wed, 8 Sep 2010 17:53:48 +0000 (19:53 +0200)]
Bind RET and TAB on images for better UX.
Lars Magne Ingebrigtsen [Wed, 8 Sep 2010 17:37:36 +0000 (19:37 +0200)]
(gnus-html-wash-tags): Search for images first, so that <a><img> works better.
Lars Magne Ingebrigtsen [Wed, 8 Sep 2010 17:03:19 +0000 (19:03 +0200)]
Fix typo in last check-in.
Lars Magne Ingebrigtsen [Wed, 8 Sep 2010 17:02:06 +0000 (19:02 +0200)]
Allow showing the ALT text of images and to browse the images themselves.
* gnus-html.el (gnus-html-show-alt-text): New command.
(gnus-html-browse-image): Ditto.
(gnus-html-wash-tags): Add the data to allow showing the ALT text and
to browse the image directly.
Lars Magne Ingebrigtsen [Wed, 8 Sep 2010 16:49:28 +0000 (18:49 +0200)]
Indent.
Lars Magne Ingebrigtsen [Wed, 8 Sep 2010 13:20:48 +0000 (15:20 +0200)]
(gnus-async-article-callback): Call `gnus-html-prefetch-images' unconditionally.
Lars Magne Ingebrigtsen [Wed, 8 Sep 2010 13:16:04 +0000 (15:16 +0200)]
Fix typo in last check-in.
Lars Magne Ingebrigtsen [Wed, 8 Sep 2010 12:50:33 +0000 (14:50 +0200)]
Decode entities before feeding URLs to curl.
Katsumi Yamaoka [Tue, 7 Sep 2010 06:20:08 +0000 (06:20 +0000)]
gnus-html.el (gnus-html-wash-tags, gnus-html-put-image): Mark cid and internal images as deletable by `W D D'.
Katsumi Yamaoka [Tue, 7 Sep 2010 01:15:35 +0000 (01:15 +0000)]
gnus-async.el (gnus-html-prefetch-images): Autoload it when compiling; (gnus-async-article-callback): Fix typo.
Lars Magne Ingebrigtsen [Mon, 6 Sep 2010 22:16:07 +0000 (00:16 +0200)]
Limit end-tag matching to the current line to work around bugs in the output from w3m.
Lars Magne Ingebrigtsen [Mon, 6 Sep 2010 22:11:04 +0000 (00:11 +0200)]
Always prefetch images for groups that want that.
Lars Magne Ingebrigtsen [Mon, 6 Sep 2010 22:08:46 +0000 (00:08 +0200)]
(nntp-wait-for-string): Supply a timeout for accept-process-output to ensure progress.
Lars Magne Ingebrigtsen [Mon, 6 Sep 2010 20:22:57 +0000 (22:22 +0200)]
If being given an explicit level to get unread articles from, then use that for foreign groups, too.
Lars Magne Ingebrigtsen [Mon, 6 Sep 2010 20:02:51 +0000 (22:02 +0200)]
Remove <a name...> tags, which confuses the rest of the function.
Lars Magne Ingebrigtsen [Mon, 6 Sep 2010 15:28:15 +0000 (17:28 +0200)]
Do a `gnus-request-scan' for the methods that support -retrieve-groups, too.
Lars Magne Ingebrigtsen [Mon, 6 Sep 2010 14:37:34 +0000 (16:37 +0200)]
(nnml-save-nov): Remove some debugging-related messages.
Katsumi Yamaoka [Mon, 6 Sep 2010 05:17:47 +0000 (05:17 +0000)]
Fix previous commit.
Katsumi Yamaoka [Mon, 6 Sep 2010 05:09:14 +0000 (05:09 +0000)]
dgnushack.el (dgnushack-compile, dgnushack-make-cus-load, dgnushack-make-auto-load): Exclude .dir-locals.el file.
Katsumi Yamaoka [Mon, 6 Sep 2010 02:05:19 +0000 (02:05 +0000)]
pop3.el (pop3-number-of-responses): Search for "+OK", not "+OK ".
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 22:48:11 +0000 (00:48 +0200)]
(gnus-get-unread-articles): Fix up the last commit.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 22:40:01 +0000 (00:40 +0200)]
Don't bother with groups that aren't going to be activated.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 20:37:49 +0000 (22:37 +0200)]
Allow calling without specifying the handle.
In that case, dissect the buffer first.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 19:54:31 +0000 (21:54 +0200)]
(gnus-set-mode-line): Don't pad the mode line string.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 18:21:10 +0000 (20:21 +0200)]
Revert the change that would look into authinfo for imaps instead of imap.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 17:28:23 +0000 (19:28 +0200)]
(gnus-get-unread-articles): Count the archive groups as secondary.
This makes sure they're activated the same way as before.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 17:19:22 +0000 (19:19 +0200)]
(gnus-activate-group): Take an optional parameter to say that you
don't want to call gnus-request-group with don-check, but do check the
reponse. This is for virtual groups only.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 17:07:48 +0000 (19:07 +0200)]
(imap-mailbox-get): Revert last change for this function.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 16:37:40 +0000 (18:37 +0200)]
imap.el: Remove an optional buffer parameter from many functions.
* imap.el (imap-message-map): Removed optional buffer parameter, since
no callers use it.
(imap-message-get): Ditto.
(imap-message-put): Ditto.
(imap-mailbox-map): Ditto.
(imap-mailbox-put): Ditto.
(imap-mailbox-get): Ditto.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 16:26:53 +0000 (18:26 +0200)]
(nnimap-debug): Removed.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 16:24:11 +0000 (18:24 +0200)]
(nnimap-request-list): Servers may return \NoSelect case-insensitively.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 16:18:43 +0000 (18:18 +0200)]
(imap-debug): Removed -- doesn't seem very useful.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 16:12:42 +0000 (18:12 +0200)]
(imap-fetch-safe): Removed function.
Altered all callers to use `imap-fetch' instead. According to the
comments, this should be safe, since all other IMAP clients use the
1:* syntax.
(imap-enable-exchange-bug-workaround): Removed.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 15:04:59 +0000 (17:04 +0200)]
Don't message if we're fetching mail from a file, and the file doesn't exist.
This avoids noise when scanning for new mail.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 14:05:17 +0000 (16:05 +0200)]
New convenience function for logging.
Use throughout instead of repeating the same code all over the place.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 13:44:10 +0000 (15:44 +0200)]
(pop3-streaming-movemail): Return t for success.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 13:22:05 +0000 (15:22 +0200)]
Look for the "imaps" entry in the .authinfo if we're using ssl connection.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 12:52:44 +0000 (14:52 +0200)]
Use the active info we already have if we're in a main Gnus `g' run.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 12:01:16 +0000 (14:01 +0200)]
Get info for virtual groups last.
Lars Magne Ingebrigtsen [Sun, 5 Sep 2010 12:01:06 +0000 (14:01 +0200)]
Get info for virtual groups last.
Katsumi Yamaoka [Sun, 5 Sep 2010 11:51:17 +0000 (11:51 +0000)]
(gnus-method-rank): Replace equalp with equal.
Katsumi Yamaoka [Sun, 5 Sep 2010 04:06:53 +0000 (04:06 +0000)]
(nnmh-request-list-1): Bind `file'.
Katsumi Yamaoka [Sun, 5 Sep 2010 03:58:34 +0000 (03:58 +0000)]
pop3-set-process-query-on-exit-flag: New function that's an alias to set-process-query-on-exit-flag, or process-kill-without-query for old Emacsen.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 22:55:46 +0000 (00:55 +0200)]
Indent.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 22:45:04 +0000 (00:45 +0200)]
Do incremental NOV updates when scanning new male.
(nnml-save-incremental-nov, nnml-open-incremental-nov)
(nnml-add-incremental-nov): New functions to do "incremental" nov
updates, where we just append to the end of the existing nov files
without reading/writing them in full.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 22:42:42 +0000 (00:42 +0200)]
Always move the crash box to the Incoming file. Fixes mistake in previous checkin.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 22:31:41 +0000 (00:31 +0200)]
Off-by-one error on the request loop (for debugging purposes) removed.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 22:09:33 +0000 (00:09 +0200)]
Really only check the incoming files once in a while.
* nnml.el (nnml-save-nov): Message around nnml-save-nov so that the
culprit is more visible.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 22:03:15 +0000 (00:03 +0200)]
Don't output messages when saving.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 22:00:07 +0000 (00:00 +0200)]
(pop3-streaming-movemail): Always close the pop3 connection.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 21:48:42 +0000 (23:48 +0200)]
Only check the incoming files for deletion once per day to save a lot of file accesses.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 21:33:41 +0000 (23:33 +0200)]
(pop3-logon): Fix up unbound variable typo.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 21:30:57 +0000 (23:30 +0200)]
(pop3-streaming-movemail): Respect pop3-leave-mail-on-server.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 21:28:50 +0000 (23:28 +0200)]
Use streaming pop3 retrieval.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 20:19:29 +0000 (22:19 +0200)]
White space clean up.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 20:18:56 +0000 (22:18 +0200)]
Remove duplicates from .newsrc list.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 19:22:37 +0000 (21:22 +0200)]
Protect against groups that come from no known methods.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 19:17:30 +0000 (21:17 +0200)]
Use erase-buffer instead of looping and deleting regions, which seems rather odd.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 19:13:41 +0000 (21:13 +0200)]
(pop3-display-message-size-flag): Removed -- everybody wants message sizes.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 18:12:43 +0000 (20:12 +0200)]
Only read the agent.lib/local file once per `g' run.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 17:34:42 +0000 (19:34 +0200)]
Output active lines also for empty directories.
This makes the draft queue directory work.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 17:15:31 +0000 (19:15 +0200)]
Add more changes related to the new methodology for requesting backend data.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 16:09:47 +0000 (18:09 +0200)]
Fix up the recursion behavior.
Make sure we actually do recurse down into the tree, but don't stat
all leaf nodes.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 15:39:22 +0000 (17:39 +0200)]
Rewrite the Gnus group activation method to be more efficient.
The main idea is to gather all groups based on their select methods,
and then issuing one `-request-list' per select method, instead of
activating them group by group. This should in theory be much, much
faster, but there's a bunch of subtle interactions between a plethora
of variables that doesn't make this trivial to achieve.
This is a first stab at the issue, and seems to work, but I'm sure
that there are corner cases that doesn't quite work right.
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 13:32:30 +0000 (15:32 +0200)]
(Adaptive Scoring): Fix typo.
From: Julien Danjou <julien@danjou.info>
Lars Magne Ingebrigtsen [Sat, 4 Sep 2010 12:43:30 +0000 (14:43 +0200)]
(gnus-html-show-images): If there are no images to show, then say so instead of bugging out.