Question about a new feature
John Bailey
rekkanoryo at rekkanoryo.org
Tue Jul 2 21:36:54 EDT 2013
On 07/02/2013 10:50 AM, Ethan Blanton wrote:
> I am moving this thread to support at pidgin.im, where it more properly
> belongs.
>
> 1 2 spake unto us the following wisdom:
>> I am using pidgin since 2009 and I am recording all conversations.
>> I have 5 mail accounts opened in the same time.
>
> This is common, and supported.
>
>> Can someone add a feature to zip all the logs? Let's say if the log
>> file is older then 1 month move it automaticly to the archive? I have
>> some small problems when I make a backup/restore to my operating
>> sistem (win2008 server)
>
> I'm sorry to hear that your OS and/or backup program is so limited.
> Unfortunately, this is not something that Pidgin handles, or should
> handle. The way Pidgin logs are stored, this is trivially handled by
> an external program, and that would be our recommendation for this
> case. If you were on a Unix system you could handle this with a cron
> job and a five line shell script. On Windows, I don't know how you
> would accomplish the same thing, but I am sure there is a way.
In the vein of Ethan's response, a .bat file can be trivially written to do this
on Windows, like so:
@echo off
:: adjust these paths as appropriate
set logdir=%APPDATA%\.purple
set archivedir=C:\archive
cd %logdir%
:: Comment out the line for the log format you DON'T use
forfiles /d -31 /m *.html /c "cmd /c move @file %archivedir%"
forfiles /d -31 /m *.txt /c "cmd /c move @file %archivedir%"
(Note to Windows XP users: forfiles is not part of the OS. Get it from the
resource kit or from a Windows Server 2003 system.)
Schedule the task to run as desired. Server 2008's new task scheduler adds some
scheduling features that finally make it match cron's flexibility on UNIX-like
systems.
John
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://pidgin.im/pipermail/support/attachments/20130702/26ef8471/attachment.sig>
More information about the Support
mailing list