Discussion:
[VM] IMAP-SSL with Exchange Server
Lewis Perin
2012-06-13 15:21:36 UTC
Permalink
At work, the authorities have ditched the previous mail server in favor
Microsoft Exchange. So far, I’ve been unable to fetch mail from the new
server using my vm 8.1.1 setup for imap-ssl (the server is set up to
reject “mere” imap.) By the way, I am able to get my mail using an
iPhone configured similarly to the way I’ve set up vm on Windows 7.

When I submit my password for the (default) inbox, the connection fails
immediately with

vm-imap-protocol-error: IMAP protocol error: "unexpected char (10)"
Uday Reddy
2012-06-13 15:41:59 UTC
Permalink
Post by Lewis Perin
When I submit my password for the (default) inbox, the connection fails
immediately with
vm-imap-protocol-error: IMAP protocol error: "unexpected char (10)"
Unless you have a working configuration of stunnel, I would suspect it
first. If you search vm.info archives on Google Groups you will find
earlier discussions of stunnel. Perhaps you can get stunnel to work with
some other IMAP server like gmail first to make sure that it works.

Upgrading to VM 8.2.0b might also help, because various improvements have
been made since the old release.

Cheers,
Uday
Lewis Perin
2012-06-13 19:09:51 UTC
Permalink
Post by Uday Reddy
Post by Lewis Perin
When I submit my password for the (default) inbox, the connection fails
immediately with
vm-imap-protocol-error: IMAP protocol error: "unexpected char (10)"
Unless you have a working configuration of stunnel, I would suspect it
first. If you search vm.info archives on Google Groups you will find
earlier discussions of stunnel. Perhaps you can get stunnel to work with
some other IMAP server like gmail first to make sure that it works.
I just checked against Gmail using imap-ssl, and it works fine with my
vm/stunnel setup.
Post by Uday Reddy
Upgrading to VM 8.2.0b might also help, because various improvements have
been made since the old release.
I can see there have been changes to vm-imap.el lately, so I guess I’ll
give it a try.

Has anyone reading this had experience connecting vm to a Microsoft
Exchange IMAP-SSL server? (Successful experience, I hope!)

/Lew
---
Lew Perin / ***@acm.org
http://babelcarp.org
Lewis Perin
2012-06-13 19:22:18 UTC
Permalink
Post by Lewis Perin
Post by Uday Reddy
Post by Lewis Perin
When I submit my password for the (default) inbox, the connection fails
immediately with
vm-imap-protocol-error: IMAP protocol error: "unexpected char (10)"
Unless you have a working configuration of stunnel, I would suspect it
first. If you search vm.info archives on Google Groups you will find
earlier discussions of stunnel. Perhaps you can get stunnel to work with
some other IMAP server like gmail first to make sure that it works.
I just checked against Gmail using imap-ssl, and it works fine with my
vm/stunnel setup.
Post by Uday Reddy
Upgrading to VM 8.2.0b might also help, because various improvements have
been made since the old release.
I can see there have been changes to vm-imap.el lately, so I guess I’ll
give it a try.
Oh, but wait: I see on Launchpad that 8.1.2 is more recent than 8.2.0b
and it’s recommended as an upgrade path from 8.1.1 to 8.2.0. OK...

/Lew
---
Lew Perin / ***@acm.org
http://babelcarp.org
Matthew Vernon
2012-06-13 19:27:34 UTC
Permalink
Post by Lewis Perin
Has anyone reading this had experience connecting vm to a Microsoft
Exchange IMAP-SSL server? (Successful experience, I hope!)
Yes; stunnel4 and IMAP to Exchange Just Worked; My notes suggest I
didn't need the additional-configuration-file option.

What it might be worth doing is snaffling a copy of the stunnel
configuration file that VM creates, and running stunnel by hand to check
it's managing to connect OK.

