Greg Minshall | 1 Jul 2008 19:52
Picon
Favicon

Re: posting messages from a laptop via smtp with tls

Stephen,

i queue up from MH-E (those capitals hurt!) to Postfix on my Mac OS X
laptop.  postfix is configured to connect to a local port, and i use ssh
tunneling to send that out a port on a host "inside the firewall" (if
you will).  the ssh command line looks (something) like:
----
ssh -X -1 -D9735 -L110:foo.bar.com:110 -L26:foo.bar.com:25 \
                        -i ~USER/.ssh/identity -l USER foo.bar.com
----

while postfix will occasionally try to connect, i run a little script:
----
sendmail -q
----
(which postfix emulates) when i'm connected.

this isn't the best solution for me (and i'll probably look at how Bill
got SMTP AUTH working in postfix at some point), but it's handy, and
maybe it will be for you, too.

cheers, Greg Minshall

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
Stephen Eglen | 2 Jul 2008 17:36
Picon
Picon
Favicon

Re: posting messages from a laptop via smtp with tls

Thanks to Greg and Bill for suggestions on using a MTA on the laptop;
as mac seems to have postfix, my first attempt will be to follow the
suggestions on this page (as it seems smtp.gmail.com is open to all
gmail users).
  http://www.installationexperiences.com/?p=87

Stephen

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
Stephen Eglen | 2 Jul 2008 18:54
Picon
Picon
Favicon

Re: posting messages from a laptop via smtp with tls

Stephen Eglen <S.J.Eglen <at> damtp.cam.ac.uk> wrote:

> Thanks to Greg and Bill for suggestions on using a MTA on the laptop;
> as mac seems to have postfix, my first attempt will be to follow the
> suggestions on this page (as it seems smtp.gmail.com is open to all
> gmail users).
>   http://www.installationexperiences.com/?p=87

Just to confirm: these instructions work a charm on my mac!  The only
"gotcha" is that by default, the From: field is set to your gmail
account, but there is a way of changing that (at least so that when
people reply to your email, it can go to an address other than gmail:)

  "The solution is to go into your gmail Settings:Accounts and "Make
  default" an account other than your gmail account. This will cause
  gmail to re-write the From field with whatever the default account's
  email address is."

http://lifehacker.com/software/email-apps/how-to-use-gmail-as-your-smtp-server-111166.php

Stephen

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
Jon Fairbairn | 9 Jul 2008 11:26
X-Face
Picon
Picon
Favicon

mail-citation-hook, mail-citation-header


I've been using mh for longer than I can remember¹, and exmh
pretty much since it became available. I've never liked exmh
much and a recent os upgrade to Fedora 9 has made font
selection in exmh unworkable, so I've started using mh-e
instead.  I'm pretty familiar with elisp, so a bit of
tweaking has got it to do more-or-less what I want.

I'm stuck on inserting the appropriate from field when
replying.  I have numerous addresses, and when I reply to a
message sent to one of them, I want to extract that address
from the recipients list of the message being replied to and
put in a From: component. Given the recipients list, getting
the right address is straightforward, but getting hold of
the recipients of the original message escapes me. I've
tried several different methods:

1) define mail-citation-hook. Documentation for
mail-citation-hook says 

   The hook functions can find the header of the cited
   message in the variable `mail-citation-header', whether
   or not this is included in the cited portion of the
   message.

which would be fine, except that mail-citation-header always
seems to be nil when called by mh-reply.

2) Use repl[group]comps to insert an
X-replied-to-message-recipients header, and then put
(Continue reading)

Mike Kupfer | 12 Jul 2008 00:53
Picon
Favicon

Re: mail-citation-hook, mail-citation-header

>>>>> "Jon" == Jon Fairbairn <jon.fairbairn <at> cl.cam.ac.uk> writes:

Jon> How do I get hold of the recipient list of the message being
Jon> replied to?

Do you really need to extract it from the original message?  If MH(-E)
is configured so that the reply's cc list contains all the original
recipients, you could have a letter-mode hook that looks through the cc
list in the reply.

mike

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
Jon Fairbairn | 12 Jul 2008 10:21
X-Face
Picon
Picon
Favicon

Re: mail-citation-hook, mail-citation-header

Mike Kupfer <m.kupfer <at> acm.org> writes:

>>>>>> "Jon" == Jon Fairbairn <jon.fairbairn <at> cl.cam.ac.uk> writes:
>
> Jon> How do I get hold of the recipient list of the message being
> Jon> replied to?
>
> Do you really need to extract it from the original message? 

yes.

> If MH(-E) is configured so that the reply's cc list
> contains all the original recipients, you could have a
> letter-mode hook that looks through the cc list in the
> reply.

But if I reply to "from" only, I don't want anything in the
cc list of the composed message. For my purposeses, I need
to know how the message got to me (To and cc etc in the
original message), not where it's going.

--

-- 
Jón Fairbairn                                 Jon.Fairbairn <at> cl.cam.ac.uk
http://www.chaos.org.uk/~jf/Stuff-I-dont-want.html  (updated 2008-04-26)

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
(Continue reading)

Douglas Alan | 30 Jul 2008 18:17
Picon
Favicon

MH-E with Gnu Mailutils and Gmail

Hey, has anyone gotten MH-E to work with Gnu Mailutils backed by Gmail
using IMAP?  (And had it work well?)  It seems to me that if that
worked, it would be "killa".

|>oug

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Bill Wohler | 30 Jul 2008 18:26
Picon
Picon
Gravatar

Re: MH-E with Gnu Mailutils and Gmail

Douglas Alan <doug <at> alum.mit.edu> wrote:

> Hey, has anyone gotten MH-E to work with Gnu Mailutils backed by Gmail
> using IMAP?  (And had it work well?)  It seems to me that if that
> worked, it would be "killa".

The only person that I'm aware of that uses GNU Mailutils at all is
Daryl Henman <dhenman <at> gmail.com> (and that's on Windows!) but I don't
recall if he was using IMAP. Daryl?

> X-Mailer: MH-E 7.84; nmh 1.1; GNU Emacs 21.4.1

Wow, that's old :-). nmh 1.3 is out, GNU Emacs 23 is going into feature
freeze and I'm shooting to release MH-E 8.1 on Saturday to get it into
Emacs 23.

--

-- 
Bill Wohler <wohler <at> newt.com>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane