From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: torys.anderson@gmail.com (Tory S. Anderson) Newsgroups: gmane.emacs.help Subject: Re: cleaning up a big regexp Date: Mon, 15 Sep 2014 08:06:12 -0400 Message-ID: <87a961ulzf.fsf@gmail.com> References: <87iokpf6v8.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410782794 21166 80.91.229.3 (15 Sep 2014 12:06:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Sep 2014 12:06:34 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 15 14:06:29 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XTV36-0002wE-Rv for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2014 14:06:28 +0200 Original-Received: from localhost ([::1]:59291 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTV36-0001g3-CH for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2014 08:06:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTV2t-0001fC-Nl for help-gnu-emacs@gnu.org; Mon, 15 Sep 2014 08:06:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTV2s-0008Kp-B4 for help-gnu-emacs@gnu.org; Mon, 15 Sep 2014 08:06:15 -0400 Original-Received: from mail-yk0-x234.google.com ([2607:f8b0:4002:c07::234]:45013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTV2s-0008Kj-7k for help-gnu-emacs@gnu.org; Mon, 15 Sep 2014 08:06:14 -0400 Original-Received: by mail-yk0-f180.google.com with SMTP id q9so1981790ykb.25 for ; Mon, 15 Sep 2014 05:06:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=yiVe5xD9a7x/bhNSegT8meUpTUI9YUZttg74hyLiIqA=; b=BXJQMxntBzKN5qT6UVeKP8x+I5rTc0UyS0cEcYNKxVWhw/mstFsO+eV7VAacpjvfBy PdGGgqOj2gnfMx+Xip1k3L5I1qyR2BZqEhMkNrBHGVidg3i4JkoC/78YadFNyG8TTSOF TNoULfLFuUD8/sG+XVWA+haqgBM7MgzhHauQdAx3Zt/KEX3CV6+9OcV8razgP+sEnghC mFVRzMpYZfp8d4Z5dwnY/k8dufJhnPQIMIKRolm5qzL6yC91YoqrMpXdfAUo6BV7Uo+5 fUGsRZKBbCBA2xKCJt5PmWrb70HH7BNlk5DGgKNhx4TTnBlclp7+tYFYP1vcHrrHtacm pI3w== X-Received: by 10.236.132.243 with SMTP id o79mr2297132yhi.71.1410782773733; Mon, 15 Sep 2014 05:06:13 -0700 (PDT) Original-Received: from localhost.localdomain ([2601:0:a000:4a1:ee55:f9ff:feb5:5589]) by mx.google.com with ESMTPSA id 70sm5147211yhw.38.2014.09.15.05.06.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Sep 2014 05:06:12 -0700 (PDT) In-Reply-To: <87iokpf6v8.fsf@gmx.de> (Michael Albinus's message of "Mon, 15 Sep 2014 13:41:47 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c07::234 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99915 Archived-At: Ok. Applying the advice I've received so far, I have the following (which doesn't quite evaluate). Clearly my syntax is wrong. (setq my-gnus-bulk-from-address-list '("@maillist.codeproject.com" "@papajohns-specials.com" "@qomail.quikorder.com" "@linkedin.com" "@facebookmail.com" "@plus.google.com" "@twitter.com" "@youtube.com" "@linguistlist.org" "sportsauthority.com")) ;; list of bulkmail addresses (setq my-gnus-bulk-from-address-regexp (mapconcat `regexp-quote my-gnus-bulk-from-address-list "\\|")) ;; make OR (setq my-gnus-bulk-from-regexp (regexp-opt (mapconcat `(concat "^From:.*") my-gnus-bulk-from-address-regexp "\\|"))) ;; apply "From.*" to the start of each address