Changeset 3820:32103d4e01f0
- Timestamp:
- 2005-01-27 10:24:10 (4 years ago)
- Author:
- Marco d'Itri <md@…>
- Branch:
- HEAD
- Message:
-
Evaluate gpg's machine-parseable status messages.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r3816
|
r3820
|
|
| 32 | 32 | |
| 33 | 33 | # decode application/pgp |
| 34 | | set pgp_decode_command="/usr/bin/gpg --charset utf-8 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" |
| | 34 | set pgp_decode_command="/usr/bin/gpg --charset utf-8 --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" |
| 35 | 35 | |
| 36 | 36 | # verify a pgp/mime signature |
| 37 | | set pgp_verify_command="/usr/bin/gpg --no-verbose --quiet --batch --output - --verify %s %f" |
| | 37 | set pgp_verify_command="/usr/bin/gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f" |
| 38 | 38 | |
| 39 | 39 | # decrypt a pgp/mime attachment |
| 40 | | set pgp_decrypt_command="/usr/bin/gpg --passphrase-fd 0 --no-verbose --quiet --batch --output - %f" |
| | 40 | set pgp_decrypt_command="/usr/bin/gpg --status-fd=2 --passphrase-fd 0 --no-verbose --quiet --batch --output - %f" |
| 41 | 41 | |
| 42 | 42 | # create a pgp/mime signed attachment |
| … |
… |
|
| 79 | 79 | |
| 80 | 80 | # OK, here's a version which uses gnupg's message catalog: |
| 81 | | set pgp_good_sign="`gettext -d gnupg -s 'Good signature from "' | tr -d '"'`" |
| | 81 | # set pgp_good_sign="`gettext -d gnupg -s 'Good signature from "' | tr -d '"'`" |
| 82 | 82 | |
| | 83 | # This version uses --status-fd messages |
| | 84 | set pgp_good_sign="^\\[GNUPG:\\] GOODSIG" |
| | 85 | |
-
|
r3785
|
r3820
|
|
| 152 | 152 | line)); |
| 153 | 153 | |
| | 154 | if (strncmp (line, "[GNUPG:] ", 9) == 0) |
| | 155 | continue; |
| 154 | 156 | fputs (line, fpout); |
| 155 | 157 | fputc ('\n', fpout); |