Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 00127431FAF for ; Sat, 2 Mar 2013 03:50:55 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id trGorbu6rBmc for ; Sat, 2 Mar 2013 03:50:55 -0800 (PST) X-Greylist: delayed 332 seconds by postgrey-1.32 at olra; Sat, 02 Mar 2013 03:50:55 PST Received: from mail01.worldserver.net (mail.worldserver.net [217.13.200.24]) by olra.theworths.org (Postfix) with ESMTP id 32C97431FAE for ; Sat, 2 Mar 2013 03:50:55 -0800 (PST) Received: from rman-tp.localdomain (vz168.worldserver.net [80.81.243.68]) (Authenticated sender: mailer@campese.de) by mail01.worldserver.net (Postfix) with ESMTPSA id 086E830032E for ; Sat, 2 Mar 2013 12:53:43 +0100 (CET) Received: by rman-tp.localdomain (Postfix, from userid 1000) id 25E1EB7; Sat, 2 Mar 2013 12:46:33 +0100 (CET) From: Simon Campese To: notmuch@notmuchmail.org Cc: Subject: [BUG] inconsistent user context handling w/ tramp Date: Sat, 02 Mar 2013 12:46:33 +0100 Message-ID: <874nguxbvq.fsf@tu-dortmund.de> MIME-Version: 1.0 Content-Type: text/plain X-Mailman-Approved-At: Sat, 02 Mar 2013 09:47:30 -0800 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Mar 2013 11:50:56 -0000 Hello, after using tramp to open a file using the 'su' or 'sudo' protocol as user X, the next time I run 'compose-mail' to compose a message it apparently looks in the home directory of user X for its config file, mail directory etc. In the compose window, I get the error message 'Error reading configuration file $X_homedir/.notmuch-config: No such file or directory' in all header fields (From, Fcc etc.) that should be filled by notmuch ($X_homedir is the home directory of user X from above). This happens when using emacs in "standalone" mode or when connecting to a running instance of emacs with emacsclient. In the latter case, if one connects with another emacsclient, everything works properly again. However, this all suggests that notmuch should gather the user who is running emacs in a more robust way. Best wishes, Simon