Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean mew-* files (with space indent) #140

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
((emacs-lisp-mode
(indent-tabs-mode . nil))
338 changes: 169 additions & 169 deletions mew-addrbook.el

Large diffs are not rendered by default.

672 changes: 336 additions & 336 deletions mew-attach.el

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions mew-auth.el
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@
(cond
((null n) ())
((null preference)
(setq preference n)
(setq strongest auth))
(setq preference n)
(setq strongest auth))
((< n preference)
(setq preference n)
(setq strongest auth))))
(setq preference n)
(setq strongest auth))))
strongest))

(defun mew-md5-raw (str)
(let* ((md5str (mew-md5 str))
(len (length md5str))
(md5raw (make-string (/ len 2) 0))
(i 0) (j 0))
(len (length md5str))
(md5raw (make-string (/ len 2) 0))
(i 0) (j 0))
(while (< i len)
(aset md5raw j (+ (* (mew-hexchar-to-int (aref md5str i)) 16)
(mew-hexchar-to-int (aref md5str (1+ i)))))
(mew-hexchar-to-int (aref md5str (1+ i)))))
(setq i (+ i 2))
(setq j (1+ j)))
md5raw))
Expand All @@ -42,13 +42,13 @@
(defun mew-hmac-md5 (message key)
"HMAC-MD5 defined in RFC 2104"
(let* ((keylen (length key))
(ipad 54) ;; 0x36
(opad 92) ;; 0x5c
(ikey (make-string 64 0))
okey digest)
(ipad 54) ;; 0x36
(opad 92) ;; 0x5c
(ikey (make-string 64 0))
okey digest)
(when (< keylen 64)
(dotimes (i keylen)
(aset ikey i (aref key i))))
(aset ikey i (aref key i))))
(setq okey (copy-sequence ikey))
(dotimes (i 64)
(aset ikey i (logxor (aref ikey i) ipad))
Expand All @@ -59,7 +59,7 @@
(defun mew-cram-md5 (user passwd b64-challenge)
"CRAM-MD5 defined in RFC 2195"
(let* ((challenge (mew-base64-decode-string b64-challenge))
(response (mew-hmac-md5 challenge passwd)))
(response (mew-hmac-md5 challenge passwd)))
(mew-base64-encode-string (format "%s %s" user response))))

;;
Expand Down
30 changes: 15 additions & 15 deletions mew-blvs.el
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@

(mapc 'make-variable-buffer-local
(list 'mew-summary-buffer-process
'mew-summary-buffer-process-status
'mew-summary-buffer-process-error
'mew-summary-buffer-secure-process
'mew-summary-buffer-left-msgs
'mew-summary-buffer-raw
'mew-decode-syntax
'mew-encode-syntax
'mew-ainfo
'mew-cinfo
'mew-dinfo
'mew-minfo
'mew-sinfo
'mew-tinfo
'mew-vinfo
'mew-xinfo))
'mew-summary-buffer-process-status
'mew-summary-buffer-process-error
'mew-summary-buffer-secure-process
'mew-summary-buffer-left-msgs
'mew-summary-buffer-raw
'mew-decode-syntax
'mew-encode-syntax
'mew-ainfo
'mew-cinfo
'mew-dinfo
'mew-minfo
'mew-sinfo
'mew-tinfo
'mew-vinfo
'mew-xinfo))

(provide 'mew-blvs)

Expand Down
Loading