From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/18164 Path: news.gmane.org!not-for-mail From: Fkqqrr Newsgroups: gmane.emacs.gnus.user Subject: Re: make sent emails synced in imap sent folder Date: Tue, 08 Mar 2016 19:12:02 +0800 Organization: GNU/Linux Message-ID: <87k2ldnrzx.fsf@zhtux.jiantu.boxes> References: <87vb4y1hkp.fsf@zhtux.jiantu.boxes> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1457436256 31860 80.91.229.3 (8 Mar 2016 11:24:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Mar 2016 11:24:16 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Tue Mar 08 12:24:12 2016 Return-path: Envelope-to: gegu-info-gnus-english@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 1adFkJ-0000St-7u for gegu-info-gnus-english@m.gmane.org; Tue, 08 Mar 2016 12:24:11 +0100 Original-Received: from localhost ([::1]:33838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adFkI-0006rE-Bs for gegu-info-gnus-english@m.gmane.org; Tue, 08 Mar 2016 06:24:10 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uio.no!quimby.gnus.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 42 Original-NNTP-Posting-Host: 218.199.31.209 Original-X-Trace: quimby.gnus.org 1457435601 12427 218.199.31.209 (8 Mar 2016 11:13:21 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Tue, 8 Mar 2016 11:13:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:Crxy7Fj+B1ltep5o0OrrtXznX/w= Original-Xref: usenet.stanford.edu gnu.emacs.gnus:89293 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:18164 Archived-At: Eric Abrahamsen writes: > fkqqrr writes: > >> When sending email in Gnus, 'sent' emails by default go into >> 'archive' folder locally. I missed some clues. Some imap account will automatically sync a copy of sent emails to imap sent folder as well as local archive folder. But another imap email account won't do this. That's weird. > > You can set the `gnus-message-archive-group' option to the desired > "Sent" folder. If you have more than one account you're trying to set > up, you can set that option to a function that takes one argument, a > group name, and returns the appropriate archive group. In my case: > > (defun my-archiver-figure-outer (group) > (cond ((string-match-p "nnimap\\+This-Account\\|gmane" group) > "nnimap+This-Account:Sent") > ((string-match-p "nnimap\\+That-Account" group) > "nnimap+That-Account:Sent"))) > Hi Eric, '\\|gmane' above is to place 'sent messgages in gmane' to your email server? That means 'This-account' (email) and gmane (news) share the same sent folder of your email account. A possible guess is you use 'This-account' to post messages to gmane news groups. Currently I only have one smtp account while many imap acount. It seems that Gnus does not support another 'That-Account', right? > (setq gnus-message-archive-group #'my-archiver-figure-outer) > > I might be wrong, but it should also be possible to set the Gcc header > in posting styles (?). > > Eric > > -- Whatever you are, be a good one