Gnus development mailing list
 help / color / mirror / Atom feed
* edit subject, messages, imap server
@ 2015-05-28 17:05 Uwe Brauer
  2015-05-28 17:09 ` Jason L Tibbitts III
  0 siblings, 1 reply; 16+ messages in thread
From: Uwe Brauer @ 2015-05-28 17:05 UTC (permalink / raw)
  To: ding

Hi 

I just learn about a useful thunderbird/seamonkey extension header tools
light which allows you to edit a subject of a message on an imap server.

Is there a similar functionality in gnus?
Google seems to suggest: no


Thanks 

Uwe Brauer 




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: edit subject, messages, imap server
  2015-05-28 17:05 edit subject, messages, imap server Uwe Brauer
@ 2015-05-28 17:09 ` Jason L Tibbitts III
  2015-05-28 18:40   ` Uwe Brauer
  0 siblings, 1 reply; 16+ messages in thread
From: Jason L Tibbitts III @ 2015-05-28 17:09 UTC (permalink / raw)
  To: ding

>>>>> "UB" == Uwe Brauer <oub@mat.ucm.es> writes:

UB> Is there a similar functionality in gnus?

Press 'e C-s subject RET' and edit?

 - J<



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: edit subject, messages, imap server
  2015-05-28 17:09 ` Jason L Tibbitts III
@ 2015-05-28 18:40   ` Uwe Brauer
  2015-05-28 18:45     ` Adam Sjøgren
  0 siblings, 1 reply; 16+ messages in thread
From: Uwe Brauer @ 2015-05-28 18:40 UTC (permalink / raw)
  To: ding

On 05/28/2015 07:09 PM, Jason L Tibbitts III wrote:
>>>>>> "UB" == Uwe Brauer <oub@mat.ucm.es> writes:
> 
> UB> Is there a similar functionality in gnus?
> 
> Press 'e C-s subject RET' and edit?
> 
>  - J<
> 
> 
yeah and then? how is this message saved on the imap server?
for me your proposal did not work on my imap server.






^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: edit subject, messages, imap server
  2015-05-28 18:40   ` Uwe Brauer
@ 2015-05-28 18:45     ` Adam Sjøgren
  2015-05-28 18:50       ` Jason L Tibbitts III
  2015-05-29  8:05       ` [partially solved but summary is not updated] (was: edit subject, messages, imap server) Uwe Brauer
  0 siblings, 2 replies; 16+ messages in thread
From: Adam Sjøgren @ 2015-05-28 18:45 UTC (permalink / raw)
  To: ding

Uwe writes:

> On 05/28/2015 07:09 PM, Jason L Tibbitts III wrote:

>>>>>>> "UB" == Uwe Brauer <oub@mat.ucm.es> writes:
 
>> UB> Is there a similar functionality in gnus?
 
>> Press 'e C-s subject RET' and edit?

> yeah and then? how is this message saved on the imap server?

You end editing by pressing the ubiquitous "I'm done"-keys: C-c C-c.

I don't know if it works with IMAP, so let us know how it goes!


  Best regards,

    Adam

-- 
 "the office is quiet now, i am at the desk, preparing        Adam Sjøgren
  to landscape for another day."                         asjo@koldfront.dk




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: edit subject, messages, imap server
  2015-05-28 18:45     ` Adam Sjøgren
@ 2015-05-28 18:50       ` Jason L Tibbitts III
  2015-05-28 20:42         ` Steinar Bang
  2015-05-29  8:05       ` [partially solved but summary is not updated] (was: edit subject, messages, imap server) Uwe Brauer
  1 sibling, 1 reply; 16+ messages in thread
From: Jason L Tibbitts III @ 2015-05-28 18:50 UTC (permalink / raw)
  To: Adam Sjøgren; +Cc: ding

>>>>> "AS" == Adam Sjøgren <asjo@koldfront.dk> writes:

