;; -*- emacs-lisp -*- ;;; gnus-mst-move-article.el --- author based article moving ;; Description: This code allows you to move articles to a group which is read ;; from bbdb records. ;; Author: Mark Triggs ;; Keywords: news ;; $Id: gnus-mst-move-article.el,v 1.22 2004/01/07 02:57:21 mst Exp $ ;; This file is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 2, or (at your option) ;; any later version. ;; This file is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to ;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330, ;; Boston, MA 02111-1307, USA. ;;; Code: (require 'gnus-mst-common) (defun gnus-mst-summary-move-article () "Save an article defaulting to a user mailbox" (interactive) (let* ((from (mail-header-from (gnus-summary-article-header))) (address (cadr (mail-extract-address-components from))) (suggestion (gnus-bbdb-get-group address))) (let ((destination (completing-read (format "Group to move article to?: " suggestion) gnus-active-hashtb nil t suggestion))) (gnus-summary-move-article nil destination nil nil)))) (provide 'gnus-mst-move-article) ;;; gnus-mst-move-article.el ends here