https://discord.cloudflare.com logo
Join Discord
Powered by
# workers-discussions
  • d

    dave

    02/19/2023, 10:02 PM
    but it works
  • d

    dave

    02/19/2023, 10:02 PM
    I have Google Workspace forwarding the emails from the root domain (for specific addresses) directly to Cloudflare without rewriting the
    To
    field at all.
  • d

    dave

    02/19/2023, 10:02 PM
    which is nice
  • c

    Chaika

    02/19/2023, 10:07 PM
    For what it's worth, when I was testing this a while back, I had the same oddness and then it suddenly started working. I can't remember if it was just me waiting ~10 mins or so, or readding the route. If you just set it, it may be worth just waiting a bit
  • d

    dave

    02/19/2023, 10:07 PM
    ya it was just a waiting thing
  • c

    Chaika

    02/19/2023, 10:07 PM
    It's CF fault for making everything else so fast lol
  • d

    dave

    02/19/2023, 10:14 PM
    this is actually so nice.
  • d

    dave

    02/19/2023, 10:14 PM
    I can see the light at the end of the tunnel for email management lol
  • d

    dave

    02/19/2023, 10:20 PM
    It's claiming that my emails are being dropped
  • d

    dave

    02/19/2023, 10:20 PM
    but.. I got the forwarded result just fine, and my CF Worker triggered.
  • c

    Chaika

    02/19/2023, 10:23 PM
    It's normal for email workers
  • d

    dave

    02/19/2023, 10:23 PM
    ahh
  • d

    dave

    02/19/2023, 10:23 PM
    thanks
  • c

    Chaika

    02/19/2023, 10:24 PM
    If it was actually erroring, it would show as Delivery failed with a rejected reason
  • d

    dave

    02/19/2023, 10:34 PM
    meh I wish we got a Request object that we could easily get an arraybuffer from or something
  • c

    Chaika

    02/19/2023, 10:36 PM
    You can just make a response object, it's what I do, not sure if it's exactly best practice though lol
  • c

    Chaika

    02/19/2023, 10:36 PM
    Copy code
    javascript
      let rawEmail = new Response(message.raw);
      let arrayBuffer = await rawEmail.arrayBuffer();
  • d

    dave

    02/19/2023, 10:51 PM
    woah that's cool
  • d

    dave

    02/19/2023, 10:56 PM
    Can I modify the body before forwarding?
  • c

    Chaika

    02/19/2023, 11:00 PM
    I think about all you can do is add X-* headers via the optional headers property on the forward method. iirc the ReadableStream you get is readonly
  • c

    cg

    02/19/2023, 11:25 PM
    Hey all - I was having a look at my Worker summary page, my 99pct duration seems to be consistently cyclic, which I'm very interested in understanding more about. Is there some way I can see what requests (e.g. the request path) are taking longest, maybe I can identify issues in my code.
  • d

    dave

    02/20/2023, 12:01 AM
    thanks! I guess for security reasons it wouldn't make sense for CF to allow use to remove headers to alter body contact.
  • d

    dave

    02/20/2023, 12:14 AM
    niiice, I can forward to multiple addresses
  • s

    stan

    02/20/2023, 2:28 AM
    satori working on workers(/pages) with some cursed solutons 🙂

    https://t89.s3-us-west-1.amazonaws.com/2023/02/bAzivZyN/Code.pngâ–¾

  • p

    PaganMuffin

    02/20/2023, 7:17 AM
    It should work without any cursed solutions unless they changed something in initializing since October
  • s

    stan

    02/20/2023, 7:19 AM
    i couldn't get the wasm version of yoga working on actually hosted pages, something something "script will never return a response"
  • s

    stan

    02/20/2023, 7:19 AM
    part of the difficulty is that i'm also having to deal with remix
  • s

    stan

    02/20/2023, 7:21 AM
    now i'm trying to get resvg to work, but encountering "Wasm code generation disallowed by embedder"
  • s

    stan

    02/20/2023, 7:21 AM
    need to figure out how to get it uploaded as an actual wasm file
  • s

    stan

    02/20/2023, 7:22 AM
    aaaand just found out why https://canary.discord.com/channels/595317990191398933/789155108529111069/1075143835807653888
1...229122922293...2509Latest