• How to delete old mail using mailx

    From root@NoEMail@home.org to alt.os.linux.slackware on Fri May 9 02:11:05 2025
    From Newsgroup: alt.os.linux.slackware

    I've been in the hospital and over that period I
    accumulated 41 messages go back three days. I use
    fetchmail to get the messages, procmail to proces
    them, and mailx to read them. Normally I just use
    d* under mailx to delete them after. I can delete
    /var/spool/mail/root, but they just come back
    on the next fetchmail. I know I have done this
    before but I am too tired to search for it.

    I am fetching mail from gmail.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From root@NoEMail@home.org to alt.os.linux.slackware on Fri May 9 02:55:54 2025
    From Newsgroup: alt.os.linux.slackware

    root <NoEMail@home.org> wrote:
    I've been in the hospital and over that period I
    accumulated 41 messages go back three days. I use
    fetchmail to get the messages, procmail to proces
    them, and mailx to read them. Normally I just use
    d* under mailx to delete them after. I can delete
    /var/spool/mail/root, but they just come back
    on the next fetchmail. I know I have done this
    before but I am too tired to search for it.

    I am fetching mail from gmail.

    I solved the problem, I had -a in the fetchmail invocation.
    My instance of gmail at gmail.com had not changed because
    my server has not been booted since I returned.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Marco Moock@mm@dorfdsl.de to alt.os.linux.slackware on Fri May 9 17:55:11 2025
    From Newsgroup: alt.os.linux.slackware

    On 09.05.2025 02:11 Uhr root wrote:

    I've been in the hospital and over that period I
    accumulated 41 messages go back three days. I use
    fetchmail to get the messages, procmail to proces
    them, and mailx to read them. Normally I just use
    d* under mailx to delete them after. I can delete
    /var/spool/mail/root, but they just come back
    on the next fetchmail. I know I have done this
    before but I am too tired to search for it.

    If they come back, check from where fetchmail gets them. IIRC gmail
    ignores basic protocol rules and doesn't delete message you delete via
    POP3 or IMAP. Yes, that is indeed shit, but that's Google. I operate my
    own mail server - for a good reason.
    --
    kind regards
    Marco

    Send spam to 1746749465muell@stinkedores.dorfdsl.de

    --- Synchronet 3.21d-Linux NewsLink 1.2