Re: Problem with T-bird (was Re: Mail Issues (pt 2 ))
Steve Lamb <grey@dmiyu.org>:
> Ron Johnson wrote:
> > After reading how much you like T-bird, I installed it and tried
> > it. However, it does not let me use sendmail as the outgoing
> > email method. That's... unbelievable.
>
> Sure it can, it just uses the SMTP method of access. Want to know what is
> unbelievable? mutt not being able to use anything but the command line
> method. How 80s is that? You'd think the past 20+ years didn't exist.
What are you bitching about now? I seldom type the letters "mutt" at
a command line; only when I want to blast an existing file somewhere.
The rest of the time, Gkrellm fires it up inside an xterm. With the
following, a web browser will do the same with mailto links (Ben
Okopnik is editor at linuxgazette.net):
--------------------------------------------
#!/usr/bin/perl -w
#
# install in /usr/local/bin/pinehelper.pl, create a link
# /usr/bin/pinehelper which points at it, then edit the user's
# prefs.js in ~/.mozilla/firefox/$blah.default:
#
# user_pref("network.protocol-handler.app.mailto", \
# "/usr/bin/pinehelper");
#
# 13Nov2005 Ben Okopnik 0001 Fix Firefox mailto: handling
#
use diagnostics;
use warnings;
use strict;
my ( @chunks, $k, $v, %header, $opts);
@chunks = split /[?&]/, shift;
for ( @chunks ) {
( $k, $v ) = split /[:=]/;
# Cheap-ass entity conversion
#
( $header{ $k } = $v ) =~ s/%(..)/pack("H2",$1)/eg;
}
# Define Mutt switches for any headers we're interested in, including
# optional ones
#
$opts = qq[ -s "$header{subject}" ] if exists $header{subject};
$opts .= $header{mailto};
exec qq(/usr/bin/rxvt -fn q(-*-*-medium-r-*-*-*-100-*-*-*-*-iso8859-1)) .
( -geometry 103x52-68+42 -T Mutt -e /usr/bin/mutt $opts) ||
die qq(Blue? No, red?! Aiiii! $!);
--------------------------------------------
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling Linux Counter #80292
- - Spammers! http://www.spots.ab.ca/~keeling/emails.html
http://www.ietf.org/rfc/rfc1855.txt
Reply to: