* Manoj Srivastava <sriva...@acm.org> [2016-01-20 23:54]:

On Thu, Jan 21 2016, Rafael Laboissiere wrote:

The attached patch fixed the problem for me. There may have other instances of defined(@array) in the code, but I did not check this carefully.

Uploaded, with a full check for all uses of the builtin defined.

Great, thanks.

And congratulations for your courage in maintaining a package with a so old code base.

The problem with messages that are not dropped in ~/mbox.$user, in case of failure, is a separate bug from the one that is addressed by my patch.

if can't write the message to your system mailbox (or whatever you have specified as your maildrop) (lock failure or permission denied), it tries ~/mbox.$USER, and, failing that, it drops it in the emergency directory (as specified in ~/.mailagent) .

I have the following in my ~/.mailagent:

   madir    : ~/.config/mailagent          # Main mailagent directory
   emergdir : $madir/lost+mail             # Emergency directory (for dumps)

and I do have:

   $ ls -ld ~/.config/mailagent/lost+mail
   drwxr-xr-x 2 rafael rafael 4096 Jan 21 09:42 
/home/rafael/.config/mailagent/lost+mail

However, after the failures that I had yesterday, the directory above was empty.

Moreover, with the buggy mailagent script I see the follwoing error messages in the log file:

   16/01/21 09:44:18 mailagent[178721]: MATCH on rule #319 in mode INITIAL
   16/01/21 09:44:18 mailagent[178721]: ERROR Can't use 'defined(@array)' (Maybe you 
should just omit the defined()?) at (eval 680) line 5, <DATA> chunk 606., while 
parsing code of compress'restore.
   16/01/21 09:44:18 mailagent[178721]: NOTICE not saved, leaving in mailbox
   16/01/21 09:44:19 mailagent[178721]: WARNING using /home/rafael/mbox.rafael 
for mailbox

but no /home/rafael/mbox.rafael was created in the system. Even if I do "touch /home/rafael/mbox.rafael", it does not help. This is probably a bug in mailagent. Should I file a separate bug report?

Rafael

Reply via email to