* unwanted backup files with nnfolder archive method
@ 2016-08-06 14:10 Julien Cubizolles
2016-08-08 4:03 ` Katsumi Yamaoka
0 siblings, 1 reply; 4+ messages in thread
From: Julien Cubizolles @ 2016-08-06 14:10 UTC (permalink / raw)
To: ding
I'm using the nnfolder method to archive my sent mail and posts as
described in the Gnus manual with:
--8<---------------cut here---------------start------------->8---
(setq gnus-message-archive-method
'(nnfolder "archive"
(nnfolder-inhibit-expiry t)
(nnfolder-active-file "~/email/Local/archive/active")
(nnfolder-directory "~/email/Local/archive/")
(nnfolder-get-new-mail nil)
(nnir-search-engine notmuch)
))
(setq gnus-message-archive-group
'((if (message-news-p)
(format-time-string "sent-news-%Y-%m")
(format-time-string "sent-mail-%Y-%m"))))
--8<---------------cut here---------------end--------------->8---
However, I've noticed that for each "sent-mail-%Y-%m" file, there is
also a "sent-mail-%Y-%m~" backup file created, with roughly the same
size: the size of the archive folder is then doubled. Is it the expected
behaviour, or is there some way to avoid these files ?
Julien.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: unwanted backup files with nnfolder archive method
2016-08-06 14:10 unwanted backup files with nnfolder archive method Julien Cubizolles
@ 2016-08-08 4:03 ` Katsumi Yamaoka
2016-08-08 13:53 ` Julien Cubizolles
0 siblings, 1 reply; 4+ messages in thread
From: Katsumi Yamaoka @ 2016-08-08 4:03 UTC (permalink / raw)
To: Julien Cubizolles; +Cc: ding
On Sat, 06 Aug 2016 16:10:43 +0200, Julien Cubizolles wrote:
> However, I've noticed that for each "sent-mail-%Y-%m" file, there is
> also a "sent-mail-%Y-%m~" backup file created,
Is this yours? :)
'---- [ C-h i d m Gnus RET m Mail Folders RET ]
| `nnfolder-save-buffer-hook'
| Hook run before saving the folders. Note that Emacs does the
| normal backup renaming of files even with the `nnfolder' buffers.
| If you wish to switch this off, you could say something like the
| following in your `.emacs' file:
|
| (defun turn-off-backup ()
| (set (make-local-variable 'backup-inhibited) t))
|
| (add-hook 'nnfolder-save-buffer-hook 'turn-off-backup)
`----
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: unwanted backup files with nnfolder archive method
2016-08-08 4:03 ` Katsumi Yamaoka
@ 2016-08-08 13:53 ` Julien Cubizolles
2016-08-08 23:01 ` Katsumi Yamaoka
0 siblings, 1 reply; 4+ messages in thread
From: Julien Cubizolles @ 2016-08-08 13:53 UTC (permalink / raw)
To: Katsumi Yamaoka; +Cc: ding
Katsumi Yamaoka <yamaoka@jpl.org> writes:
> On Sat, 06 Aug 2016 16:10:43 +0200, Julien Cubizolles wrote:
>> However, I've noticed that for each "sent-mail-%Y-%m" file, there is
>> also a "sent-mail-%Y-%m~" backup file created,
>
> Is this yours? :)
> '---- [ C-h i d m Gnus RET m Mail Folders RET ]
> | `nnfolder-save-buffer-hook'
> | Hook run before saving the folders. Note that Emacs does the
> | normal backup renaming of files even with the `nnfolder' buffers.
> | If you wish to switch this off, you could say something like the
> | following in your `.emacs' file:
> |
> | (defun turn-off-backup ()
> | (set (make-local-variable 'backup-inhibited) t))
> |
> | (add-hook 'nnfolder-save-buffer-hook 'turn-off-backup)
> `----
That's exactly what I needed, thanks. By the way, what command do you
use to cite an info node in this manner ?
Regards,
Julien.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: unwanted backup files with nnfolder archive method
2016-08-08 13:53 ` Julien Cubizolles
@ 2016-08-08 23:01 ` Katsumi Yamaoka
0 siblings, 0 replies; 4+ messages in thread
From: Katsumi Yamaoka @ 2016-08-08 23:01 UTC (permalink / raw)
To: ding
On Mon, 08 Aug 2016 15:53:02 +0200, Julien Cubizolles wrote:
> Katsumi Yamaoka <yamaoka@jpl.org> writes:
>> '---- [ C-h i d m Gnus RET m Mail Folders RET ]
>>| `nnfolder-save-buffer-hook'
>>| Hook run before saving the folders. Note that Emacs does the
[...]
>> `----
> what command do you use to cite an info node in this manner?
`boxquote-region'[1] and add a keystroke by hand. Hehe.
Maybe automating it like `boxquote-describe-variable' will be
not so easy.
[1] <http://www.davep.org/emacs/#boxquote.el>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-08-08 23:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-06 14:10 unwanted backup files with nnfolder archive method Julien Cubizolles
2016-08-08 4:03 ` Katsumi Yamaoka
2016-08-08 13:53 ` Julien Cubizolles
2016-08-08 23:01 ` Katsumi Yamaoka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).