File: textencoding.template

package info (click to toggle)
dotfile 1%3A2.4-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,472 kB
  • ctags: 523
  • sloc: tcl: 14,072; sh: 918; makefile: 177; lisp: 18; ansic: 7
file content (75 lines) | stat: -rw-r--r-- 2,772 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
### Copyright (C) 1996 Rasmus Ingemann Hansen
### This program is free software; you can redistribute it and/or modify
### it under the terms of the GNU General Public License as published by
### the Free Software Foundation; either version 2 of the License, or
### (at your option) any later version.
###
### This program is distributed in the hope that it will be useful,
### but WITHOUT ANY WARRANTY; without even the implied warranty of
### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
### GNU General Public License for more details.
###
### You should have received a copy of the GNU General Public License
### along with this program; if not, write to the Free Software
### Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.


proc textencoding {} {
    # Editing / Textencoding
    Desc "Encoding to Content-Transfer-Encoding header"
    ShortDesc "Textencoding"

### textencoding ###
    Header head1 \
	-text "Textencoding for your outgoing messages" \
	-background gray

    Radio textencodeRadio1 \
	-text "How MIME capable readers should decode your mail:" \
	-entryhelp {
		"7bit" "Implies no encoding" \
		"8bit" "Implies no encoding" \
		"base64" "Metamail has a program called \"mimeencode\" that you can use to turn your message into a base64/quoted-printable encoded message." \
		"quoted-printable" "Metamail has a program called \"mimeencode\" that you can use to turn your message into a base64/quoted-printable encoded message." \
	} \
	-packFrame:fill x

    foreach widget { head1 textencodeRadio1 } {
	Help $widget "(Option available in Elm Ver2.4 PL23 & PL24 only.) MIME, Multipurpose Internet Mail Extension (RFC 1341), provides a way to attach postscript(.ps), graphics(.jpeg), video(.mpeg), ..., and binary. This enables (non US citizens) to use their local characters above the 128 charcters (8bit). Notice that Elm doesn't look at this value; it is just placed in your outgoing mail headers."
    }

  ############################### ShowPage ################################
    ShowPage {
	if {[set version@versionRadio2(index)]==2} {
		Disable textencodeRadio1
	} else {
		Enable textencodeRadio1
	}
    }

  ################################ Change #################################
    Change {

    }

  ############################## Init / Save ##############################

    Init {
    }

    Save {
	print "\n# Type of encoding to be put into the MIME Content-Transfer-Encoding header.\n# Usual values are 7bit or 8bit."
	if {$textencodeRadio1(index)==0} {
		print "textencoding = 7bit"
	} elseif {$textencodeRadio1(index)==1} {
		print "###textencoding = 8bit"
	} elseif {$textencodeRadio1(index)==2} {
		print "textencoding = base64"
	} else {
		print "textencoding = quoted-printable"
	}
    }
}