<<< Date Index >>>     <<< Thread Index >>>

Re: /mail/sent-mail: No such file or directory (errno = 2)



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday, August 16 at 07:36 PM, quoth James Miller:
> I added the line "set record="~/mail/sent-mail"" to .muttrc, but 
> then I could not send at all. Instead, when I would try to send mail 
> I'd get the message "/mail/sent-mail: No such file or directory 
> (errno = 2)".

Your error message suggests that it is not expanding the ~ correctly; 
it is just replacing it with nothing. The "/mail/sent-mail: ..." is 
not a name relative to your home directory, it's telling you that it's 
actually looking for /mail/sent-mail (i.e. a mailbox named "sent-mail" 
inside a directory named "mail" in your root directory, not in your 
home directory). Try fully specifying the path, rather than using a 
tilde. You can also try using $HOME rather than ~, if you need to be 
generic.

> I tried a number of different things to create a file or directory 
> called sent-mail under ~/mail: doing mkdir sent-mail, copying a 
> message to the ~/mail directory and renaming it sent-mail, saving a 
> message there and naming it sent-mail, etc . None of these things 
> satisfied mutt. I still get the message "/mail/sent-mail: No such 
> file or directory (errno = 2)" when trying to send mail.

None of that will have any effect if it's looking for the mailbox in 
the wrong location (as the error message suggests).

~Kyle
- -- 
'We hold these truths to be self-evident,' they said, 'that all men 
are created equal.' Strange as it may seem, that was the first time in 
history that anyone had ever bothered to write that down. Decisions 
are made by those who show up.
                                         -- Jed Bartlet, The West Wing
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFE5HlGBkIOoMqOI14RAqN6AKDDVpgRoz6m3wP0JpHGkSNr6L74rwCgvOYM
HCUAI76aJ3ICAjsLZONyMvU=
=nuc3
-----END PGP SIGNATURE-----