Re: mbox to Maildir

[email protected] (Randal L. Schwartz)
Newsgroups gmane.org.user-groups.linux.pdxlug
Message-ID <[email protected]>
>>>>> "Dylan" == Dylan Reinhardt <[email protected]> writes:

Dylan>         os.system('sudo %s mb2md -s /home/%s/%s' % (
Dylan>                                                    user_name, 
Dylan>                                                    user_name, 
Dylan>                                                    mbox_name))

I find Python syntax hard to read, but shouldn't that
be "sudo -u %s", and not "sudo %s"?

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.