Email gateway settings
head<=
<=head
body<=
{user} : 'exampleusername';
my $need_login = (! $u && ! $GET{mode}) ? 1 : 0;
my @address = split(/\s*,\s*/, $u->{emailpost_allowfrom});
my $addr = $address[0] || 'allowed_sender@example.com';
$addr =~ s/\(\w\)$//;
my $pin = $u->{emailpost_pin} || 'PIN';
my $to = "To: $user" . '@' . $LJ::EMAIL_POST_DOMAIN . '
';
my $to_pin = "To: $user+$pin" . '@' . $LJ::EMAIL_POST_DOMAIN . '
';
my $subject = "Subject: Neat, I can post via email." . '
';
my $from = "From: $addr
";
my $body = "This is the body of my post.";
if ($need_login) {
$ret .= '';
$ret .= "";
}
my @topics = (
{
name => 'pin',
title => 'Pin usage examples',
url => '?mode=help&type=pin',
text => qq{