From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84734 Path: news.gmane.org!not-for-mail From: Carlos Pita Newsgroups: gmane.emacs.gnus.general Subject: Re: Using gnus with gmail: almost there Date: Thu, 31 Jul 2014 16:44:06 -0300 Message-ID: References: <87d2cm9ilr.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1406835893 9692 80.91.229.3 (31 Jul 2014 19:44:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jul 2014 19:44:53 +0000 (UTC) Cc: tsdh@gnu.org To: ding@gnus.org Original-X-From: ding-owner+M32977@lists.math.uh.edu Thu Jul 31 21:44:45 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XCwHK-0003nx-IQ for ding-account@gmane.org; Thu, 31 Jul 2014 21:44:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1XCwHI-0000co-Nm; Thu, 31 Jul 2014 14:44:40 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1XCwHD-0000cQ-E1 for ding@lists.math.uh.edu; Thu, 31 Jul 2014 14:44:35 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XCwHB-0002xd-LR for ding@lists.math.uh.edu; Thu, 31 Jul 2014 14:44:34 -0500 Original-Received: from mail-la0-f51.google.com ([209.85.215.51]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XCwHA-0008Mn-5f for ding@gnus.org; Thu, 31 Jul 2014 21:44:32 +0200 Original-Received: by mail-la0-f51.google.com with SMTP id pn19so2391377lab.24 for ; Thu, 31 Jul 2014 12:44:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=9kRPtEyuwYSwMAacCHKHgNjSNFs7MTT+OzZFoc3r4ds=; b=zK4U+vJ4EK9ksh8Md354fonY0XJJLVItpTqwXy9YY84czHL0c2AXacenN78JkubObG z6gsbNEV66pmEKiH1KqMi6h7u6vWT6BYMEYQHbXrajmEoBG6LEbml5Md5Os7phpedZS0 i4+GT4PxnEwZFcJR40XsVJVUxpOQmgOOED09kvx2AepBwiADLGaCXJyPwKFpBSjD5UqA grsADx1klz1mT8TGb4JbXB5YQDbjAze9EBJsBfHdkCstXuzrDJ1cKtIaxj7mEvWAQ9q2 sj4w1zA2evvBFfoqxy9DPANtMVXuLdE08fbXBKE7gfU9ZVCM9N9VdJZx4m0zxHc3CQwl 7f+w== X-Received: by 10.152.42.135 with SMTP id o7mr395890lal.77.1406835866768; Thu, 31 Jul 2014 12:44:26 -0700 (PDT) Original-Received: by 10.112.72.163 with HTTP; Thu, 31 Jul 2014 12:44:06 -0700 (PDT) In-Reply-To: X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84734 Archived-At: Well, this is the best I could come with, considering that emacs regexps have no negative look-ahead or any fancy stuff: (setq gnus-parameters '(("^[^:]+$" (gcc-self . t) (gnus-gcc-mark-as-read . t)))) It will work as long as there are no gmail labels including a ':'. If you know of a better approach, please tell me! Regards -- Carlos On Thu, Jul 31, 2014 at 4:18 PM, Carlos Pita wro= te: > Hi Tassilo, > > gcc-self is indeed a great tip, thank you! > > As you've become sort of my guru now, I'm asking you further: I'm > having a hard time trying to match my primary method groups by prefix, > as in "imap.*"; the problem is that these groups don't show the method > prefix, only the secondary ones, but I really want to get a similar > behavior for all my primary select method without having to match on a > per group basis. Is that possible? > > Regards > -- > Carlos > > On Thu, Jul 31, 2014 at 2:56 AM, Tassilo Horn wrote: >> Carlos writes: >> >> Hi Carlos, >> >>> 1) I would like to include my sent emails in the threads where they >>> belong, like in the "conversation" view gmail offers. >> >> I do the same. >> >>> There is a suggestion somewhere in the net to create a virtual group >>> merging the inbox and the sent mail groups, but this will only work >>> for threads in the inbox. Another option is to add a copy of any sent >>> mail to the current group, i.e. something like: >>> >>> (setq gnus-message-archive-group (lambda (g) (concat "nnimap+gmail:" g)= )) >>> >>> But this has some problems: 1.i) I don't know how to do this *only* for= the >>> gmail server. 1.ii) Obviously it doesn't work for emails sent from the >>> webmail. >>> >>> Nevertheless, being able to solve 1.i alone would be very good news for= me. >> >> Have a look at the `gcc-self' group parameter. >> >> ,----[ (info "(gnus)Group Parameters") ] >> | =E2=80=98gcc-self=E2=80=99 >> | If =E2=80=98(gcc-self . t)=E2=80=99 is present in the group param= eter list, newly >> | composed messages will be =E2=80=98Gcc=E2=80=99=E2=80=99d to the = current group. If >> | =E2=80=98(gcc-self . none)=E2=80=99 is present, no =E2=80=98Gcc:= =E2=80=99 header will be generated, >> | if =E2=80=98(gcc-self . "string")=E2=80=99 is present, this strin= g will be inserted >> | literally as a =E2=80=98gcc=E2=80=99 header. This parameter take= s precedence over >> | any default =E2=80=98Gcc=E2=80=99 rules as described later (*note= Archived >> | Messages::), with the exception for messages to resend. >> | >> | *Caveat*: Adding =E2=80=98(gcc-self . t)=E2=80=99 to the paramete= r list of =E2=80=98nntp=E2=80=99 >> | groups (or the like) isn=E2=80=99t valid. An =E2=80=98nntp=E2=80= =99 server doesn=E2=80=99t accept >> | articles. >> `---- >> >> Here's my gcc-self related settings: >> >> --8<---------------cut here---------------start------------->8--- >> (setq gnus-parameters >> `((,(rx "nnimap+") >> (gcc-self . t)) >> ;; Mailing List exceptions >> (,(rx "nnimap+Uni:ml/") >> (gcc-self . "nnimap+Uni:Sent")) >> (,(rx "nnimap+Fastmail:INBOX.mailinglists.") >> (gcc-self . "nnimap+Fastmail:INBOX.Sent Items")))) >> --8<---------------cut here---------------end--------------->8--- >> >> So I gcc the current group for all my IMAP accounts, except for mailing >> list groups, where I gcc the account's sent mail folder. >> >> To have that only for your Gmail account, you would change the regex to >> something like ,(rx "nnimap+Gmail") or whatever you've named your gmail >> account. >> >>> 2) I would like to postpone a message directly to a remote group >>> (ideally, the gmail drafts folder). Currently I'm able to locally >>> postpone a message and then move it to the remote group. A way to >>> automate this is what I can't come with (or, better, to directly store >>> the draft in the remote group, which I'm afraid is not possible). >> >> I think this question pops up here once in a while, but so far nobody >> seems to have implemented that feature. >> >> Bye, >> Tassilo