Matthew
--
`O'-----0 `O'---. `O'---. `O'---.
\___| | \___|0-/ \___|/ \___|
| | /\ | | \ | |\ | |
The Dangers of modern veterinary life
l***@hare.demon.co.uk
2012-06-14 07:12:28 UTC
Permalink
Hi:
Where does vm save the stummel config file?

I have a similar but unrelated stunnel problem connecting to gmail. It connects fine when using an emacs 24 snapshot with built in ssl, but fails with emacs 23 & stunnel. I'd like to debug my stunnel setup with the vm generated config file.
Post by Matthew Vernon
What it might be worth doing is snaffling a copy of the stunnel
configuration file that VM creates, and running stunnel by hand to check
it's managing to connect OK.
Matthew
--
`O'-----0 `O'---. `O'---. `O'---.
\___| | \___|0-/ \___|/ \___|
| | /\ | | \ | |\ | |
The Dangers of modern veterinary life
--
Les Smithson
Matthew Vernon
2012-06-14 18:42:11 UTC
Permalink
Post by l***@hare.demon.co.uk
Where does vm save the stummel config file?
On linux, in a file beginning /tmp/vm
(e.g., /tmp/vm296676064)

HTH,

Matthew
--
`O'-----0 `O'---. `O'---. `O'---.
\___| | \___|0-/ \___|/ \___|
| | /\ | | \ | |\ | |
The Dangers of modern veterinary life
l***@hare.demon.co.uk
2012-06-15 06:28:24 UTC
Permalink
Thanks - I found it and ran stunnel against it. It turns out that there were two versions of stunnel installed, stunnel & stunnel4. The later has to be set explicitly:

(setq vm-stunnel-program "stunnel4")

It all works now. Sorry for hijacking the thread.
Post by Matthew Vernon
Post by l***@hare.demon.co.uk
Where does vm save the stummel config file?
On linux, in a file beginning /tmp/vm
(e.g., /tmp/vm296676064)
HTH,
Matthew
--
`O'-----0 `O'---. `O'---. `O'---.
\___| | \___|0-/ \___|/ \___|
| | /\ | | \ | |\ | |
The Dangers of modern veterinary life
--
Les Smithson
Lewis Perin
2012-06-14 20:37:23 UTC
Permalink
Post by Matthew Vernon
Post by l***@hare.demon.co.uk
Where does vm save the stummel config file?
On linux, in a file beginning /tmp/vm
(e.g., /tmp/vm296676064)
Ah, this helped me find the file on Windows. Its contents are:

client = yes
RNDfile = c:\temp\vm169328873
RNDoverwrite = no
connect = owa.myschool.edu:993

/Lew
---
Lew Perin / ***@acm.org
http://babelcarp.org
Lewis Perin
2012-06-14 13:59:56 UTC
Permalink
Post by Matthew Vernon
Post by Lewis Perin
Has anyone reading this had experience connecting vm to a Microsoft
Exchange IMAP-SSL server? (Successful experience, I hope!)
Yes; stunnel4 and IMAP to Exchange Just Worked; My notes suggest I
didn't need the additional-configuration-file option.
Nor I, but it obviously doesn’t Just Work.
Post by Matthew Vernon
What it might be worth doing is snaffling a copy of the stunnel
configuration file that VM creates, and running stunnel by hand to check
it's managing to connect OK.
Not sure how to get this configuration file.

Might I have a look at your .vm, by the way? De-identified to be
sure... And which version of vm are using, may I ask?

By the way, the trace of my IMAP session does say this before I run
into trouble:

* OK The Microsoft Exchange IMAP4 service is ready.

/Lew
---
Lew Perin / ***@acm.org
http://babelcarp.org
Matthew Vernon
2012-06-14 18:46:23 UTC
Permalink
Post by Lewis Perin
Post by Matthew Vernon
What it might be worth doing is snaffling a copy of the stunnel
configuration file that VM creates, and running stunnel by hand to check
it's managing to connect OK.
Not sure how to get this configuration file.
If you have VM running, it'll be in your filesystem. On linux, a file in
/tmp beginning "vm", e.g. /tmp/vm296676064
Post by Lewis Perin
Might I have a look at your .vm, by the way? De-identified to be
sure... And which version of vm are using, may I ask?
8.2.0a. Excerpts from my .vm:

(setq vm-spool-file "/var/spool/mail/matthew")
(setq vm-imap-refer-to-inbox-by-account-name t)
(setq vm-stunnel-program "stunnel4")
(setq vm-folder-directory "~/VMMail")
;speeds up folder loading, in theory...
(setq vm-index-file-suffix "idx")

