Re (3): gmail via IMAP ? HOW2 delete ?



In article <hlh2vn$m2r$1@xxxxxxxxxxxxxxxxx>, Grant Edwards <invalid@xxxxxxxxxxxxxxx> wrote:

On 2010-02-17, no.top.post@xxxxxxxxx <no.top.post@xxxxxxxxx> wrote:

How do I delete a header-entry ?

What do you mean by "header-entry"? Are you trying to delete
individual fields within a message header?

No you can't do that. The header is like the envelope. It
contains fields like: From:, Date:, Subject:, and allows you
to know/guess what to do with the mail, which is the header
plus the body.

I know what the header is. What I did't know was what the
original question was.

the help menu says: 'd' = delete the current entry.

That marks a message for deletion.

That sounds as if the deletion is *local* and not at the
remote server ?

Again: the message isn't "deleted" when you hit "d". It's
"marked for deletion". That is done locally.

The actual deletion will happen when the mailbox is closed or
expunged. That happens as I specified below. Then the commands
are set to the server to physically delete any messages that
have previously been marked for deletion.

When I key 'd' my screen immediately shows the 'D' tag, and
steps to the next header. But when/how do the actual deletions
happen at the server ?

When you either hit "$", change to a different folder, or exit
mutt.

I want to delete the mails at the gmail server, so I'd need to
Tx to gmail "delete messageX" and get a confirming reply.

Sort of.

With IMAP you need to send a STORE FLAGS command to set the
\Deleted flag on the message. Then you need to send an EXPUNGE
or CLOSE command to physically delete any messages in the
current mailbox that have the \Deleted flag set.

So that happen when I exit mutt.

Yes. Or when you hit "$", or when you change to a different
mailbox.

What you describe, would happen for a local directory/folder.

Yes.

Have you looked and verified that they're still there? You
seem to be using the word "header" to refer to a an entire
message. Is that inferrence accurate?

Under pop which I know, you only d/l the headers initially. I
don't know what IMAP does.

It doesn't matter what's downloaded. You can't delete the
headers. You can only delete the entire message.

I don't know how IMAP works. Can gmail use pop?

Yes.

I guess I'd leave my gmail IMAP settings, and do "mutt <read
the new pop settings>" ?

Sorry, I don't know what "mutt <read the new pop settings>" means.

`mutt` means 'run mutt from the default-setting file/s'
hopefully
`mutt <popSettings>' would allow to 'run mutt from the
pop-setting file/s'

IIRC pop fetches & displays the header list. Then, from the
header list, you can delete the mail [at the server] or fetch
it -- individually.

And you can do that with mutt/IMAP also. After you've marked a
message you want to delete, hit the "$" key if for some reason
you can't wait until you close the mailbox.

If hitting two keys instead of one is too much work, then you
can bind a macro to a single key that does the delete and
expunge.

I've not used POP with mutt, but mutt implements message
deletion the same for all of the mailbox types I've used (IMAP,
mbox, maildir). I would _guess_ that mutt/POP will work
exactly the same way.

--
Thanks. So 'hit the "$" key'
means 'execute the pending commands';
and 'close the mailbox'
means log-out after executing pending commands.

It's amazing to note that this utility has survived so long,
with 6 screens of help-menu, arranged ALPHABETICALLY.,
[over 100 options ?!]
in case some one wonders what 'p' might mean on the
menu; instead of being ordered 'conceptually' so that
the new-user could index how to 'close the mailbox'.


.



Relevant Pages

  • Re: how to disable to send read receipt
    ... What we have set is just a mailbox policy run by Exchange mailbox manager. ... older than xxx days with read recepient header. ... The mail server should be stripping out the header on inbound e-mails coming ...
    (microsoft.public.outlook.general)
  • Re: exchange2003 problem!
    ... administrators mailbox. ... "Email routing by SMTP does not depend on headers, but on the recipient name used in the SMTP transaction. ... It can only survive if one of the SMTP servers which handles the email explicitly adds a header called 'Envelope-To:' or something similar. ... If for some reason there is no To: or CC: header, such as with BCC or a mailing list, the SBS2003 POP3 downloader does not know where to deliver the mail. ...
    (microsoft.public.windows.server.sbs)
  • Re: Re (2): gmail via IMAP ? HOW2 delete ?
    ... The header is like the envelope. ... That marks a message for deletion. ... remote server? ... current mailbox that have the \Deleted flag set. ...
    (comp.mail.mutt)
  • Re: Some POP3 mail undeliverable
    ... I am having a problem where POP3 mail is not always delivered to the client's mailbox but turns up in the mailbox designated for undeliverable pop3 mail. ... It seems very unlikely that header information is being lost, as this is almost the ultimate sin in handling email. ... Email routing by SMTP does not depend on headers, but on the recipient name used in the SMTP transaction. ...
    (microsoft.public.windows.server.sbs)
  • Re: Header in Exchange
    ... >I created special mailbox called "SPAM" for users to forward spam messages ... >I wanted to analyze them (header, keywords and IP) to tune up our antispam ... but whenever someone forwarding something from one internal mailbox ...
    (microsoft.public.exchange.admin)