Re: wl-fcc not working with smtpmail-send-it

Dimitrios Apostolou <[email protected]> Mon, 26 Mar 2018 18:01:41 +0200
Newsgroups gmane.mail.wanderlust.general
Message-ID <87y3ie6d22.wl-jimis__46502.8364946649$1522080192$gmane$org@gmx.net>
On Mon, 26 Mar 2018 15:48:52 +0200,
Kazuhiro Ito wrote:
> 
> Hi,
> 
> > I have configured Wanderlust to send email using smtpmail-send-it,
> > as that was the only way to make it cooperate with SUBMISSION at
> > port 587. However I can't make FCC working, in particular I want to
> > file the sent messages directly into an IMAP folder. Here are the
> > relevant parts from my .wl config:
> 
> You need to take care of sendlog for Fcc: header working.  If you want
> to send mail with sendmail, wl-draft-send-mail-function's value should
> be wl-draft-send-mail-with-sendmail.  If you have to use
> smtpmail-send-it, you need wrapper function similar to
> wl-draft-send-mail-with-sendmail function, which is wrapper for
> sendmail-send-it funciton.

Thanks, I had no clue that a wrapper is needed. Maybe I'll give it a shot,
since "smtpmail" seems to be the default emacs SMTP library these days. That
would be my first patch in elisp, is a pull request on github the right way?

> 
> Additionally, default wl-draft-send-mail-with-smtp function supports
> submission port.  For example, below is settings for Gmail.
> 
> (setq wl-smtp-posting-server "smtp.gmail.com"
>       wl-smtp-posting-port 587
>       wl-smtp-posting-user "your_username"
>       wl-smtp-connection-type 'starttls
>       wl-smtp-authenticate-type "PLAIN")

Hmmm, I had spent many days (!) unsuccessfully trying to make that work in the
past. Another attempt now, the function seems to be getting my settings
correctly (starttls, 587, PLAIN) but here is what I'm getting in the log:


220 gmx.com (mrgmx002) Nemesis ESMTP Service ready
250-gmx.com Hello jimisX1.blahfqdn [171.23.129.33]
250-AUTH LOGIN PLAIN
250-SIZE 69920427
250 STARTTLS
220 OK
250-gmx.com Hello jimisX1.blahfqdn [171.23.129.33]
250-AUTH LOGIN PLAIN
250 SIZE 69920427

Process SMTP deleted
EHLO jimisX1.blahfqdn
503 Bad sequence of commands
HELO jimisX1.blahfqdn
503 Bad sequence of commands
QUIT
221 gmx.com Service closing transmission channel


The log seems to be missing some parts (maybe the encrypted parts after
STARTTLS) but my settings are correct I believe:

(setq
      wl-smtp-connection-type 'starttls
      wl-smtp-posting-server  "mail.gmx.net"
      wl-smtp-posting-user    "myusername"
      wl-smtp-posting-port    587
      wl-smtp-authenticate-type "PLAIN"
      wl-local-domain         "bluefqdn"
;;      wl-message-id-domain    "mail.gmx.net"
      wl-fcc                    "%gmx.sent"
      wl-fcc-force-as-read      t
      )

Thanks,
Dimitris