AnonSec Team
Server IP : 10.2.73.233  /  Your IP : 216.73.216.223
Web Server : Apache/2.4.59 (Debian)
System : Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
User : www-data ( 33)
PHP Version : 5.6.40-64+0~20230107.71+debian10~1.gbp673146
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/../../usr/share/javascript/../javascript/../reportbug/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/../../usr/share/javascript/../javascript/../reportbug/reportbug.el
;; Vague implementation of needed code to invoke Gnus from reportbug
;; by Tollef Fog Heen
(require 'gnus)

;; Match each component of Gnus' version number.
(string-match "^\\([0-9]+\\)\\.\\([0-9]+\\)\\(?:\\.\\([0-9]+\\)\\)?$"
	      gnus-version-number)
;; Only load gnus-load if using a separately packaged Gnus (that is,
;; not the Gnus bundled with Emacs).
(if (or
     ;; Check for a separately packaged release of Gnus
     ;; (second component of version number even):
     (= (% (string-to-number (match-string 2 gnus-version-number)) 2) 0)
     ;; Check for a separately packaged pre-release of Gnus
     ;; (first component of version number 0):
     (= (string-to-number (match-string 1 gnus-version-number)) 0))
    (require 'gnus-load))

(defun tfheen-set-header (header value)
  "Insert a string at the beginning of a header."
  (message-narrow-to-head)
  (goto-char (point-min))
  (search-forward (format "%s: " header) (point-max) t)
  (insert value)
  (widen))

(defun tfheen-reportbug-insert-template (reportbug-template)
  (interactive)
  (require 'gnus)
  (find-file reportbug-template)
  (let ((subject (message-fetch-field "Subject"))
        (toaddr (or (message-fetch-field "To") "submit@bugs.debian.org")))
    (gnus-narrow-to-body)
    (let ((body (or (buffer-string) "")))
      (gnus-summary-mail-other-window)
      (tfheen-set-header "Subject" subject)
      (tfheen-set-header "To" toaddr)
      (gnus-narrow-to-body)
      (insert body)
      (goto-char (point-min))
      (search-forward "\n\n" nil t)
      (widen)))
  (kill-buffer (find-buffer-visiting reportbug-template)))

AnonSec - 2021