summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-03-10 15:20:59 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-03-10 15:20:59 -0300
commit1254c4a78ff6728e02609f72002c87783b1a610e (patch)
treef2bc3cb5d5fdef8bb45099d34b4c9de0d707902d /v4l
parent7b1dd4f2f9eabe19369f76fa871d6978eba4c79d (diff)
downloadmediapointer-dvb-s2-1254c4a78ff6728e02609f72002c87783b1a610e.tar.gz
mediapointer-dvb-s2-1254c4a78ff6728e02609f72002c87783b1a610e.tar.bz2
Some fixes and improvements at mailimport
From: Mauro Carvalho Chehab <mchehab@infradead.org> hg mq were offering some troubles, because it seems to be also updated at master site. So, now, default is not to use it. Several validations added. Also improved output log by separating subject from from: line. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l')
-rwxr-xr-xv4l/scripts/hghead.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/v4l/scripts/hghead.pl b/v4l/scripts/hghead.pl
index 5c5e63f1f..ddaef0767 100755
--- a/v4l/scripts/hghead.pl
+++ b/v4l/scripts/hghead.pl
@@ -66,7 +66,7 @@ while ($line = <IN>) {
die;
}
- if ($line =~ m/^Subject:\s*(.*)\n/) {
+ if ($line =~ m/^Subject:\s*(.*\n)/) {
$subject=$1;
next;
}
@@ -100,7 +100,7 @@ while ($line = <IN>) {
next;
}
- if ($line =~ m|^(V4L\/DVB\s*\(.+\)\s*:.*)\n|) {
+ if ($line =~ m|^(V4L\/DVB\s*\(.+\)\s*:.*\n)|) {
$subject=$1;
$line="\n";
}
@@ -147,6 +147,6 @@ $body=~s/\n+$//;
$body=~s/^\n+$//;
# First from is used by hg to recognize commiter name
-print "From: $maintainer_name <$maintainer_email>\n";
+print "#Committer: $maintainer_name <$maintainer_email>\n";
print "$subject\n$from\n$body\n\n$signed";