; need this for imap-FCC to work
(add-hook 'mail-send-hook 'vm-imap-save-composition)
(setq mail-default-headers "IMAP-FCC: Sent")

(setq vm-imap-account-alist
'(
("imap-ssl:mymobilemail.domain:993:inbox:login:username:*" "warwick")

)
)

(setq vm-imap-default-account "warwick")
Post by Lewis Perin
By the way, the trace of my IMAP session does say this before I run
* OK The Microsoft Exchange IMAP4 service is ready.
Hm, that makes me think that stunnel is working.

Regards,

Matthew
--
`O'-----0 `O'---. `O'---. `O'---.
\___| | \___|0-/ \___|/ \___|
| | /\ | | \ | |\ | |
The Dangers of modern veterinary life
Uday Reddy
2012-06-14 23:01:06 UTC
Permalink
Post by Lewis Perin
By the way, the trace of my IMAP session does say this before I run
* OK The Microsoft Exchange IMAP4 service is ready.
If it gets this far, then stunnel is unlikely to be the problem.

So, where does it get into trouble?

Cheers,
Uday
John Hein
2012-06-14 23:53:05 UTC
Permalink
Post by Uday Reddy
Post by Lewis Perin
By the way, the trace of my IMAP session does say this before I run
* OK The Microsoft Exchange IMAP4 service is ready.
If it gets this far, then stunnel is unlikely to be the problem.
So, where does it get into trouble?
You can also skip vm & stunnel completely and use command
line:

openssl s_client -connect your.imapserver.com:993
.. login ***@yourdom.com <yourpassword>
.. list "" "*"

That will prove (or not) that imap to the server works in general.
Then you should be able to compare the results of that against
the vm imap trace buffer.
Post by Uday Reddy
I have a similar but unrelated stunnel problem connecting to
gmail. It connects fine when using an emacs 24 snapshot with built
in ssl, but fails with emacs 23 & stunnel. I'd like to debug my
stunnel setup with the vm generated config file.
FYI, you don't need stunnel for emacs 24. It has ssl built in and
can use that instead of stunnel.
Lewis Perin
2012-06-15 14:50:54 UTC
Permalink
Post by John Hein
Post by Uday Reddy
Post by Lewis Perin
By the way, the trace of my IMAP session does say this before I run
* OK The Microsoft Exchange IMAP4 service is ready.
If it gets this far, then stunnel is unlikely to be the problem.
So, where does it get into trouble?
You can also skip vm & stunnel completely and use command
openssl s_client -connect your.imapserver.com:993
.. list "" "*"
Well, that was interesting! The openssl command got me the “* OK The
Microsoft Exchange IMAP4 service is ready.” response I expected, but the
login request wasn’t even seen as a complete request until I appended
the -crlf option to the openssl command as suggested here:

http://stackoverflow.com/questions/8682976/imap-connection-carriage-return-line-feed-issue-from-linux

And then the response to the login request was “login BAD Command
Error. 12”. Not sure what that means. As I said earlier in the thread,
my credentials get accepted by Exchange Server when submitted from my
iPhone.

I wonder, though, if the -crlf openssl option could be a clue to why vm
and Exchange aren’t happy with each other. Is vm sending linefeeds only?

/Lew
---
Lew Perin / ***@acm.org
http://babelcarp.org
John Hein
2012-06-15 16:55:53 UTC
Permalink
Post by Lewis Perin
Post by John Hein
Post by Uday Reddy
Post by Lewis Perin
By the way, the trace of my IMAP session does say this before I run
* OK The Microsoft Exchange IMAP4 service is ready.
If it gets this far, then stunnel is unlikely to be the problem.
So, where does it get into trouble?
You can also skip vm & stunnel completely and use command
openssl s_client -connect your.imapserver.com:993
.. list "" "*"
Well, that was interesting! The openssl command got me the “* OK The
Microsoft Exchange IMAP4 service is ready.” response I expected, but the
login request wasn’t even seen as a complete request until I appended
http://stackoverflow.com/questions/8682976/imap-connection-carriage-return-line-feed-issue-from-linux
And then the response to the login request was “login BAD Command
Error. 12”. Not sure what that means. As I said earlier in the thread,
my credentials get accepted by Exchange Server when submitted from my
iPhone.
I wonder, though, if the -crlf openssl option could be a clue to why vm
and Exchange aren’t happy with each other. Is vm sending linefeeds only?
Re: "login BAD Command"...

You need _some_ sequence before the word "login".
Like ". login you yourpw" or "xxxxx login you yourpw".

When I use "login me mypw" on my imap server, I get "login BAD Error
...." in response. When I use "xxxx login me" (with no password), I
get "xxx BAD Error". So based on your quoted error message, I'm
guessing you negelected to add the leading "sentinel" string.

On my server, it doesn't care whether I use -crlf or not. I don't
know if that's true for exchange. The exchange admin guys I work with
turned off imap at some point (some blathering about concern for
non-standard mail clients - sigh), so I use davmail to translate
between exchange and imap. That works nicely, but I can't test
exchange's imap here anymore.

======================

Off topic...

Which brings up a side issue that seems to be a bug in this mailing list.
Post by Lewis Perin
openssl s_client -connect your.imapserver.com:993
. list "" "*"
Note the single leading '.'.
Post by Lewis Perin
openssl s_client -connect your.imapserver.com:993
... list "" "*"
(three dots)

And your quote had two dots. Is the mailing list munging this for
some reason?

Fortunately, in this case, imap doesn't care if you put multiple
characters there.
Lewis Perin
2012-06-15 18:12:56 UTC
Permalink
Post by John Hein
Post by Lewis Perin
Post by John Hein
Post by Uday Reddy
Post by Lewis Perin
By the way, the trace of my IMAP session does say this before I run
* OK The Microsoft Exchange IMAP4 service is ready.
If it gets this far, then stunnel is unlikely to be the problem.
So, where does it get into trouble?
You can also skip vm & stunnel completely and use command
openssl s_client -connect your.imapserver.com:993
.. list "" "*"
Well, that was interesting! The openssl command got me the “* OK The
Microsoft Exchange IMAP4 service is ready.” response I expected, but the
login request wasn’t even seen as a complete request until I appended
http://stackoverflow.com/questions/8682976/imap-connection-carriage-return-line-feed-issue-from-linux
And then the response to the login request was “login BAD Command
Error. 12”. Not sure what that means. As I said earlier in the thread,
my credentials get accepted by Exchange Server when submitted from my
iPhone.
I wonder, though, if the -crlf openssl option could be a clue to why vm
and Exchange aren’t happy with each other. Is vm sending linefeeds only?
Re: "login BAD Command"...
You need _some_ sequence before the word "login".
Like ". login you yourpw" or "xxxxx login you yourpw".
When I use "login me mypw" on my imap server, I get "login BAD Error
...." in response. When I use "xxxx login me" (with no password), I
get "xxx BAD Error". So based on your quoted error message, I'm
guessing you negelected to add the leading "sentinel" string.
Yes, that’s exactly right; thanks!

But addressing that issue just yields a different error, sadly:

.. login ***@myschool.edu mypassword
.. NO LOGIN failed.

But - I’ve been googling a lot lately - I tried this instead:

.. login my-windows-domain\me mypassword

and it worked fine. This is strange - as I said earlier, my iPhone gets
through to the Exchange server, and it has no idea of what Windows
domain claims me. But using the Windows domain doesn’t help me from vm;
I still get that “unexpected char (10)” error. And the trace buffer for
a session using the Windows domain shows no advance over what I got
using a normal email address.

/Lew
---
Lew Perin / ***@acm.org
http://babelcarp.org
Lewis Perin
2012-06-15 13:37:41 UTC
Permalink
Post by Uday Reddy
Post by Lewis Perin
By the way, the trace of my IMAP session does say this before I run
* OK The Microsoft Exchange IMAP4 service is ready.
If it gets this far, then stunnel is unlikely to be the problem.
So, where does it get into trouble?
Immediately on login, I get “vm-imap-protocol-error: IMAP protocol
error: "unexpected char (10)"”. And, as I noted earlier in this thread,
when I tried setting vm-imap-tolerant-of-bad-imap to 1, emacs became
unresponsive and eventually exhausted its memory.

/Lew
---
Lew Perin / ***@acm.org
http://babelcarp.org
Uday Reddy
2012-06-15 14:40:30 UTC
Permalink
Post by Lewis Perin
Post by Uday Reddy
So, where does it get into trouble?
Immediately on login, I get “vm-imap-protocol-error: IMAP protocol
error: "unexpected char (10)"”.
Indeed, you said that. But what is in the trace buffer at this point? In
particular, is there a line without a CR character (^M)?
Post by Lewis Perin
And, as I noted earlier in this thread,
when I tried setting vm-imap-tolerant-of-bad-imap to 1, emacs became
unresponsive and eventually exhausted its memory.
Evidently, there is a problem with the server interaction. So, setting this
flag doesn't help us.

Cheers,
Uday
Lewis Perin
2012-06-15 15:10:40 UTC
Permalink
Post by Uday Reddy
Post by Lewis Perin
Post by Uday Reddy
So, where does it get into trouble?
Immediately on login, I get “vm-imap-protocol-error: IMAP protocol
error: "unexpected char (10)"”.
Indeed, you said that. But what is in the trace buffer at this point? In
particular, is there a line without a CR character (^M)?
Here’s the whole trace buffer, lightly deidentified:

--- start of trace buffer ---

starting IMAP over SSL session Fri Jun 15 11:04:20 2012
connecting to owa.myschool.edu:993
connected
cygwin warning:
MS-DOS style path detected: c:\temp\vm387560729
Preferred POSIX equivalent is: /cygdrive/c/temp/vm387560729
CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
Consult the user’s guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
* OK The Microsoft Exchange IMAP4 service is ready.^M

* BYE Connection is closed. 13

Process IMAP over SSL finished

--- end of trace buffer ---

Thanks, everybody, for your efforts so far in hunting down this problem!

/Lew
---
Lew Perin / ***@acm.org
http://babelcarp.org
Uday Reddy
2012-06-15 19:10:04 UTC
Permalink
Post by Lewis Perin
MS-DOS style path detected: c:\temp\vm387560729
Preferred POSIX equivalent is: /cygdrive/c/temp/vm387560729
CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
So, clearly you need to fix this issue in order to get a clean IMAP session
for VM.
Post by Lewis Perin
* OK The Microsoft Exchange IMAP4 service is ready.^M
* BYE Connection is closed. 13
My guess is that your Exchange server is over-eager to close the
connection. You might want to check what happens when you do this with
gmail.

Cheers,
Uday
Lewis Perin
2012-06-15 20:21:47 UTC
Permalink
Thanks, Uday, for mustering the patience to stick with this annoying and
narrow thread. I know you have other things to do!
Post by Uday Reddy
Post by Lewis Perin
MS-DOS style path detected: c:\temp\vm387560729
Preferred POSIX equivalent is: /cygdrive/c/temp/vm387560729
CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
So, clearly you need to fix this issue in order to get a clean IMAP session
for VM.
For some value of “clean”: this is a warning, but is it consequential?
I doubt that this is stopping cygwin stunnel from doing its job, as I
can get to Gmail using imap-ssl by this route.

The file cygwin is complaining about, c:\temp\vm387560729, is the
stunnel config generated by vm. I imagine vm uses that locution for the
file name because of this line in my vm:

(setq vm-temp-file-directory "c:/temp/")

I coded that because it’s native Windows emacs, not Cygwin emacs, and
stunnel is the only Cygwin program I use. I’m leery of using Cygwin
filenames in configuring native Windows emacs, to be honest. If it were
safe, in this context, to code:

(setq vm-temp-file-directory "/cygdrive/c/temp/")

I’d be delighted to do it. But I don’t think it is. I got this message
when I tried it:

completion--some: Opening output file: no such file or directory,
c:/cygdrive/c/temp/vm075228092

This way, it seems vm isn’t even getting to the stage of invoking
stunnel and attempting an imap session.
Post by Uday Reddy
Post by Lewis Perin
* OK The Microsoft Exchange IMAP4 service is ready.^M
* BYE Connection is closed. 13
My guess is that your Exchange server is over-eager to close the
connection.
I don’t think so. The “* BYE Connection is closed. 13” line appears
quite a while after vm complains about the unexpected char.
Post by Uday Reddy
You might want to check what happens when you do this with gmail.
See above, please.

/Lew
---
Lew Perin / ***@acm.org
http://babelcarp.org
Uday Reddy
2012-06-16 05:50:45 UTC
Permalink
Post by Lewis Perin
Post by Uday Reddy
Post by Lewis Perin
MS-DOS style path detected: c:\temp\vm387560729
Preferred POSIX equivalent is: /cygdrive/c/temp/vm387560729
CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
So, clearly you need to fix this issue in order to get a clean IMAP session
for VM.
For some value of “clean”: this is a warning, but is it consequential?
The warning message is meant for you, not VM! VM won't know what to do with
it. You should create a CYGWIN environment variable with nodosfilewarning
as its value, and get rid of the warning message.

Windows Emacs will necessarily use Windows path names, which Cygwin doesn't
like. But they gave you a work-around. So, please use it.

I don't know why it is working for gmail. But it is likely that it is
breaking in some more subtle ways. VM is trying to listen to the server and
the warning message is interfering with it.

Cheers,
Uday
Lewis Perin
2012-06-18 00:41:56 UTC
Permalink
Post by Uday Reddy
Post by Lewis Perin
Post by Uday Reddy
Post by Lewis Perin
MS-DOS style path detected: c:\temp\vm387560729
Preferred POSIX equivalent is: /cygdrive/c/temp/vm387560729
CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
So, clearly you need to fix this issue in order to get a clean IMAP session
for VM.
For some value of “clean”: this is a warning, but is it consequential?
The warning message is meant for you, not VM! VM won't know what to do with
it. You should create a CYGWIN environment variable with nodosfilewarning
as its value, and get rid of the warning message.
OK, thanks, I’ve done that. The warning has vanished, but the password
is still rejected as “incorrect” in the minibuf.

The vm trace buffer now reads:

starting IMAP over SSL session Sun Jun 17 20:22:40 2012
connecting to owa.med.cornell.edu:993
connected
* OK The Microsoft Exchange IMAP4 service is ready.^M
VM CAPABILITY^M
* CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN CHILDREN IDLE NAMESPACE LITERAL+^M
VM OK CAPABILITY completed.^M
VM LOGIN <parameters omitted>^M
VM NO LOGIN failed.^M
VM LOGOUT^M
* BYE Microsoft Exchange Server 2010 IMAP4 server signing off.^M
VM OK LOGOUT completed.^M

Process IMAP over SSL finished

/Lew
---
Lew Perin / ***@acm.org
http://babelcarp.org
Lewis Perin
2012-06-22 15:35:52 UTC
Permalink
As far as I can tell, I’ve implemented all the suggestions received here
regarding my problem connecting to Microsoft Exchange Server via
imap-ssl from native Windows Emacs 23.1.1 using vm. I’ve upgraded to vm
8.2.0b and convinced Cygwin to accept Windows filename conventions and
not complain to vm. But still my password is rejected as “incorrect”.
As I’ve said before, my account on Exchange Server is accessible from my
iPhone, and my vm setup works fine with Gmail.

At this point, would it be appropriate to file a bug on the Launchpad
site?

I’ve appended my current .vm in case anyone wants to find a flaw I’ve
missed:

;;;;;; start of .vm

(setq vm-imap-account-alist
'(
("imap-ssl:imap.gmail.com:993:*:login:***@gmail.com:*" "Gmail")
("imap-ssl:owa.myschool.edu:993:*:login:***@myschool.edu:*" "Cornell IMAP")
)
)
(setq vm-primary-inbox
"imap-ssl:owa.myschool.edu:993:inbox:login:***@myschool.edu:*")
(setq vm-reply-subject-prefix "Re: ")
(setq vm-stunnel-program "c:/cygwin/bin/stunnel.exe")

; Debugging only:
(setq vm-debug t)
(setq vm-imap-keep-trace-buffer t)
(setq vm-imap-log-sessions t)

; Stylistic:
(setq vm-preview-lines t) ; Show as much of message as possible

; Directories
(setq vm-folders-summary-directories '("c:/Mail/"))
(setq vm-mime-all-attachments-directory "c:/detached/")
(setq vm-mime-attachment-save-directory "c:/detached/")
(setq vm-folder-directory "c:/Mail/")
(setq vm-temp-file-directory "c:/temp/")
(setq vm-imap-folder-cache-directory "c:/temp/")

; Keys

(define-key vm-mail-mode-map "\C-c\C-a" 'mail-abbrev-insert-alias)

; Rendering

(setq vm-mime-text/html-handler nil) ; disable lynx til it's useful

;;;;;;; end of .vm

/Lew
---
Lew Perin / ***@acm.org
http://babelcarp.org
Uday Reddy
2012-06-22 16:27:42 UTC
Permalink
Post by Lewis Perin
At this point, would it be appropriate to file a bug on the Launchpad
site?
The best way to file bug reports is to use M-x vm-submit-bug-report. But
the bug-report function normally doesn't include "private information" in
your settings, such as logins. So, you might need to add them manually.

The only problem you seem to have at the moment is that the login didn't
work. So, that is what you need to check.
Post by Lewis Perin
I’ve appended my current .vm in case anyone wants to find a flaw I’ve
;;;;;; start of .vm
(setq vm-imap-account-alist
'(
)
)
The login should be whatever your IMAP server wants you to use. It seems to
unlikely that they want you to use something like "***@myschool.edu". You
should check the documentation you have been given for your IMAP server.

Cheers,
Uday
Lewis Perin
2012-06-22 19:36:44 UTC
Permalink
Post by Uday Reddy
Post by Lewis Perin
At this point, would it be appropriate to file a bug on the Launchpad
site?
The best way to file bug reports is to use M-x vm-submit-bug-report. But
the bug-report function normally doesn't include "private information" in
your settings, such as logins. So, you might need to add them manually.
The only problem you seem to have at the moment is that the login didn't
work. So, that is what you need to check.
Post by Lewis Perin
I’ve appended my current .vm in case anyone wants to find a flaw I’ve
;;;;;; start of .vm
(setq vm-imap-account-alist
'(
)
)
The login should be whatever your IMAP server wants you to use. It seems to
should check the documentation you have been given for your IMAP server.
Sorry, I should have made clear that “***@myschool.edu” is a
de-identified version of the real thing. The actual login in my .vm is
the same as the one I use when fetching mail from the same server via my
mobile phone.

/Lew
---
Lew Perin / ***@acm.org
http://babelcarp.org
John Hein
2012-06-22 21:49:05 UTC
Permalink
Post by Lewis Perin
Post by Lewis Perin
At this point, would it be appropriate to file a bug on the Launchpad
site?
The best way to file bug reports is to use M-x vm-submit-bug-report.. But
the bug-report function normally doesn't include "private information" in
your settings, such as logins. So, you might need to add them manually.
The only problem you seem to have at the moment is that the login didn't
work. So, that is what you need to check.
Post by Lewis Perin
I’ve appended my current .vm in case anyone wants to find a flaw I’ve
;;;;;; start of .vm
(setq vm-imap-account-alist
'(
)
)
The login should be whatever your IMAP server wants you to use. It seems to
should check the documentation you have been given for your IMAP server.
de-identified version of the real thing. The actual login in my .vm is
the same as the one I use when fetching mail from the same server via my
mobile phone.
Did you ever just try "me" in vm or on the command line openssl?
Uday Reddy
2012-06-22 23:08:23 UTC
Permalink
Post by Lewis Perin
Post by Uday Reddy
The login should be whatever your IMAP server wants you to use. It seems to
should check the documentation you have been given for your IMAP server.
de-identified version of the real thing. The actual login in my .vm is
the same as the one I use when fetching mail from the same server via my
mobile phone.
You can't treat the mobile phone's mail client as the authority. Your IMAP
provider is the authority. You should use whatever login they asked you to
use.

Cheers,
Uday
Lewis Perin
2012-06-25 13:42:05 UTC
Permalink
Post by John Hein
Post by Lewis Perin
Post by Uday Reddy
[...]
The login should be whatever your IMAP server wants you to use. It
seems to unlikely that they want you to use something like
been given for your IMAP server.
de-identified version of the real thing. The actual login in my .vm
is the same as the one I use when fetching mail from the same server
via my mobile phone.
Did you ever just try "me" in vm or on the command line openssl?
Well, I have now, and it works. I am *so* relieved to be done with
this. Thanks very much to Uday and John for mustering the patience to
guide me through this frustrating situation!

/Lew
---
Lew Perin / ***@acm.org
http://babelcarp.org

Continue reading on narkive:
Loading...