Greetings!

I have got FreeBSD 10.2 amd64 and s-nail 14.8.6 compiled from the
tarball. .mailrc is following:

    set newfolders=maildir
    set record=/home/.../sent

I am trying to sent a message to myself:

    echo doesnot | s-nail -s matter [email protected]

Message is sent successfully, ~/sent directory (with tmp, cur, new
subdirectories) is created, but no files appearing in it. If I remove
newfolder option, then it will create mbox and append message to it
without any problems.

I tried exactly this tarball (compiling from source) in some GNU/Linux
machine with the same .mailrc config. It saves messages in newly created
Maildir without any problems.

Running s-nail under truss gives the following output (part of it, where
Maildir is checked):

    ...
    read(5,"Date: Sat, 16 Jan 2016 00:36:38 "...,4096) = 106 (0x6a)
    write(3,"From root Sat Jan 16 00:36:38 20"...,142) = 142 (0x8e)
    lseek(3,0x0,SEEK_SET)                            = 0 (0x0)
    stat("/home/stargrave/sent",{ mode=drwx------ 
,inode=41134,size=5,blksize=131072 }) = 0 (0x0)
    stat("/home/stargrave/sent/tmp",{ mode=drwx------ 
,inode=41135,size=2,blksize=131072 }) = 0 (0x0)
    stat("/home/stargrave/sent/new",{ mode=drwx------ 
,inode=41136,size=2,blksize=131072 }) = 0 (0x0)
    stat("/home/stargrave/sent/cur",{ mode=drwx------ 
,inode=41137,size=2,blksize=131072 }) = 0 (0x0)
    fstat(3,{ mode=-rw------- ,inode=19,size=142,blksize=4096 }) = 0 (0x0)
    fcntl(3,F_GETFL,)                                = 10 (0xa)
    lseek(3,0x0,SEEK_END)                            = 142 (0x8e)
    read(3,0x80404f000,4096)                         = 0 (0x0)
    close(3)                                         = 0 (0x0)
    stat("/usr/sbin/sendmail",{ mode=-r-xr-xr-x 
,inode=216973,size=8264,blksize=8704 }) = 0 (0x0)
    ...

So, as I understand, stat on tmp/new/cur subdirs worked with success
return codes.

Reading, searching, checking for the new mail, deleting messages works
in those FreeBSD without problems. If I try to "save" message in Maildir
folder, then it does nothing, again.

I tried chmod a+rwx to this Maildir, but it did not help.

Why s-nail is unable to append messages to Maildir? What could cause it?

-- 
Happy hacking, Sergey Matveev

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
S-nail-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/s-nail-users

Reply via email to