···33#
44# imap biff with meow/growl/dbus notification
55#
66-# Copyright (c) 2006, 2008 joshua stein <jcs@jcs.org>
66+# Copyright (c) 2006, 2008, 2010, 2013 joshua stein <jcs@jcs.org>
77# ssl work-around code from Nick Burch (http://gagravarr.org/code/)
88#
99# Redistribution and use in source and binary forms, with or without
1010# modification, are permitted provided that the following conditions
1111# are met:
1212-#
1212+#
1313# 1. Redistributions of source code must retain the above copyright
1414# notice, this list of conditions and the following disclaimer.
1515# 2. Redistributions in binary form must reproduce the above copyright
···1717# documentation and/or other materials provided with the distribution.
1818# 3. The name of the author may not be used to endorse or promote products
1919# derived from this software without specific prior written permission.
2020-#
2020+#
2121# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
2222# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2323# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
···2828# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2929# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
3030# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3131-#
3131+#
32323333#
3434# to configure, re-define variables in a ~/.imapbiffrc file like so:
···5353#
5454# # for verbosity
5555# #$debug = 1;
5656+#
5757+# # ssl ca path, if not this default
5858+# $ssl_ca_path = "/etc/ssl/cert.pem";
5659#
5760# # which notification mechanism to use ("meow", "dbus", or "growl")
5861# $notify = "dbus";
···238241 PeerPort => ($config{$server}{"port"} ?
239242 $config{$server}{"port"} : 993),
240243 Timeout => 5,
244244+ SSL_verify_mode => SSL_VERIFY_PEER,
245245+ SSL_ca_path => $config{"ssl_ca_path"} ?
246246+ $config{"ssl_ca_path"} : "/etc/ssl/cert.pem"
241247 ) or die "no ssl socket: " . $@;
242248243249 $config{$server}{"sslsock"} = \$sock;