Skip to content

Commit a443a24

Browse files
New files organization
Signed-off-by: Aurélien PIERRE <[email protected]>
1 parent 514257c commit a443a24

13 files changed

+347
-214
lines changed

Debian/scan2thunderbird_0.2.deb

13.8 KB
Binary file not shown.

Debian/scan2thunderbird_1.0-beta.deb

15.8 KB
Binary file not shown.

Debian/scan2thunderbird_1.0.deb

14.5 KB
Binary file not shown.

Icons/s2t.png

6.63 KB
Loading

Icons/scan2thunderbird.png

249 KB
Loading

Icons/scan2thunderbird.svg

+330
Loading

Icons/scan2thunderbird.xcf

611 KB
Binary file not shown.

README.md~

-76
This file was deleted.
File renamed without changes.
File renamed without changes.

scan2thunderbird.sh~ Scripts/scan2thunderbird.sh

+17-26
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
#!/bin/bash
2-
# Scan2Thunderbird GUI #
3-
# v0.2 #
4-
# #
2+
# Scan2Thunderbird GUI #
3+
# v1.0 #
4+
# #
55
# To run, this script needs this packages : #
66
# sane, imagemagick, gzip, thunderbird, zenity & shred #
77
# #
88
# GNU Public License v3 #
99
# #
1010
# Copyright © 2012 Aurélien PIERRE #
11-
# https://aurelienpierre.com - [email protected] #
11+
# https://aurelienpierre.com - [email protected] #
1212
# #
1313
# #
1414
# Scan2Thunderbird is free software: you can redistribute it and/or modify #
15-
# it under the terms of the GNU General Public License as published by #
16-
# the Free Software Foundation, either version 3 of the License, or #
17-
# (at your option) any later version. #
18-
# #
19-
# This program is distributed in the hope that it will be useful, #
15+
# it under the terms of the GNU General Public License as published by #
16+
# the Free Software Foundation, either version 3 of the License, or #
17+
# (at your option) any later version. #
18+
# #
19+
# This program is distributed in the hope that it will be useful,#
2020
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
2121
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
2222
# GNU General Public License for more details. #
@@ -142,7 +142,6 @@ rescan() {
142142
clean() {
143143
shred -n 35 -z -u /tmp/$name-*.tiff
144144
shred -n 35 -z -u /tmp/$name-*.jpeg
145-
shred -n 35 -z -u /tmp/$name.pdf.gz
146145
shred -n 35 -z -u /tmp/$name*.pdf
147146
}
148147

@@ -258,14 +257,9 @@ quit "$?"
258257
--auto-close
259258
quit "$?"
260259

261-
# Compress the PDF file
262-
263-
cp /tmp/$name.pdf /tmp/$name-2.pdf
264-
gzip --best -f /tmp/$name.pdf
265-
266260
# Check file weight
267261

268-
FILESIZE=$(stat -c%s "/tmp/$name.pdf.gz")
262+
FILESIZE=$(stat -c%s "/tmp/$name.pdf")
269263

270264
qual=$quality
271265

@@ -281,23 +275,21 @@ quit "$?"
281275
rescan "$min_resolution" "$min_crop" "$pages" "$couleur" "$qual"
282276
merge "$min_resolution" "$min_crop" "$pages" "$couleur" "$qual"
283277

284-
cp /tmp/$name.pdf /tmp/$name-2.pdf
285-
gzip --best -f /tmp/$name.pdf
286-
287-
FILESIZE=$(stat -c%s "/tmp/$name.pdf.gz")
278+
FILESIZE=$(stat -c%s "/tmp/$name.pdf")
288279

289280
qual=$(($qual-1))
290281
done
291282

292283
# Preview and send
293284

294-
evince /tmp/$name-2.pdf &
295-
thunderbird -compose "to='',subject='',body='$txt9',attachment='file:///tmp/$name.pdf.gz'"
285+
evince /tmp/$name.pdf &
286+
thunderbird -compose "to='',subject='',body='',attachment='file:///tmp/$name.pdf'"
296287
wait $!
297288

298-
if [ ps -p $! ]; then
299-
sleep 500
300-
fi
289+
while [ ps -p $! ]
290+
do
291+
sleep 500
292+
done
301293

302294

303295
delete=`zenity --question --text="$txt24 $name.pdf ?"`
@@ -306,7 +298,6 @@ quit "$?"
306298

307299
if [ "$?" -eq "0" ]; then
308300
file=`zenity --file-selection --save --filename=/$HOME/$USER/ --title="$txt25 ?"`
309-
cp /tmp/$name-2.pdf /$file.pdf
310301
clean
311302
else
312303
clean

changelog~

-27
This file was deleted.

scan2thunderbird-fr_FR.po~

-85
This file was deleted.

0 commit comments

Comments
 (0)