Debian Codegraph @

sendmail/README

raw
1 SendMail
2 ========
3
4 .. contents::
5
6 About
7 ------
8
9 SendMail is a little plugin to send a document as attachment
10 using the preferred mail client from inside Geany. It is similar to
11 the envelope symbol of most office tools and requires a mail client
12 that is supporting remote calls.
13
14 This is not a direct binding to sendmail, even if it could be used for.
15
16
17 Requirements
18 ------------
19
20 For compiling the plugin yourself, you will need the GTK (>= 2.8.0)
21 libraries and header files. You will also need its dependency
22 libraries and header files, such as Pango, Glib and ATK. All these
23 files are available at http://www.gtk.org.
24
25 And obviously, you will need to have Geany installed. If you have Geany
26 installed from the sources, you should be ready to go. If you used a
27 prepared package e.g. from your distribution you probably need to
28 install an additional package, this might be called geany-dev or
29 geany-devel. Please note that in order to compile and use this plugin,
30 you need Geany 1.26 or later (Geany Plugin API v224 or higher).
31
32 Furthermore you need, of course, a C compiler and the Make tool. The
33 GNU versions of these tools are recommended.
34
35
36 Installation
37 ------------
38
39 This version of the plugin is installed with the combined
40 geany-plugins release. Please check README of this package or download
41 stand alone version of plugin from
42 http://frank.uvena.de/en/Geany/SendMail/
43
44
45 Usage
46 -----
47
48 After installed successfully, load the plugin in Geany's plugin
49 manager and a new menu item in the Tools menu will appear. Before you
50 can start you need to configure your mail client. This can be done in
51 the configuration dialog (details on it later). You can also assign a
52 keyboard shortcut in Geany's preferences dialog to send your document.
53
54
55 Configuration
56 -------------
57
58 In the configuration dialog you can set up a command that is called by
59 the plugin to communicate with your mail client. Depending on what's
60 your favorite mailer, the command will differ. A number of
61 placeholders are available for doing this:
62
63 * %s: Will be replaced by the complete path of the file that should be send.
64 * %r: Will be replaced by one or more recipient's email address that can be
65 entered inside a separate dialog. (Please remember during input, what your
66 mail client is expecting here)
67 * %b: Will be replace by the file name. For a file /tmp/foo.baa it will be
68 replaced by foo.baa.
69
70 Depending on how you like to use, you can combine all of the
71 placeholders to build up your command. It is possible to use one
72 placeholder several times. When using keep care, as the placeholders
73 are replace step by step, so a filename containing %b might have some
74 funny outcome. However, examples could be:
75
76 Sylpheed:
77 sylpheed --attach "%f" --compose "%r"
78 mutt:
79 mutt -s "Sending '%b'" -a "%f" "%r"
80 Mozilla Thunderbird at Windows:
81 "C:\Program Files\Mozilla Thunderbird\thunderbird.exe" \
82 -compose to="%r",subject="%b",attachment="%f"
83 Evolution:
84 evolution "mailto:?to=%r&attachment=%f"
85 evolution "mailto:?attachment=%f"
86
87 In theory it should also work together with tools like Microsoft
88 Outlook - Unfortunately the author wasn't able to bring it up
89 running. Input for the correct commandline is highly welcome.
90
91
92 Development
93 -----------
94
95 You can checkout the current source code from the git repository at
96 github.com. Get the code by:
97
98 git clone https://github.com/geany/geany-plugins.git
99
100 If you want to create a patch, please respect the license of
101 SendMail (GPLv2 or above) as well as intellectual property of
102 third. Patches that should be included to the default distribution
103 must be licensed under the same conditions as SendMail by the
104 copyright owner.
105
106
107 Known issues
108 ------------
109
110 In case you are working with white spaces either in your path names,
111 file names or at mail addresses (e.g. for separating two addresses)
112 you should keep care of proper quoting since %s, %b and %r will be
113 replaced without any quotes.
114
115 For more recent information, issues will be tracked at
116 https://github.com/geany/geany-plugins/issues
117
118
119 License
120 -------
121
122 SendMail and all its parts is distributed under the terms of the
123 GNU General Public License as published by the Free Software
124 Foundation; either version 2 of the License, or (at your option) any
125 later version. A copy of this license can be found in the file COPYING
126 included with the source code of this program. If not, you will be
127 able to get a copy by contacting the Free Software Foundation, Inc.,
128 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
129
130
131 Bugs, questions, bugs, homepage
132 ---------------------------------
133
134 If you found any bugs or want to provide a patch, please contact Frank
135 Lanitz (frank(at)geany(dot)org). Please also do so, if you got any
136 questions and visiting http://frank.uvena.de/en/Geany/SendMail
137 didn't help you to figure out the answer. Visiting the website is also
138 a good start if you want to check for any update on this plugin.