Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] sup-sync-back not syncing all usual sources
@ 2007-06-14 16:13 jeff covey
  2007-06-17 20:30 ` William Morgan
  0 siblings, 1 reply; 5+ messages in thread
From: jeff covey @ 2007-06-14 16:13 UTC (permalink / raw)


sup-sync-back's help says "If no sources are given, sync back all usual
sources", but this doesn't seem to be happening.

i just tested it by commenting out the sup-sync-back section of my sup
wrapper script and marking a bunch of threads to be deleted.  then i ran
this:

sup-sync-back --move-deleted ~/tmp/sup-deleted.mbox --move-spam ~/tmp/sup-deleted.mbox

, and it acted as though there were nothing to be done.  then i reinstated
the part of my script which checks which sources need to be sync-backed
(included below), and it processed them all and moved the deleted messages
out of them as it should.

thanks,
jeff


ruby='ruby -I lib -w'
cd ~/tmp/sup/trunk

echo "checking for messages to delete..."
deletedids=`$ruby bin/sup-dump | grep deleted | sed -e 's/(.*//'`;
mboxes=~/mail/*-`date +%Y-%m`
for id in $deletedids ; do
	deletedmboxes=`grep -l $id $mboxes`;
	for mbox in $deletedmboxes ; do 
		$ruby bin/sup-sync-back --move-deleted ~/tmp/sup-deleted.mbox --move-spam ~/tmp/sup-deleted.mbox mbox://$mbox ;
		$ruby bin/sup-sync --changed mbox://$mbox ;
	done ;
done


-- 
jeff covey
http://jeffcovey.net/



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-08-30 19:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-14 16:13 [sup-talk] sup-sync-back not syncing all usual sources jeff covey
2007-06-17 20:30 ` William Morgan
2007-06-18  1:00   ` jeff covey
2007-07-10 18:21     ` William Morgan
2007-08-30 19:50       ` jeff covey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox