From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wei-Wei Guo Newsgroups: gmane.emacs.help Subject: Re: Is there any way to append a EasyPG encrypted file? Date: Thu, 01 Jul 2010 09:12:39 +0800 Message-ID: <4C2BEB87.7010603@gmail.com> References: <4C28BE81.8050205@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1277946208 2254 80.91.229.12 (1 Jul 2010 01:03:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Jul 2010 01:03:28 +0000 (UTC) Cc: Emacs To: Alex Bennee Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 01 03:03:27 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OU8Bb-00030y-9D for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Jul 2010 03:03:27 +0200 Original-Received: from localhost ([127.0.0.1]:33287 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OU8Ba-0004XK-TL for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Jun 2010 21:03:26 -0400 Original-Received: from [140.186.70.92] (port=33983 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OU8B9-0004XB-MG for help-gnu-emacs@gnu.org; Wed, 30 Jun 2010 21:03:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OU8B8-0001Zf-B8 for help-gnu-emacs@gnu.org; Wed, 30 Jun 2010 21:02:59 -0400 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:41951) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OU8B8-0001Zb-5S for help-gnu-emacs@gnu.org; Wed, 30 Jun 2010 21:02:58 -0400 Original-Received: by pwi9 with SMTP id 9so1218197pwi.0 for ; Wed, 30 Jun 2010 18:02:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=JqNLiRESEQV5VN3CygrpE9YGo7nkeXXQjLBrQzkKatQ=; b=W1SoqWpGuSMDPXNU0hbseQ5hkX+1cqVi/Faw6GtGmwaxGt2q/HZhWIsuZt4YHBKtNP pIb8q8VuCeG0LrRVJlTETM+DSMI5ZT1SrJImGzSDh09Yf0w1f2UWLt9cLeVpw96Kl5hs FVvaHBoqJtkGQw/x/b1y0opjp7D8EbLBZxF/M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=uOuOybSJwGZ+uCwNsMm+RN+zqxIT8JBX/VyN/7Xy/Sg5tbfUxUMvd6PNfVN3hRVNxr 656PhNDUs2WGI0ptmxtU8oaPmR8Qh5/po60JKmTdDNndj7HLA2J3Ma7L2FN65JxAv2x+ fzkkA0TUhzPxH9BVTA6o5BBKkp9Blh33G4xtA= Original-Received: by 10.142.10.5 with SMTP id 5mr11469911wfj.267.1277946176371; Wed, 30 Jun 2010 18:02:56 -0700 (PDT) Original-Received: from [192.168.0.101] ([124.160.104.140]) by mx.google.com with ESMTPS id w36sm6368924wfh.2.2010.06.30.18.02.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 30 Jun 2010 18:02:54 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:74026 Archived-At: Hi Alex, >> >> I use GnuPG key to encrypt my 'remember' file, but EasyPG does not support >> appending file. >> Is there any way to append an encrypted file? > > Not without decoding and re-encoding the file. > I find the following lines in the epa-file.el: (defun epa-file-write-region (start end file &optional append visit lockname mustbenew) (if append (error "Can't append to the file")) ... It seems easypg disable the ability intentionally. I don't know how to solve... > I suppose you could come up with some sort of scheme that would > result in a text file with a series of ASCII armored GPG blocks that can be > decoded and concatenated together when read. > I don't understand what to do. Could you say something more? Best wishes, Wei-Wei