store log file in mailbox / mailfolder

@lbutlr kremels at kreme.com
Fri Mar 6 00:49:51 EET 2020


On 05 Mar 2020, at 07:00, Marc Roos <M.Roos at f1-outsourcing.eu> wrote:
> Say I am running some script on a user's mail account. What is the 
> easiest way to store the log output of this script directly into a mail 
> folder of this user? I do not want to send a message to the inbox.

command > /path/to/file

R dp you mean so that the log file appears as a “email” for the user?You’ll need to make a fake message and put the log file in the body, put that in the mail folder with appropriate permssionds and filename, an possibly rebuild the index.

Or, far simpler, would be to send a message to the inbox.




-- 
Live long enough to become a problem to your kids.




More information about the dovecot mailing list