From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60785 Path: news.gmane.org!not-for-mail From: "romeomedina\@libero\.it" Newsgroups: gmane.emacs.gnus.general Subject: Re: How to make gnus store received mail in the directory Date: Tue, 16 Aug 2005 19:17:24 +0200 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1124212731 5140 80.91.229.2 (16 Aug 2005 17:18:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Aug 2005 17:18:51 +0000 (UTC) Cc: "romeomedina" Original-X-From: ding-owner+M9317=ding+2Daccount=gmane.org@lists.math.uh.edu Tue Aug 16 19:18:49 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E554B-0007wn-NS for ding-account@gmane.org; Tue, 16 Aug 2005 19:17:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1E554A-0004dQ-01 for ding-account@gmane.org; Tue, 16 Aug 2005 12:17:34 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1E5544-0004dI-00 for ding@lists.math.uh.edu; Tue, 16 Aug 2005 12:17:28 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1E5542-0002Bb-Tk for ding@lists.math.uh.edu; Tue, 16 Aug 2005 12:17:27 -0500 Original-Received: from smtp20.libero.it ([193.70.192.147]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1E547x-0003dv-00 for ; Tue, 16 Aug 2005 18:17:25 +0200 Original-Received: from localhost (172.16.1.84) by smtp20.libero.it (7.0.027-DD01) id 41D02C98030CDFC5 for ding@gnus.org; Tue, 16 Aug 2005 19:17:25 +0200 Original-Received: from libero.it (172.16.1.111) by smtp3.libero.it (7.0.027-DD01) id 42C445A50059F85E; Tue, 16 Aug 2005 19:17:24 +0200 X-Sensitivity: 3 Original-To: "ding" X-XaM3-API-Version: 4.1 (B27pl2) X-type: 0 X-SenderIP: 151.26.88.11 X-Virus-Scanned: by amavisd-new at libero.it serv5 X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60785 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60785 Many thanks to all who contributed to solve this interesting problem with their replies. I'm giving a report that might be useful to others in future. Rodolfo ------------------------------------------------------------------------- To make gnus store received mail in desired directory, let's call it /path/to/mydir, I put in my .gnus.el the following: (setq gnus-select-method '(nnml "received-mail" (nnml-directory "/path/to/mydir") )) , and it worked fine unless the desired directory was: /mnt/windows or one of its subdirs. In that case, when gnus tried to fetch new mail it failed, and in the echo area such a message appeared: Doing chmod: operation not permitted, /mnt/windows/mail-prova/mail/misc/60 . This happened because, when creating the new files where to put received = mail, gnus tries to do `chmod' in order to change the permissions of those files: all read and write permissions are denied to other users different from yourself: gnus is doing chmod as a security precaution, to ensure that your messages are not readable by anyone other than yourself. But, the /mnt/windows partition is a vfat one, as it was shown giving the mount command: [rodolfo@localhost rodolfo]$ mount /dev/hda8 on / type ext3 (rw) none on /proc type proc (rw) none on /proc/bus/usb type usbfs (rw) none on /sys type sysfs (rw) none on /mnt/floppy type supermount (rw,sync,dev=3D/dev/fd0,fs=3Dext2:vfat,= --,umask=3D0,iocharset=3Diso8859-15, codepage=3D850) /dev/hda1 on /mnt/windows type vfat (rw,umask=3D0,iocharset=3Diso8859-15,codepage=3D850) =0D , and vfat partitions lack of support for unix-style permissions. So, the gnus' request of doing 'chmod' could not be satisfied for /mnt/windows. That is the meaning of the error message. To solve the problem, all I had to do was to set `rodolfo' in /etc/fstab as /mnt/windows's owner. That way, all files and folders in /mnt/windows will be "simulated" owned by user rodolfo, group rodolfo (since there are no users/groups in reality, on a FAT file system). But actually, only the simulated owner is allowed to issue the chmod call on a mounted FAT file system. So, now gnus could do `chmod' through the user rodolfo and the problem was solved. To do so, I did: [rodolfo@localhost rodolfo]$ id uid=3D501(rodolfo) gid=3D501(rodolfo) groups=3D501(rodolfo) , and then in /etc/fstab I changed the line /dev/hda1 /mnt/windows vfat umask=3D0,iocharset=3Diso8859-15,codepage=3D850= 0 0 into /dev/hda1 /mnt/windows vfat umask=3D0,iocharset=3Diso8859-15,codepage=3D850= ,uid=3D501,gid=3D501 0 0 , where (see fstab man): /dev/hda1 is the first field; /mnt/windows is the second field; vfat is the third field; umask=3D0,iocharset=3Diso8859-15,codepage=3D850,uid=3D501,gid=3D501 is the = fourth field; 0 is the fifth field; 0 is the sixth field. =0D . The only problem left is that other users different from `rodolfo'=0D will not be able to store their mail into /mnt/windows. ____________________________________________________________ 6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero! Scaricalo su INTERNET GRATIS 6X http://www.libero.it