[Nh-pm] Modifying mtime with Perl?

Ken D'Ambrosio ken at flyingtoasters.net
Tue Mar 4 11:15:04 CST 2003


I know how to -get- the mtime with stat(); that's easy enough.  How do I
-set- the mtime?  I'm changing IMAP servers, and need to do a s/\r//; on 
all the e-mail files, but the server keeps track of when the mail
"arrived" based on the mtime (or maybe ctime; experimentation will tell),
so I need to save it, chop off my carriage returns, then re-set the
correct time.  Can't seem to figure it out from the perlfunc manpage, nor
cpan.

Thanks,

-Ken





More information about the Nh-pm mailing list