AS> I don't know if it works with IMAP, so let us know how it goes!

Works great for me.  I edited the subject of the original message and my
edit is visible from other clients.

This may, of course, have some dependency on the IMAP server in use.
I'm running Cyrus.

 - J<



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: edit subject, messages, imap server
  2015-05-28 18:50       ` Jason L Tibbitts III
@ 2015-05-28 20:42         ` Steinar Bang
  2015-05-29  0:11           ` Dan Christensen
  0 siblings, 1 reply; 16+ messages in thread
From: Steinar Bang @ 2015-05-28 20:42 UTC (permalink / raw)
  To: ding

>>>>> Jason L Tibbitts III <tibbs@math.uh.edu>:

> This may, of course, have some dependency on the IMAP server in use.
> I'm running Cyrus.

I don't think so.  I think it actually deletes the original message and
saves a new one (with a new UUID or whatever it's called).




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: edit subject, messages, imap server
  2015-05-28 20:42         ` Steinar Bang
@ 2015-05-29  0:11           ` Dan Christensen
  0 siblings, 0 replies; 16+ messages in thread
From: Dan Christensen @ 2015-05-29  0:11 UTC (permalink / raw)
  To: ding

Steinar Bang <sb@dod.no> writes:

>>>>>> Jason L Tibbitts III <tibbs@math.uh.edu>:
>
>> This may, of course, have some dependency on the IMAP server in use.
>> I'm running Cyrus.
>
> I don't think so.  I think it actually deletes the original message and
> saves a new one (with a new UUID or whatever it's called).

Steinar is right, this is how it works, since IMAP messages are
immutable.  

I edit IMAP messages a lot using `C-o' on an attachment button to
save an attachment and leave a pointer to the file, but this usually
messes up the summary buffer, so I often have to reenter.  It also
doesn't reliably delete the old version of the message, so I sometimes
have to do this manually.

Dan




^ permalink raw reply	[flat|nested] 16+ messages in thread

* [partially solved but summary is not updated] (was: edit subject, messages, imap server)
  2015-05-28 18:45     ` Adam Sjøgren
  2015-05-28 18:50       ` Jason L Tibbitts III
@ 2015-05-29  8:05       ` Uwe Brauer
  2015-05-29  8:45         ` [partially solved but summary is not updated] Adam Sjøgren
  1 sibling, 1 reply; 16+ messages in thread
From: Uwe Brauer @ 2015-05-29  8:05 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 831 bytes --]


   > Uwe writes:

 
 


   > You end editing by pressing the ubiquitous "I'm done"-keys: C-c C-c.

   > I don't know if it works with IMAP, so let us know how it goes!


When I hit[1] C-c C-c I finally receive an error I attach.
An error about a missing 
  signal(error ("FQM: Can't find message-header-separator or alternate"))

The reason seems to be the old feedmail package which is loaded via
(add-hook 'message-mail-send-hook 'feedmail-mail-send-hook-splitter)

When I remove it, C-c C-c

Works. The funny thing is.

I can see the new edited subject in thunderbird, but *not* in gnus. It
seems that the summary buffer is not updated. Could it be a cache issue?


