comparison lisp/gnus/gnus-agent.el @ 90143:146c086df160

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-37 Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 241-257) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 59-65) - Update from CVS - Merge from emacs--cvs-trunk--0 - (mm-string-to-multibyte): Use Gnus trunk definition.
author Miles Bader <miles@gnu.org>
date Thu, 14 Apr 2005 05:03:52 +0000
parents 3ebd9bdb4fe5 ad05d91d3598
children 01137c1fdbe9
comparison
equal deleted inserted replaced
90142:627771f44771 90143:146c086df160
1 ;;; gnus-agent.el --- unplugged support for Gnus 1 ;;; gnus-agent.el --- unplugged support for Gnus
2 ;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 2 ;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
3 ;; Free Software Foundation, Inc. 3 ;; Free Software Foundation, Inc.
4 4
5 ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 5 ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
6 ;; This file is part of GNU Emacs. 6 ;; This file is part of GNU Emacs.
7 7
1369 1369
1370 (setq group 1370 (setq group
1371 (nnheader-translate-file-chars 1371 (nnheader-translate-file-chars
1372 (nnheader-replace-duplicate-chars-in-string 1372 (nnheader-replace-duplicate-chars-in-string
1373 (nnheader-replace-chars-in-string 1373 (nnheader-replace-chars-in-string
1374 (gnus-group-real-name group) 1374 (gnus-group-real-name (gnus-group-decoded-name group))
1375 ?/ ?_) 1375 ?/ ?_)
1376 ?. ?_))) 1376 ?. ?_)))
1377 (if (or nnmail-use-long-file-names 1377 (if (or nnmail-use-long-file-names
1378 (file-directory-p (expand-file-name group (gnus-agent-directory)))) 1378 (file-directory-p (expand-file-name group (gnus-agent-directory))))
1379 group 1379 group
1385 "Translate GROUP into a file name." 1385 "Translate GROUP into a file name."
1386 ;; nnagent uses nnmail-group-pathname to read articles while 1386 ;; nnagent uses nnmail-group-pathname to read articles while
1387 ;; unplugged. The agent must, therefore, use the same directory 1387 ;; unplugged. The agent must, therefore, use the same directory
1388 ;; while plugged. 1388 ;; while plugged.
1389 (let ((gnus-command-method (or gnus-command-method 1389 (let ((gnus-command-method (or gnus-command-method
1390 (gnus-find-method-for-group group)))) 1390 (gnus-find-method-for-group group))))
1391 (nnmail-group-pathname (gnus-group-real-name group) (gnus-agent-directory)))) 1391 (nnmail-group-pathname (gnus-group-real-name
1392 (gnus-group-decoded-name group))
1393 (gnus-agent-directory))))
1392 1394
1393 (defun gnus-agent-get-function (method) 1395 (defun gnus-agent-get-function (method)
1394 (if (gnus-online method) 1396 (if (gnus-online method)
1395 (car method) 1397 (car method)
1396 (require 'nnagent) 1398 (require 'nnagent)