Navigation Menu

Skip to content

Commit

Permalink
Removed --redo option; it causes dupes as the maildir filenames change.
Browse files Browse the repository at this point in the history
(Since the ,S=$SIZE field will usually change if we made changes to the
output that would require a --redo ...)
  • Loading branch information
icculus committed Jun 20, 2016
1 parent 499fe68 commit f9e4a22
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions archive_imessage.pl
Expand Up @@ -34,8 +34,6 @@ sub signal_catcher {
$SIG{TERM} = \&signal_catcher;
$SIG{HUP} = \&signal_catcher;

my $redo = 0;

my $debug = 0;
sub dbgprint {
print @_ if $debug;
Expand All @@ -55,7 +53,6 @@ sub usage {
print STDERR "USAGE: $0 [...options...] <backupdir> <maildir>\n";
print STDERR "\n";
print STDERR " --debug: Enable spammy debug logging to stdout.\n";
print STDERR " --redo: Rebuild from scratch instead of only new bits.\n";
print STDERR " --html: Output HTML archives.\n";
print STDERR " --progress: Print progress to stdout.\n";
print STDERR " --attachments-shrink-percent=NUM: resize videos/images to NUM percent.\n";
Expand All @@ -73,8 +70,6 @@ sub usage {
foreach (@ARGV) {
$debug = 1, next if $_ eq '--debug';
$debug = 0, next if $_ eq '--no-debug';
$redo = 1, next if $_ eq '--redo';
$redo = 0, next if $_ eq '--no-redo';
$allow_html = 1, next if $_ eq '--html';
$allow_html = 0, next if $_ eq '--no-html';
$report_progress = 1, next if $_ eq '--progress';
Expand Down Expand Up @@ -482,7 +477,6 @@ sub split_date_time {
unlink($lastarchivetmpfname);

$lastarchivefname = "$maildir/imessage_last_archive_msgids.txt";
unlink($lastarchivefname) if ($redo);
if (open(LASTID,'<',$lastarchivefname)) {
my $globalid = <LASTID>;
chomp($globalid);
Expand Down

0 comments on commit f9e4a22

Please sign in to comment.