(I am using gmail's imap server)

thanks

Uwe Brauer 

   >   Best regards,

   >     Adam

Footnotes:
[1]  and I have a couple of hooks in the send function.



[-- Attachment #2: feedmail-error --]
[-- Type: text/plain, Size: 5669 bytes --]

Debugger entered--Lisp error: (error "FQM: Can't find message-header-separator or alternate")
  signal(error ("FQM: Can't find message-header-separator or alternate"))
  cerror("FQM: Can't find message-header-separator or alternate")
  apply(cerror "FQM: Can't find message-header-separator or alternate" nil)
  error("FQM: Can't find message-header-separator or alternate")
  (if noerror nil (error "FQM: Can't find message-header-separator or alternate"))
  (if (or (re-search-forward r-mhs nil t) (and alt-mhs ...)) (progn (beginning-of-line) (point-marker)) (if noerror nil (error "FQM: Can't find message-header-separator or alternate")))
  (save-excursion (goto-char (point-min)) (if (or ... ...) (progn ... ...) (if noerror nil ...)))
  (let ((mhs mail-header-separator) (alt-mhs feedmail-queue-alternative-mail-header-separator) r-mhs r-alt-mhs) (setq r-mhs (concat "^" ... "$")) (setq r-alt-mhs (concat "^" ... "$")) (save-excursion (goto-char ...) (if ... ... ...)))
  feedmail-find-eoh()
  (setq eoh-marker (feedmail-find-eoh))
  (let ((case-fold-search nil)) (feedmail-say-debug "looking for m-h-s \"%s\"" mail-header-separator) (setq eoh-marker (feedmail-find-eoh)) (feedmail-say-debug "found m-h-s %s" eoh-marker) (setq mail-header-separator "") (replace-match ""))
  (save-excursion (set-buffer feedmail-error-buffer) (erase-buffer) (set-buffer feedmail-prepped-text-buffer) (erase-buffer) (insert-buffer feedmail-raw-text-buffer) (goto-char (point-max)) (or (= ... ?\n) (insert ?\n)) (let (...) (feedmail-say-debug "looking for m-h-s \"%s\"" mail-header-separator) (setq eoh-marker ...) (feedmail-say-debug "found m-h-s %s" eoh-marker) (setq mail-header-separator "") (replace-match "")) (feedmail-say-debug "expanding mail aliases") (if (or feedmail-force-expand-mail-aliases ...) (expand-mail-aliases ... eoh-marker)) (if feedmail-fill-to-cc (feedmail-fill-to-cc-function eoh-marker)) (goto-char (point-min)) (while (and ... ...) (replace-match "\n")) (let (... ...) (goto-char ...) (setq feedmail-is-a-resend ...) (if ... ...) (if ... ... ...) (if ... ...) (if ... ...) (setq feedmail-address-list ...) (setq bcc-holder ...) (setq resent-bcc-holder ...) (if ... ...) (if ... ...) (goto-char ...) (feedmail-fiddle-from) (feedmail-fiddle-sender) (feedmail-fiddle-x-mailer) (feedmail-fiddle-message-id ...) (feedmail-fiddle-date ...) (feedmail-fiddle-list-of-fiddle-plexes feedmail-fiddle-plex-user-list) (goto-char ...) (and feedmail-nuke-empty-headers ...)) (feedmail-say-debug "last chance hook: %s" feedmail-last-chance-hook) (run-hooks (quote feedmail-last-chance-hook)) (save-window-excursion (let ... ... ...)))
  (unwind-protect (save-excursion (set-buffer feedmail-error-buffer) (erase-buffer) (set-buffer feedmail-prepped-text-buffer) (erase-buffer) (insert-buffer feedmail-raw-text-buffer) (goto-char ...) (or ... ...) (let ... ... ... ... ... ...) (feedmail-say-debug "expanding mail aliases") (if ... ...) (if feedmail-fill-to-cc ...) (goto-char ...) (while ... ...) (let ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (feedmail-say-debug "last chance hook: %s" feedmail-last-chance-hook) (run-hooks ...) (save-window-excursion ...)) (kill-buffer feedmail-prepped-text-buffer) (set-buffer feedmail-error-buffer) (if (zerop ...) (kill-buffer feedmail-error-buffer) (progn ... ... ...)) (set-buffer feedmail-raw-text-buffer))
  (let ((feedmail-error-buffer ...) (feedmail-prepped-text-buffer ...) (feedmail-raw-text-buffer ...) (feedmail-address-list) (eoh-marker) (bcc-holder) (resent-bcc-holder) (a-re-rtcb "^RESENT-\\(TO\\|CC\\|BCC\\):") (a-re-rtc "^RESENT-\\(TO\\|CC\\):") (a-re-rb "^RESENT-BCC:") (a-re-dtcb "^\\(TO\\|CC\\|BCC\\):") (a-re-dtc "^\\(TO\\|CC\\):") (a-re-db "^BCC:") (mail-header-separator mail-header-separator)) (unwind-protect (save-excursion ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (kill-buffer feedmail-prepped-text-buffer) (set-buffer feedmail-error-buffer) (if ... ... ...) (set-buffer feedmail-raw-text-buffer)))
  feedmail-send-it-immediately()
  (catch (quote skip-me-i) (feedmail-send-it-immediately))
  (eq (quote skip-me-i) (catch (quote skip-me-i) (feedmail-send-it-immediately)))
  (if (eq (quote skip-me-i) (catch ... ...)) (error "FQM: Sending...abandonned!"))
  feedmail-send-it-immediately-wrapper()
  feedmail-message-action-send()
  funcall(feedmail-message-action-send)
  (if feedmail-ask-before-queue (funcall (feedmail-queue-send-edit-prompt)) (feedmail-dump-message-to-queue feedmail-queue-directory (quote after-queue)))
  (if (not feedmail-enable-queue) (feedmail-send-it-immediately-wrapper) (if feedmail-ask-before-queue (funcall ...) (feedmail-dump-message-to-queue feedmail-queue-directory ...)))
  (let ((bfn-jiggle nil)) (if (and ... feedmail-queue-buffer-file-name) (setq buffer-file-name feedmail-queue-buffer-file-name bfn-jiggle t)) (if feedmail-queue-directory (setq feedmail-queue-directory ...)) (if feedmail-queue-draft-directory (setq feedmail-queue-draft-directory ...)) (if (not feedmail-enable-queue) (feedmail-send-it-immediately-wrapper) (if feedmail-ask-before-queue ... ...)) (if bfn-jiggle (setq feedmail-queue-buffer-file-name buffer-file-name)))
  (save-excursion (let (...) (if ... ...) (if feedmail-queue-directory ...) (if feedmail-queue-draft-directory ...) (if ... ... ...) (if bfn-jiggle ...)))
  feedmail-send-it()
  message-multi-smtp-send-mail()
  gnus-agent-send-mail()
  message-send-mail(nil)
  message-send-via-mail(nil)
  message-send(nil)
  message-send-and-exit(nil)
  my-send-with-or-without-link(nil)
  call-interactively(my-send-with-or-without-link)

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [partially solved but summary is not updated]
  2015-05-29  8:05       ` [partially solved but summary is not updated] (was: edit subject, messages, imap server) Uwe Brauer
@ 2015-05-29  8:45         ` Adam Sjøgren
  2015-05-29 13:03           ` Uwe Brauer
  0 siblings, 1 reply; 16+ messages in thread
From: Adam Sjøgren @ 2015-05-29  8:45 UTC (permalink / raw)
  To: ding

Uwe writes:

> I can see the new edited subject in thunderbird, but *not* in gnus. It
> seems that the summary buffer is not updated. Could it be a cache issue?

It doesn't update if you exit the group and enter it again?

(Just asking the obvious to get that out of the way; I don't use the
agent O:-))


  Best regards,

    Adam

-- 
 "Jeg skal også videre i mit Bob Dylan-pensum, så det         Adam Sjøgren
  kan godt være det..."                                  asjo@koldfront.dk




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [partially solved but summary is not updated]
  2015-05-29  8:45         ` [partially solved but summary is not updated] Adam Sjøgren
@ 2015-05-29 13:03           ` Uwe Brauer
  2015-05-29 14:27             ` Dan Christensen
  0 siblings, 1 reply; 16+ messages in thread
From: Uwe Brauer @ 2015-05-29 13:03 UTC (permalink / raw)
  To: ding

>> "Adam" == Adam Sjøgren <asjo@koldfront.dk> writes:

   > Uwe writes:
   >> I can see the new edited subject in thunderbird, but *not* in gnus. It
   >> seems that the summary buffer is not updated. Could it be a cache issue?

   > It doesn't update if you exit the group and enter it again?

No it does not neither in Xemacs 21.5.33 Mule nor in GNU Emacs 24.

However there is another gmail account for which this procedure works.

What puzzles me that I can see the changed subject in other mail client,
such as thunderbird or the  iPhone.
   > (Just asking the obvious to get that out of the way; I don't use the
   > agent O:-))

I through out the agent but it does not help neither.

Uwe 




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [partially solved but summary is not updated]
  2015-05-29 13:03           ` Uwe Brauer
@ 2015-05-29 14:27             ` Dan Christensen
  2015-05-29 14:56               ` Uwe Brauer
  2015-05-29 21:16               ` Uwe Brauer
  0 siblings, 2 replies; 16+ messages in thread
From: Dan Christensen @ 2015-05-29 14:27 UTC (permalink / raw)
  To: ding

Uwe Brauer <oub@mat.ucm.es> writes:

>>> "Adam" == Adam Sjøgren <asjo@koldfront.dk> writes:
>
>    > Uwe writes:
>    >> I can see the new edited subject in thunderbird, but *not* in gnus. It
>    >> seems that the summary buffer is not updated. Could it be a cache issue?
>
>    > It doesn't update if you exit the group and enter it again?
>
> No it does not neither in Xemacs 21.5.33 Mule nor in GNU Emacs 24.

Does `M-g' on the group help?

Dan




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [partially solved but summary is not updated]
  2015-05-29 14:27             ` Dan Christensen
@ 2015-05-29 14:56               ` Uwe Brauer
  2015-05-29 21:16               ` Uwe Brauer
  1 sibling, 0 replies; 16+ messages in thread
From: Uwe Brauer @ 2015-05-29 14:56 UTC (permalink / raw)
  To: ding

>> "Dan" == Dan Christensen <jdc@uwo.ca> writes:

   > Uwe Brauer <oub@mat.ucm.es> writes:
   >>>> "Adam" == Adam Sjøgren <asjo@koldfront.dk> writes:
   >> 
   >> > Uwe writes:
   >> >> I can see the new edited subject in thunderbird, but *not* in gnus. It
   >> >> seems that the summary buffer is not updated. Could it be a cache issue?
   >> 
   >> > It doesn't update if you exit the group and enter it again?
   >> 
   >> No it does not neither in Xemacs 21.5.33 Mule nor in GNU Emacs 24.

   > Does `M-g' on the group help?

No, 

gnus-summary-insert-new-articles seems to help, the message appears but
then it disappears again, the odd thing is I can see the message with
thunderbird/or the iphone.


   > Dan







^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [partially solved but summary is not updated]
  2015-05-29 14:27             ` Dan Christensen
  2015-05-29 14:56               ` Uwe Brauer
@ 2015-05-29 21:16               ` Uwe Brauer
  2015-05-30  1:31                 ` Dan Christensen
  1 sibling, 1 reply; 16+ messages in thread
From: Uwe Brauer @ 2015-05-29 21:16 UTC (permalink / raw)
  To: ding

>> "Dan" == Dan Christensen <jdc@uwo.ca> writes:

   > Uwe Brauer <oub@mat.ucm.es> writes:

   > Does `M-g' on the group help?

I tested, it makes things worse! When I run 
gnus-summary-insert-new-articles
then the article with the modified subject is displayed, however when I
run M-g the article appears. So it seems that rescanning is the culprit,
strange.

Uwe 




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [partially solved but summary is not updated]
  2015-05-29 21:16               ` Uwe Brauer
@ 2015-05-30  1:31                 ` Dan Christensen
  2015-05-30  8:13                   ` Uwe Brauer
  2015-05-30  8:27                   ` Uwe Brauer
  0 siblings, 2 replies; 16+ messages in thread
From: Dan Christensen @ 2015-05-30  1:31 UTC (permalink / raw)
  To: ding

Uwe Brauer <oub@mat.ucm.es> writes:

>>> "Dan" == Dan Christensen <jdc@uwo.ca> writes:
>
>    > Uwe Brauer <oub@mat.ucm.es> writes:
>
>    > Does `M-g' on the group help?
>
> I tested, it makes things worse!

Just to be clear:  I meant to run `M-g' in the *Group* buffer with
point on the group.  If you run it within the *Summary* buffer, it
does something different.

Dan




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [partially solved but summary is not updated]
  2015-05-30  1:31                 ` Dan Christensen
@ 2015-05-30  8:13                   ` Uwe Brauer
  2015-05-30  8:27                   ` Uwe Brauer
  1 sibling, 0 replies; 16+ messages in thread
From: Uwe Brauer @ 2015-05-30  8:13 UTC (permalink / raw)
  To: ding

>> "Dan" == Dan Christensen <jdc@uwo.ca> writes:

   > Uwe Brauer <oub@mat.ucm.es> writes:
   >>>> "Dan" == Dan Christensen <jdc@uwo.ca> writes:
   >> 
   >> > Uwe Brauer <oub@mat.ucm.es> writes:
   >> 
   >> > Does `M-g' on the group help?
   >> 
   >> I tested, it makes things worse!

   > Just to be clear:  I meant to run `M-g' in the *Group* buffer with
   > point on the group.  If you run it within the *Summary* buffer, it
   > does something different.

Indeed I misunderstood it. Now that is interesting: when I run M-g in
the Group buffer, it is indicated that there is a *new* message, which I
can see in thunderbird, however when I enter the group, the *new*
message (in fact the old one with the new subject) is *not* displayed.
Very odd.

   > Dan







^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [partially solved but summary is not updated]
  2015-05-30  1:31                 ` Dan Christensen
  2015-05-30  8:13                   ` Uwe Brauer
@ 2015-05-30  8:27                   ` Uwe Brauer
  1 sibling, 0 replies; 16+ messages in thread
From: Uwe Brauer @ 2015-05-30  8:27 UTC (permalink / raw)
  To: ding

   >> 
   >> > Does `M-g' on the group help?
   >> 
   >> I tested, it makes things worse!

   > Just to be clear:  I meant to run `M-g' in the *Group* buffer with
   > point on the group.  If you run it within the *Summary* buffer, it
   > does something different.

I found out: if in the customisation buffer of the group I set:

* Display: [Value Menu] Integer: 0
Which articles to display on entering the group. *

Then the new message is shown, however when I enter the group with 
C-u 100, the article is not shown, very odd 




^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-05-30  8:27 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-28 17:05 edit subject, messages, imap server Uwe Brauer
2015-05-28 17:09 ` Jason L Tibbitts III
2015-05-28 18:40   ` Uwe Brauer
2015-05-28 18:45     ` Adam Sjøgren
2015-05-28 18:50       ` Jason L Tibbitts III
2015-05-28 20:42         ` Steinar Bang
2015-05-29  0:11           ` Dan Christensen
2015-05-29  8:05       ` [partially solved but summary is not updated] (was: edit subject, messages, imap server) Uwe Brauer
2015-05-29  8:45         ` [partially solved but summary is not updated] Adam Sjøgren
2015-05-29 13:03           ` Uwe Brauer
2015-05-29 14:27             ` Dan Christensen
2015-05-29 14:56               ` Uwe Brauer
2015-05-29 21:16               ` Uwe Brauer
2015-05-30  1:31                 ` Dan Christensen
2015-05-30  8:13                   ` Uwe Brauer
2015-05-30  8:27                   ` Uwe Brauer

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).