Emacs使用gnus收发邮件时nnfolder相关介绍

转自:http://www.gnu.org/software/emacs/manual/html_node/gnus/Mail-Folders.html


6.3.13.10 Mail Folders

nnfolder is a back end for storing each mail group in aseparate file. Each file is in the standard Un*x mbox format. nnfolder will add extra headers to keep track of articlenumbers and arrival dates.

When the marks file is used (which it is by default), nnfolderservers have the property that you may backup them using tar orsimilar, and later be able to restore them into Gnus (by adding theproper nnfolder server) and have all your marks be preserved. Marks for a group are usually stored in a file named as the mbox filewith .mrk concatenated to it (but seennfolder-marks-file-suffix) within the nnfolderdirectory. Individual nnfolder groups are also possible tobackup, use G m to restore the group (after restoring the backupinto the nnfolder directory).

Virtual server settings:

nnfolder-directory
All the nnfolder mail boxes will be stored under thisdirectory. The default is the value of message-directory(whose default is ~/Mail)
nnfolder-active-file
The name of the active file. The default is ~/Mail/active.
nnfolder-newsgroups-file
The name of the group descriptions file. See Newsgroups File Format. The default is ~/Mail/newsgroups
nnfolder-get-new-mail
If non- nil, nnfolder will read incoming mail. Thedefault is t
nnfolder-save-buffer-hook
Hook run before saving the folders. Note that Emacs does the normalbackup renaming of files even with the nnfolder buffers. Ifyou wish to switch this off, you could say something like thefollowing in your .emacs file:
          (defun turn-off-backup ()
            (set (make-local-variable 'backup-inhibited) t))
          
          (add-hook 'nnfolder-save-buffer-hook 'turn-off-backup)

nnfolder-delete-mail-hook
Hook run in a buffer narrowed to the message that is to be deleted. This function can be used to copy the message to somewhere else, or toextract some information from it before removing it.
nnfolder-nov-is-evil
If non- nil, this back end will ignore any NOV files. Thedefault is nil.
nnfolder-nov-file-suffix
The extension for NOV files. The default is .nov.
nnfolder-nov-directory
The directory where the NOV files should be stored. If nil, nnfolder-directory is used.
nnfolder-marks-is-evil
If non- nil, this back end will ignore any marks files. Thedefault is nil.
nnfolder-marks-file-suffix
The extension for marks files. The default is .mrk.
nnfolder-marks-directory
The directory where the marks files should be stored. If nil, nnfolder-directory is used.

If you have lots of nnfolder-like files you'd like to read withnnfolder, you can use the M-x nnfolder-generate-active-filecommand to make nnfolder aware of all likely files innnfolder-directory. This only works if you use long file names,though.


  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值