Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Specifying coding system for Imap.cache files
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
blueman  
View profile  
 More options Jun 29 2012, 12:32 pm
Newsgroups: gnu.emacs.vm.info
From: blueman <kosows...@gmail.com>
Date: Fri, 29 Jun 2012 09:32:03 -0700 (PDT)
Local: Fri, Jun 29 2012 12:32 pm
Subject: Specifying coding system for Imap.cache files
When running vm on a Windows machine, I typically add
( "^C:/myhome/mail/" 'raw-text-unix) to the alist file-coding-system-alist since I want to keep all my mail files in the unix file system coding without the annoying carriage returns (^M) at the end of each line.

However, this doesn't seem to be working for the imap-cache folders even though they are stored in the same mail heirarchy...

Unfortunately, these ^M characters then seem to sometimes generate an error when reading imap mail since the coding system gets messed up.

So, is there any way to get the imap-cache files to respect the file
coding system that I am setting for their directory? i.e., is there a way to specify the coding system that vm uses to write to an imap-cache file?

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Uday S Reddy  
View profile  
 More options Jun 30 2012, 7:41 pm
Newsgroups: gnu.emacs.vm.info
From: Uday S Reddy <usr.vm.ro...@gmail.com>
Date: Sun, 1 Jul 2012 00:41:17 +0100
Local: Sat, Jun 30 2012 7:41 pm
Subject: Re: [VM] Specifying coding system for Imap.cache files

blueman writes:
> When running vm on a Windows machine, I typically add ( "^C:/myhome/mail/"
> 'raw-text-unix) to the alist file-coding-system-alist since I want to keep
> all my mail files in the unix file system coding without the annoying
> carriage returns (^M) at the end of each line.

> However, this doesn't seem to be working for the imap-cache folders even
> though they are stored in the same mail heirarchy...

First of all, VM doesn't set line ending formats.  Emacs does.

Secondly, the variable file-coding-system-alist, according to its
documentation, sets the coding system for *reading* files, not writing them.
So, it is a bad idea to set line-ending format there (or even one single
coding system for all types of files).  From what you write later on, I
suspect that your imap-cache folders might have gotten corrupted as a
result.

How Gnu Emacs decides the line ending format for the files it creates is a
bit of a mystery.  All I have in my customizations is

(if running-fsf
    ;; (setq-default buffer-file-coding-system 'iso-latin-1-unix)
    (setq default-buffer-file-coding-system 'utf-8-unix)
  )

This seems to tell Emacs that it should use unix line endings all the time.
I can't be sure.  But I have never had Emacs create new files with DOS line
endings.

Cheers,
Uday


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »